/* Sign-in pages (Views/Shared/_AuthLayout.cshtml, D-65). Uses only the tokens of brand.css (load it first). */

*, *::before, *::after { box-sizing: border-box; }
html, body.au { height: 100%; }
body.au { margin: 0; font-family: var(--b-text); font-size: 16px; line-height: 1.55; color: var(--b-ink); background: var(--b-paper); -webkit-text-size-adjust: 100%; }
.au :focus-visible { outline: 3px solid var(--b-focus); outline-offset: 3px; border-radius: 6px; }
.au h1, .au p { margin: 0; }

.au-page { display: grid; grid-template-columns: minmax(360px, 44%) 1fr; min-height: 100vh; min-height: 100dvh; }

/* brand panel */
.au-panel { position: relative; overflow: hidden; isolation: isolate; color: var(--b-ink);
    background: radial-gradient(70% 60% at 85% 5%, rgba(255, 210, 90, 0.45), transparent 70%), radial-gradient(60% 60% at 0% 100%, rgba(255, 231, 174, 0.75), transparent 70%), linear-gradient(180deg, #FFFFFF, var(--b-cream));
    border-right: 1px solid var(--b-line); }
.au-comb { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.au-panel-in { position: relative; display: flex; flex-direction: column; height: 100%; padding: clamp(28px, 5vw, 56px); }
.au-brand { display: inline-flex; align-items: center; gap: 12px; min-height: var(--b-touch); color: var(--b-heading); text-decoration: none; font-family: var(--b-display); font-weight: 800; font-size: 22px; letter-spacing: -0.3px; align-self: flex-start; }
.au-tagline { color: var(--b-heading); font-family: var(--b-display); font-weight: 700; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -0.4px; margin-top: clamp(40px, 10vh, 120px) !important; max-width: 460px; }
.au-points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; max-width: 440px; }
.au-points li { display: flex; align-items: center; gap: 14px; color: var(--b-ink); font-size: 16px; }
.au-point-icon { width: 42px; height: 46px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--b-on-honey); background: var(--b-honey-grad);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.au-point-icon svg { width: 20px; height: 20px; }

/* form side */
.au-main { display: flex; flex-direction: column; align-items: center; padding: 20px clamp(16px, 4vw, 48px) 24px; }
.au-top { width: 100%; max-width: 440px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.au-home { display: inline-flex; align-items: center; gap: 6px; min-height: var(--b-touch); color: var(--b-ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.au-home:hover { color: var(--b-ink); }
.au-langs { display: flex; }
.au-lang { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: var(--b-touch); border-radius: var(--b-radius-pill); color: var(--b-ink-2); text-decoration: none; font-weight: 600; font-size: 13px; letter-spacing: 0.6px; }
.au-lang:hover { background: rgba(200, 146, 79, 0.06); }
.au-lang.is-current { color: var(--b-honey-ink); background: var(--b-honey-soft); }
.au-card { width: 100%; max-width: 440px; margin: auto 0; padding: clamp(28px, 5vh, 48px) 0; }
.au-title { color: var(--b-heading); font-family: var(--b-display); font-weight: 800; font-size: clamp(30px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.6px; }
.au-sub { color: var(--b-muted); margin-top: 8px !important; }
.au-form { margin-top: 28px; display: grid; gap: 18px; }
.au-field { display: grid; gap: 6px; }
.au-field label { font-weight: 600; font-size: 15px; color: var(--b-ink-2); }
.au-field input { width: 100%; min-height: 50px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--b-ink); background: var(--b-card); border: 1.5px solid #A88456; border-radius: 14px;
    transition: none; }
.au-field input::placeholder { color: #8F6F4C; }
.au-field input:hover { border-color: #8C6A40; }
.au-field input:focus { outline: none; border-color: var(--b-honey); box-shadow: 0 0 0 4px rgba(255, 181, 71, 0.28); }
.au-field input:focus-visible { outline: 3px solid var(--b-focus); outline-offset: 2px; }
.au-field input.input-validation-error { border-color: #B42318; }
.au-field-error { color: #B42318; font-size: 14px; font-weight: 600; }
.au-field-error:empty { display: none; }
.au-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.au-check { display: inline-flex; align-items: center; gap: 10px; min-height: var(--b-touch); cursor: pointer; font-size: 15px; color: var(--b-ink-2); }
.au-check input { width: 20px; height: 20px; accent-color: var(--b-honey); margin: 0; }
.au-link { display: inline-flex; align-items: center; min-height: var(--b-touch); color: var(--b-green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(11, 122, 117, 0.35); overflow-wrap: anywhere; }
.au-link:hover { color: var(--b-green-dark); text-decoration-color: currentColor; }
.au-submit { width: 100%; min-height: 52px; font-size: 17px; margin-top: 4px; }
.au-alt { margin-top: 22px !important; color: var(--b-muted); font-size: 15px; }
.au-alert { position: relative; padding: 12px 40px 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.au-alert-error { background: #FBE3E3; color: #8A1C12; border: 1px solid #F1C4C0; }
.au-alert-ok { background: var(--b-green-soft); color: var(--b-green-dark); border: 1px solid var(--b-green-line); }
.au-alert-warn { background: var(--b-honey-soft); color: var(--b-honey-ink); border: 1px solid #F6DFA8; }
.au-form > .au-alert, .au-card > .au-alert { padding-right: 14px; }
.au-card > .au-alert { margin-bottom: 18px; padding-right: 44px; }
.au-alert-close { position: absolute; top: 2px; right: 2px; width: var(--b-touch); height: var(--b-touch); border: 0; background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; border-radius: 10px; }
.au-who { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font-weight: 600; color: var(--b-ink-2); }
.au-who-hex { width: 44px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: var(--b-honey-grad); color: var(--b-on-honey); font-family: var(--b-display); font-weight: 800; font-size: 20px;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.au-code { font-family: var(--b-display); font-weight: 800; font-size: 72px; line-height: 1; color: var(--b-kicker); margin-bottom: 8px !important; }
.au-card > .au-submit { margin-top: 28px; }
.au-foot { color: var(--b-muted); font-size: 13px; }

/* phones and small tablets: the panel becomes a short header */
@media (max-width: 860px) {
    .au-page { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .au-panel-in { padding: 14px 16px; height: auto; }
    .au-tagline { display: none; }
    .au-comb { -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 50%, #000 80%); mask-image: linear-gradient(90deg, transparent 0, transparent 50%, #000 80%); }
    .au-home { min-width: var(--b-touch); justify-content: center; }
    .au-home-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .au-points { display: none; }
    .au-brand { display: none; }
    .au-main { padding-top: 8px; }
    .au-card { margin: 0; padding-top: 20px; }
    .au-title { font-size: 28px; }
}

/* D-69: the stacked logo in the panel, the W3 logo above the form (on phones only the W3 logo; the panel is a short strip) */
/* D-70: the animated mark above the W2 wordmark in the panel; mark + W3 wordmark above the form */
.au-panel .au-brand { flex-direction: column; align-items: center; gap: 10px; }
.au-brand .honey-mark { width: 156px; height: auto; }
.au-brand-word { width: 158px; height: 66px; }
.au-form-logo { display: inline-flex; align-items: center; gap: 8px; min-height: var(--b-touch); margin-bottom: 18px; }
.au-foot.b-credit-row { justify-content: center; }
