/* Opt-in authentication screens. The legacy login layout and setup stay independent. */
body.auth-workspace {
    --auth-navy: #11243a;
    --auth-teal: #0d7d82;
    --auth-text: #24364b;
    --auth-muted: #5f7085;
    --auth-border: #e2e8f0;
    display: block;
    min-width: 0;
    min-height: 100vh;
    margin: 0;
    color: var(--auth-text);
    background: #f4f6fa;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

body.auth-workspace * { box-sizing: border-box; font-family: inherit; }
body.auth-workspace [hidden] { display: none !important; }
body.auth-workspace :is(button,input,select,textarea) { font-family: inherit; }
body.auth-workspace :is(a,button,input,summary):focus-visible { outline: 3px solid var(--auth-teal); outline-offset: 3px; }
body.auth-workspace .auth-page { display: flex; flex-direction: column; min-height: 100vh; }

body.auth-workspace .auth-topbar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1156px;
    min-height: 72px;
    margin: 0 auto;
    padding: 0 28px;
    gap: 20px;
}

body.auth-workspace .auth-brand { display: inline-flex; align-items: center; min-width: 0; gap: 10px; color: var(--auth-navy); text-decoration: none; }
body.auth-workspace .auth-brand img { display: block; flex: 0 0 60px; width: 60px; height: 60px; padding: 3px; border: 1px solid #e2e8f0; border-radius: 9px; background: #fff; object-fit: contain; }
body.auth-workspace .auth-brand > span { display: flex; flex-direction: column; min-width: 0; gap: 2px; font-size: 18px; line-height: 1.3; letter-spacing: -.4px; }
body.auth-workspace .auth-brand > span > strong { color: var(--auth-navy); font-size: 18px; font-weight: 700; line-height: 1.3; }
body.auth-workspace .auth-brand > span > small { color: var(--auth-muted); font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: .02em; }
body.auth-workspace .auth-language { display: inline-flex; flex: 0 0 auto; align-items: center; padding: 3px; border: 1px solid #dce4ed; border-radius: 8px; gap: 2px; background: #eaf0f6; }
body.auth-workspace .auth-language form { margin: 0; }
body.auth-workspace .auth-language button { display: block; min-width: 35px; min-height: 30px; padding: 5px 8px; border: 0; border-radius: 5px; color: #566a80; background: transparent; font-size: 11px; font-weight: 650; line-height: 1.3; cursor: pointer; }
body.auth-workspace .auth-language button:hover { color: var(--auth-navy); }
body.auth-workspace .auth-language button.is-active { color: var(--auth-navy); background: #fff; box-shadow: 0 1px 4px rgba(17,36,58,.09); }

body.auth-workspace .auth-main { display: flex; flex: 1 0 auto; align-items: center; justify-content: center; min-width: 0; width: 100%; padding: 28px 28px 36px; }
body.auth-workspace .auth-shell {
    display: grid;
    grid-template-columns: minmax(0,42fr) minmax(0,58fr);
    width: 100%;
    max-width: 1100px;
    min-height: 560px;
    overflow: hidden;
    border: 1px solid var(--auth-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(17,36,58,.055);
}

body.auth-workspace .auth-welcome,
body.auth-workspace .auth-form-panel { min-width: 0; width: 100%; margin: 0; }
body.auth-workspace .auth-welcome { display: flex; flex-direction: column; padding: 42px 36px 32px; color: #d6e3ee; background: var(--auth-navy); }
body.auth-workspace .auth-welcome-eyebrow { display: block; margin: 0 0 14px; color: #77d0ca; font-size: 10px; font-weight: 650; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
body.auth-workspace .auth-welcome h2 { margin: 0; color: #fff; font-size: 32px; font-weight: 650; line-height: 1.24; letter-spacing: -.8px; text-wrap: balance; }
body.auth-workspace .auth-welcome-copy { margin: 16px 0 0; color: #b3c5d5; font-size: 14px; line-height: 1.8; }
body.auth-workspace .auth-workspace-art { display: flex; flex: 1 0 auto; align-items: center; justify-content: center; min-width: 0; margin: 24px -8px 22px; }
body.auth-workspace .auth-workspace-art > svg { display: block; width: 100%; max-width: 390px; height: auto; }
body.auth-workspace .auth-workspace-art > .auth-logo-showcase { width: 100%; max-width: 282px; padding: 8px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
body.auth-workspace .auth-logo-showcase > img { display: block; width: 100%; max-width: 264px; height: auto; object-fit: contain; }
body.auth-workspace .auth-welcome-note { display: flex; align-items: flex-start; margin: auto 0 0; gap: 9px; color: #b3c5d5; font-size: 11px; line-height: 1.75; }
body.auth-workspace .auth-welcome-note svg { display: block; flex: 0 0 15px; width: 15px; height: 15px; margin-top: 2px; }
body.auth-workspace .auth-welcome-note :is(span,strong) { font-size: inherit; }

body.auth-workspace .auth-form-panel { display: flex; align-items: center; justify-content: center; padding: 42px 48px; background: #fff; }
body.auth-workspace .auth-form-content { min-width: 0; width: 100%; max-width: 420px; }
body.auth-workspace #loginForm { display: block; width: 100%; min-width: 0; gap: 0; align-items: normal; justify-content: normal; }
body.auth-workspace .auth-form-heading { margin: 0 0 10px; color: var(--auth-navy); font-size: 28px; font-weight: 650; line-height: 1.3; letter-spacing: -.6px; text-align: left; }
body.auth-workspace div.auth-form-heading { margin-bottom: 25px; font-size: inherit; font-weight: 400; letter-spacing: normal; }
body.auth-workspace .auth-form-heading > h1 { margin: 0 0 10px; color: var(--auth-navy); font-size: 28px; font-weight: 650; line-height: 1.3; letter-spacing: -.6px; }
body.auth-workspace .auth-eyebrow { margin: 0 0 9px; color: var(--auth-teal); font-size: 10px; font-weight: 650; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }
body.auth-workspace .auth-description { margin: 0 0 25px; color: var(--auth-muted); font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
body.auth-workspace .auth-form-heading > .auth-description { margin: 0; }
body.auth-workspace .auth-form { display: grid; width: 100%; margin: 0; gap: 20px; }
body.auth-workspace .auth-form .auth-description { margin: 0; }
body.auth-workspace .auth-field { min-width: 0; }
body.auth-workspace .auth-field > label { display: block; margin: 0 0 8px; color: #3b5067; font-size: 13px; font-weight: 600; line-height: 1.5; }
body.auth-workspace .auth-field > small { display: block; margin-top: 7px; color: var(--auth-muted); font-size: 12px; line-height: 1.7; }
body.auth-workspace .auth-input-wrap { position: relative; min-width: 0; }
body.auth-workspace .auth-input { display: block; min-width: 0; width: 100%; min-height: 50px; margin: 0; padding: 12px 14px; border: 1px solid #d3dee8; border-radius: 8px; color: var(--auth-text); background: #fff; font-size: 15px; line-height: 1.6; transition: border-color .15s ease, box-shadow .15s ease; }
body.auth-workspace .auth-input-wrap > .auth-input { padding-right: 54px; }
body.auth-workspace .auth-input::placeholder { color: #627389; opacity: 1; }
body.auth-workspace .auth-input:hover { border-color: #aabdc9; }
body.auth-workspace .auth-input:focus { border-color: var(--auth-teal); box-shadow: 0 0 0 3px rgba(13,125,130,.08); }
body.auth-workspace .auth-input:focus-visible { outline: 2px solid var(--auth-teal); outline-offset: 2px; }
body.auth-workspace .auth-input[aria-invalid='true'] { border-color: #b54e4e; }
body.auth-workspace .auth-input:disabled { color: var(--auth-muted); background: #f2f5f8; cursor: not-allowed; }
body.auth-workspace .auth-password-toggle { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 40px; height: 40px; padding: 10px; border: 0; border-radius: 6px; color: var(--auth-muted); background: transparent; cursor: pointer; }
body.auth-workspace .auth-password-toggle:hover { color: var(--auth-teal); background: #eff8f7; }
body.auth-workspace .auth-password-toggle svg { display: block; width: 20px; height: 20px; }
body.auth-workspace .auth-session-option { display: inline-flex; align-items: center; width: fit-content; margin: 0; gap: 9px; color: var(--auth-muted); font-size: 13px; line-height: 1.6; cursor: pointer; }
body.auth-workspace .auth-session-option input[type='checkbox'] { flex: 0 0 17px; width: 17px; height: 17px; margin: 0; accent-color: var(--auth-teal); }
body.auth-workspace .auth-session-option span { font-size: inherit; }
body.auth-workspace .auth-submit { display: inline-flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; padding: 12px 17px; border: 1px solid var(--auth-teal); border-radius: 8px; gap: 12px; color: #fff; background: var(--auth-teal); font-size: 14px; font-weight: 650; line-height: 1.6; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
body.auth-workspace .auth-submit:hover { border-color: #09696e; background: #09696e; }
body.auth-workspace .auth-submit:active { border-color: #075a5e; background: #075a5e; }
body.auth-workspace .auth-submit :is(span,strong) { font-size: inherit; }
body.auth-workspace .auth-submit svg { flex: 0 0 18px; width: 18px; height: 18px; }
body.auth-workspace .auth-submit:disabled { opacity: .6; cursor: not-allowed; }

body.auth-workspace .auth-alert { width: 100%; margin: 0 0 23px; padding: 13px 15px; border: 1px solid #d5e4ee; border-radius: 8px; color: #3b6382; background: #f1f7fc; font-size: 13px; line-height: 1.7; text-align: left; overflow-wrap: anywhere; }
body.auth-workspace .auth-alert ul { margin: 0; padding: 0; list-style: none; }
body.auth-workspace .auth-alert :is(p,li,span,strong) { font-size: inherit; line-height: inherit; }
body.auth-workspace .auth-alert li + li { margin-top: 5px; }
body.auth-workspace .auth-alert-error { border-color: #efcece; color: #973e3e; background: #fff4f4; }
body.auth-workspace .auth-alert-success { border-color: #cce5d8; color: #28694e; background: #f0f9f4; }
body.auth-workspace .auth-recovery { margin-top: 25px; padding-top: 21px; border-top: 1px solid var(--auth-border); }
body.auth-workspace .auth-recovery > summary { display: flex; align-items: center; justify-content: space-between; padding: 3px 0; gap: 12px; color: var(--auth-teal); font-size: 13px; font-weight: 600; line-height: 1.6; list-style: none; cursor: pointer; }
body.auth-workspace .auth-recovery > summary::-webkit-details-marker { display: none; }
body.auth-workspace .auth-recovery > summary::after { display: block; flex: 0 0 7px; width: 7px; height: 7px; margin-right: 3px; transform: rotate(45deg); border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; content: ''; }
body.auth-workspace .auth-recovery[open] > summary::after { transform: rotate(225deg); }
body.auth-workspace .auth-recovery-content { margin-top: 18px; }
body.auth-workspace .auth-recovery-content > .auth-description { margin-bottom: 17px; font-size: 13px; }
body.auth-workspace .auth-account-note { margin: 23px 0 0; color: var(--auth-muted); font-size: 12px; line-height: 1.8; text-align: center; }
body.auth-workspace .auth-account-note :is(span,strong,a) { font-size: inherit; }
body.auth-workspace .auth-account-note a { color: var(--auth-teal); text-decoration: underline; text-underline-offset: 3px; }
body.auth-workspace .auth-back-link { display: inline-flex; align-items: center; margin-top: 20px; gap: 7px; color: var(--auth-teal); font-size: 13px; line-height: 1.6; text-decoration: none; }
body.auth-workspace .auth-back-link:hover { text-decoration: underline; text-underline-offset: 3px; }
body.auth-workspace .auth-back-link svg { width: 16px; height: 16px; }
body.auth-workspace .auth-footer { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: space-between; width: 100%; max-width: 1156px; margin: 0 auto; padding: 0 28px 23px; gap: 10px 20px; color: var(--auth-muted); font-size: 11px; line-height: 1.7; }
body.auth-workspace .auth-footer :is(span,strong,p) { font-size: inherit; }
body.auth-workspace .auth-footer strong { font-weight: 600; }

@media (max-width: 1000px) {
    body.auth-workspace .auth-welcome { padding: 35px 28px 28px; }
    body.auth-workspace .auth-welcome h2 { font-size: 29px; }
    body.auth-workspace .auth-form-panel { padding: 35px 32px; }
}

@media (max-width: 760px) {
    body.auth-workspace .auth-topbar { min-height: 66px; padding: 0 24px; }
    body.auth-workspace .auth-main { align-items: flex-start; padding: 20px 24px 28px; }
    body.auth-workspace .auth-shell { grid-template-columns: minmax(0,1fr); max-width: 560px; min-height: 0; border-radius: 14px; }
    body.auth-workspace .auth-welcome { padding: 25px 30px; }
    body.auth-workspace .auth-welcome-eyebrow { margin-bottom: 9px; }
    body.auth-workspace .auth-welcome h2 { font-size: 23px; line-height: 1.3; letter-spacing: -.45px; text-wrap: initial; }
    body.auth-workspace .auth-welcome-copy { margin-top: 10px; font-size: 13px; line-height: 1.7; }
    body.auth-workspace .auth-workspace-art,
    body.auth-workspace .auth-welcome-note { display: none; }
    body.auth-workspace .auth-form-panel { padding: 30px; }
    body.auth-workspace .auth-form-content { max-width: none; }
    body.auth-workspace .auth-form-heading,
    body.auth-workspace .auth-form-heading > h1 { font-size: 26px; }
    body.auth-workspace .auth-footer { padding: 0 24px 21px; }
}

@media (max-width: 480px) {
    body.auth-workspace .auth-topbar { min-height: 64px; padding: 0 16px; gap: 14px; }
    body.auth-workspace .auth-brand { gap: 8px; }
    body.auth-workspace .auth-brand img { flex-basis: 48px; width: 48px; height: 48px; }
    body.auth-workspace .auth-brand > span { font-size: 16px; }
    body.auth-workspace .auth-brand > span > strong { font-size: 16px; }
    body.auth-workspace .auth-language { padding: 2px; }
    body.auth-workspace .auth-language button { min-width: 30px; min-height: 28px; padding: 4px 6px; font-size: 10px; }
    body.auth-workspace .auth-main { padding: 15px 16px 25px; }
    body.auth-workspace .auth-welcome { padding: 23px; }
    body.auth-workspace .auth-welcome h2 { font-size: 22px; }
    body.auth-workspace .auth-form-panel { padding: 27px 23px; }
    body.auth-workspace .auth-form-heading,
    body.auth-workspace .auth-form-heading > h1 { font-size: 25px; }
    body.auth-workspace .auth-description { margin-bottom: 23px; }
    body.auth-workspace .auth-form { gap: 18px; }
    body.auth-workspace .auth-input { font-size: 16px; }
    body.auth-workspace .auth-footer { padding: 0 16px 20px; font-size: 10px; gap: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    body.auth-workspace *,
    body.auth-workspace *::before,
    body.auth-workspace *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
