/* B2B sign-in / application pages. Uses the brand tokens from brand.css (--tuki-charcoal, --tuki-red). */
.auth-b2b { --auth-ink: var(--tuki-charcoal, #1a1a2e); --auth-red: var(--tuki-red, #ce1212); --auth-muted: #5f6270; --auth-line: #e3e5ea;
  margin: 0; background: #f4f5f8; color: var(--auth-ink); font-family: 'Inter', 'Roboto', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.auth-b2b *, .auth-b2b *::before, .auth-b2b *::after { box-sizing: border-box; }
.auth-b2b a { color: var(--auth-red); }
.auth-b2b a:hover { color: #a80f0f; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--auth-ink); padding: .6rem 1rem; z-index: 2000; border-radius: 0 0 .5rem 0; }
.skip-link:focus { left: 0; }

.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
@media (min-width: 992px) { .auth-shell { grid-template-columns: minmax(380px, 5fr) minmax(0, 6fr); } }

/* ---------- brand panel ---------- */
.auth-aside { background: radial-gradient(1200px 500px at 10% -10%, rgba(206, 18, 18, .35), transparent 60%), linear-gradient(160deg, #1a1a2e 0%, #11111f 100%);
  color: #fff; padding: 1.5rem 1.25rem 1.75rem; }
.auth-aside__inner { max-width: 520px; margin: 0 auto; }
@media (min-width: 992px) { .auth-aside { padding: 3rem 3rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; align-items: center; } .auth-aside__inner { margin: 0; } }
.auth-aside .brand-lockup { color: #fff; }
.auth-aside .brand-lockup__hapni { color: #fff; }
.auth-aside .brand-lockup__mark { height: 2.2rem; width: 2.2rem; }
.auth-aside .brand-lockup__name { font-size: 1.6rem; }
.auth-eyebrow { display: inline-block; margin: 1.75rem 0 .75rem; padding: .25rem .7rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.auth-aside__headline { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; margin: 0 0 1rem; }
.auth-aside__lead { font-size: 1.02rem; line-height: 1.6; color: rgba(255,255,255,.78); margin: 0 0 1.5rem; }
.auth-features, .auth-steps { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .75rem; }
.auth-features li, .auth-steps li { display: flex; gap: .75rem; align-items: center; font-size: .98rem; color: rgba(255,255,255,.92); }
.auth-features .bi, .auth-steps .num { flex: none; width: 2.1rem; height: 2.1rem; display: inline-grid; place-items: center; border-radius: .6rem; background: rgba(255,255,255,.1); font-size: 1rem; }
.auth-steps { counter-reset: step; }
.auth-steps .num { font-weight: 700; background: var(--auth-red); }
.auth-shot { display: none; margin: 0 0 1.5rem; border-radius: .9rem; overflow: hidden; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 24px 50px rgba(0,0,0,.4); background: #fff; }
.auth-shot img { display: block; width: 100%; height: auto; }
.auth-aside__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; }
.auth-aside__links a { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 3px; }
.auth-aside__links a:hover { color: #fff; }
.auth-details { display: none; }
@media (min-width: 992px) { .auth-shot { display: block; } .auth-details { display: block; } }

/* ---------- form side ---------- */
.auth-main { display: flex; flex-direction: column; min-width: 0; }
.auth-topbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; gap: 1rem; }
.auth-back { font-size: .92rem; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; }
.auth-panel { width: 100%; max-width: 560px; margin: 0 auto; padding: .5rem 1.25rem 2rem; flex: 1; }
.auth-card { background: #fff; border: 1px solid var(--auth-line); border-radius: 18px; padding: 1.75rem 1.4rem; box-shadow: 0 10px 40px rgba(26, 26, 46, .07); }
@media (min-width: 576px) { .auth-card { padding: 2.25rem 2.25rem; } }
.auth-card h1 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .35rem; }
.auth-sub { color: var(--auth-muted); margin: 0 0 1.5rem; line-height: 1.5; }
.auth-section { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--auth-muted); margin: 1.5rem 0 .75rem; padding-top: 1.25rem; border-top: 1px solid var(--auth-line); }
.auth-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

.auth-field { margin-bottom: 1rem; }
.auth-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.auth-field .opt { font-weight: 400; color: var(--auth-muted); }
.auth-field .hint { display: block; font-size: .8rem; color: var(--auth-muted); margin-top: .25rem; }
.auth-input, .auth-select, .auth-textarea { width: 100%; min-height: 46px; padding: .65rem .85rem; border: 1px solid #c9ccd6; border-radius: 10px; background: #fff; color: var(--auth-ink); font: inherit; }
.auth-textarea { min-height: 96px; resize: vertical; }
.auth-input:focus, .auth-select:focus, .auth-textarea:focus { outline: 3px solid rgba(206, 18, 18, .25); outline-offset: 0; border-color: var(--auth-red); }
.auth-input.input-validation-error, .auth-select.input-validation-error, .auth-textarea.input-validation-error { border-color: #b00020; }
.auth-field .field-error { display: block; color: #b00020; font-size: .84rem; margin-top: .3rem; }
.auth-grid { display: grid; gap: 0 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 576px) { .auth-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.auth-pass { position: relative; }
.auth-pass .auth-input { padding-right: 3rem; }
.auth-pass button { position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: transparent; color: var(--auth-muted); border-radius: 8px; cursor: pointer; }
.auth-pass button:focus-visible, .auth-btn:focus-visible { outline: 3px solid rgba(206, 18, 18, .35); outline-offset: 2px; }

.auth-alert { border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1.1rem; font-size: .92rem; line-height: 1.45; border: 1px solid; }
.auth-alert.error { background: #fdecef; border-color: #f3b4bf; color: #7a0f20; }
.auth-alert.warn { background: #fff7e0; border-color: #f0d98a; color: #6b5200; }
.auth-alert.ok { background: #e8f6ee; border-color: #a9d9bd; color: #14532d; }
.auth-alert ul { margin: 0; padding-left: 1.1rem; }

.auth-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 48px; padding: .75rem 1.25rem; border: 1px solid var(--auth-red); border-radius: 10px; background: var(--auth-red); color: #fff !important; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; }
.auth-btn:hover { background: #a80f0f; border-color: #a80f0f; }
.auth-btn.secondary { background: #fff; color: var(--auth-ink) !important; border-color: #c9ccd6; }
.auth-btn.secondary:hover { background: #f4f5f8; }
.auth-btn[disabled], .auth-btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.auth-btn .spin { width: 1rem; height: 1rem; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: auth-spin .7s linear infinite; display: none; }
.auth-btn[aria-busy="true"] .spin { display: inline-block; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .auth-btn .spin { animation-duration: 2s; } }

.auth-switch { margin-top: 1.25rem; padding: 1.1rem 1.2rem; border-radius: 12px; background: #fbf3f3; border: 1px solid #f1d4d4; }
.auth-switch strong { display: block; margin-bottom: .2rem; }
.auth-switch p { margin: 0 0 .8rem; color: var(--auth-muted); font-size: .92rem; }
.auth-foot { padding: 1rem 1.25rem 1.5rem; text-align: center; font-size: .85rem; color: var(--auth-muted); }
.auth-foot a { color: var(--auth-muted); margin: 0 .5rem; }
.auth-center { text-align: center; }
.auth-icon { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 1.9rem; margin-bottom: 1rem; }
.auth-icon.pending { background: #fff7e0; color: #946b00; }
.auth-icon.ok { background: #e8f6ee; color: #14532d; }
.auth-icon.no { background: #fdecef; color: #8f1224; }
.auth-facts { text-align: left; margin: 1.25rem 0; padding: 1rem 1.1rem; background: #f7f8fa; border-radius: 12px; font-size: .92rem; }
.auth-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; }
.auth-facts dt { color: var(--auth-muted); font-weight: 500; }
.auth-facts dd { margin: 0; font-weight: 600; text-align: right; }
.auth-reason { text-align: left; white-space: pre-line; background: #f7f8fa; border-left: 4px solid var(--auth-red); padding: .8rem 1rem; border-radius: 0 10px 10px 0; margin: 1rem 0; }
.auth-actions { display: grid; gap: .75rem; margin-top: 1.25rem; }
@media (min-width: 576px) { .auth-actions.row2 { grid-template-columns: 1fr 1fr; } }
