/* Shared sign-in and password recovery layout. */
.workspace-auth {
    --auth-ink: #1c2c3e;
    --auth-muted: #657383;
    --auth-accent: #285eaf;
    margin: 0;
    min-height: 100svh;
    background: #f7f8fa;
    color: var(--auth-ink);
    -webkit-font-smoothing: antialiased;
}

.workspace-auth .auth-shell {
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(0, 1fr);
    min-height: 100svh;
    padding: 18px;
}

.auth-brand-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 42px clamp(32px, 4.4vw, 72px) 30px;
    border: 1px solid #ffffff12;
    border-radius: 24px;
    background: #084298;
    color: #fff;
}

.auth-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-self: flex-start;
    border-radius: 8px;
}

.auth-brand img { display: block; width: 172px; height: auto; }
.auth-intro { position: relative; z-index: 1; margin: auto 0; padding: 70px 0 210px; }
.auth-eyebrow { color: #c1d6f5; font-size: 10px; font-weight: 600; letter-spacing: 2.5px; }
.auth-intro h1 { margin: 24px 0 23px; color: #fff; font-size: clamp(38px, 3.9vw, 58px); line-height: 1.17; font-weight: 600; letter-spacing: -1.8px; }
.auth-intro h1 em { color: #bed8ff; font-style: normal; }
.auth-intro > p { max-width: 420px; margin: 0; color: #d5e2f5; font-size: 14px; line-height: 1.85; }
.auth-art { position: absolute; z-index: 0; top: 42%; right: -27%; width: 127%; height: auto; opacity: .8; mask-image: linear-gradient(transparent, #000 30%); pointer-events: none; }

.auth-workflow { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 24px 0 0; list-style: none; border-top: 1px solid #ffffff25; }
.auth-workflow li { display: flex; flex-direction: column; gap: 8px; color: #e1e9f0; font-size: 13px; font-weight: 500; }
.auth-workflow li > span { color: #c1d6f5; font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: 1.5px; }
.auth-brand-footer { position: relative; margin: 32px 0 0; color: #c1d6f5; font-size: 11px; }

.auth-form-area { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 80px 48px 92px; }
.auth-form-wrap { width: 100%; max-width: 380px; }
.workspace-auth .auth-box { width: 100%; max-width: none; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.workspace-auth .auth-form { width: 100%; max-width: none; padding: 0; }
.auth-form-eyebrow { display: block; margin-bottom: 16px; color: var(--auth-muted); font-size: 10px; font-weight: 600; letter-spacing: 2px; }
.workspace-auth .auth-title { margin: 0 0 15px; color: var(--auth-ink); font-size: 34px; line-height: 1.2; font-weight: 600; letter-spacing: -.7px; }
.workspace-auth .auth-description { margin: 0 0 34px; color: var(--auth-muted); font-size: 14px; line-height: 1.75; }
.workspace-auth .auth-field { margin-bottom: 22px; }
.workspace-auth .form-label { display: block; margin: 0 0 9px; color: #344254; font-size: 12px; font-weight: 600; }
.workspace-auth .form-control { min-height: 52px; padding: 14px 16px; border: 1px solid #dfe4e9; border-radius: 9px; background: #fff; color: var(--auth-ink); font-size: 14px; line-height: 1.5; font-weight: 400; box-shadow: 0 1px 2px #182a3b03; transition: border-color .18s, box-shadow .18s; }
.workspace-auth .form-control::placeholder { color: #6e7a88; opacity: 1; }
.workspace-auth .form-control:hover { border-color: #bcc8d5; }
.workspace-auth .form-control:focus { outline: none; background: #fff; border-color: #457bbe; box-shadow: 0 0 0 3px #457bbe16; }
.workspace-auth .form-control.is-invalid { border-color: #c74949; background-image: none; }
.workspace-auth .invalid-feedback { margin-top: 8px; color: #b43838; font-size: 12px; line-height: 1.6; }
.auth-password-field { position: relative; }
.workspace-auth .auth-password-field .form-control { padding-right: 54px; }
.auth-password-toggle { position: absolute; top: 4px; right: 5px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #7d8997; cursor: pointer; }
.auth-password-toggle[hidden] { display: none; }
.auth-password-toggle:hover { background: #f2f5f8; color: #344254; }
.auth-password-toggle svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.auth-eye-slash { display: none; }
.auth-password-toggle[aria-pressed="true"] .auth-eye-slash { display: block; }
.workspace-auth .auth-link { display: block; width: fit-content; margin: 14px 0 0 auto; color: var(--auth-accent); font-size: 12px; line-height: 1.7; font-weight: 600; text-align: right; text-decoration: none; }
.workspace-auth .auth-link:hover { color: #18457f; text-decoration: underline; text-underline-offset: 4px; }
.workspace-auth .auth-box .d-grid { margin-top: 28px; }
.workspace-auth .auth-box .btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; margin: 0; padding: 14px 20px; border: 1px solid #285eaf; border-radius: 9px; background: var(--auth-accent); color: #fff; font-size: 14px; line-height: 1.5; font-weight: 600; box-shadow: 0 4px 9px #285eaf13; transition: background-color .18s, box-shadow .18s; }
.workspace-auth .auth-box .btn:hover { border-color: #204f94; background: #204f94; box-shadow: 0 5px 12px #285eaf22; }
.auth-submit svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-form-caption { margin: 30px 0 0; color: var(--auth-muted); font-size: 12px; line-height: 1.85; text-align: center; }
.auth-footer { position: absolute; right: 24px; bottom: 25px; left: 24px; margin: 0; color: var(--auth-muted); font-size: 11px; text-align: center; }
.auth-footer span { margin: 0 8px; color: #b2bcc7; }
.workspace-auth a:focus-visible, .workspace-auth button:focus-visible { outline: 3px solid #6096cc; outline-offset: 4px; }
.workspace-auth .auth-back { gap: 12px; margin-bottom: 22px; }
.workspace-auth .auth-back a { flex: 0 0 36px; width: 36px; height: 36px; margin: 0; border-color: #dce3eb; }
.workspace-auth .auth-back .auth-title { margin: 0; font-size: 27px; }
.auth-back svg { width: 17px; height: 17px; stroke: #56697d; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.workspace-auth .auth-label { padding: 8px 0; color: var(--auth-muted); font-size: 12px; line-height: 1.7; }
.workspace-auth .alert { font-size: 13px; line-height: 1.7; }
.auth-success-message { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; padding: 18px; border: 1px solid #a9d8bc; border-left: 4px solid #23834e; border-radius: 9px; background: #e9f7ef; color: #145c34; }
.auth-success-message svg { flex: 0 0 24px; width: 24px; height: 24px; margin-top: 1px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-success-message p { margin: 0; font-size: 15px; line-height: 1.7; font-weight: 600; }

@media (min-width: 1500px) {
    .auth-intro { padding-bottom: 250px; }
    .auth-form-wrap { max-width: 400px; }
}

@media (max-width: 1050px) {
    .workspace-auth .auth-shell { padding: 12px; }
    .auth-brand-panel { padding: 32px 30px 24px; border-radius: 20px; }
    .auth-brand img { width: 154px; }
    .auth-intro { padding: 64px 0 180px; }
    .auth-intro h1 { font-size: 40px; letter-spacing: -1.1px; }
    .auth-intro > p { font-size: 13px; }
    .auth-intro > p br { display: none; }
    .auth-form-area { padding-right: 34px; padding-left: 34px; }
    .workspace-auth .auth-title { font-size: 30px; }
}

@media (max-width: 760px) {
    .workspace-auth .auth-shell { display: flex; flex-direction: column; padding: 0; }
    .auth-brand-panel { flex: 0 0 auto; min-height: 106px; padding: 28px 28px 25px; border: 0; border-radius: 0 0 22px 22px; }
    .auth-brand img { width: 148px; }
    .auth-intro, .auth-workflow, .auth-brand-footer { display: none; }
    .auth-art { top: auto; right: -45px; bottom: -168px; width: 330px; opacity: .7; mask-image: none; }
    .auth-form-area { flex: 1; width: 100%; padding: 46px 28px 78px; }
    .auth-form-wrap { max-width: 380px; }
    .workspace-auth .auth-title { font-size: 30px; }
    .workspace-auth .auth-description { margin-bottom: 28px; }
    .workspace-auth .form-control { font-size: 16px; }
    .auth-footer { bottom: 22px; }
}

@media (max-width: 360px) {
    .auth-brand-panel { padding-right: 22px; padding-left: 22px; }
    .auth-form-area { padding: 34px 22px 70px; }
    .workspace-auth .auth-title { font-size: 28px; }
    .auth-form-caption { font-size: 11px; }
}

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