/* Welcome and login: a responsive, photo-led Livi sign-in experience. */
body.modern-login {
    --text: #25372c;
    --muted: #737b70;
    --input-border: #dce2d5;
    --danger: #b42332;
    --warning: #8a5b0c;
    margin: 0;
    height: auto;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 0;
    background: #f2f4f0;
    color: var(--text);
    align-items: center;
}
.modern-login::before, .modern-login::after,
.modern-login .card::before, .modern-login .card::after { display: none; }
.modern-login .auth-shell {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    max-width: none;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 16px;
    gap: 22px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(145deg, #f2f4f0 12%, #f2efd8 100%);
    box-shadow: none;
}
.modern-login .card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 18px clamp(18px, 3vw, 44px) 14px;
    border: 0;
    border-radius: 24px;
    box-shadow: none;
    background: transparent;
    overflow: visible;
}
.modern-login .brand { flex: 1; margin: 0 0 24px; }
.modern-login .brand-identity { border: 0; padding: 0; margin-bottom: auto; padding-bottom: 24px; }
.modern-login .brand-logo-wrap {
    width: 106px;
    height: 64px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.modern-login .brand-logo { width: 100%; height: 100%; object-fit: contain; }
.modern-login .brand h1 {
    text-align: center;
    margin: 0;
    font-size: clamp(28px, 2.7vw, 34px);
    line-height: 1.18;
    letter-spacing: -.045em;
    font-weight: 450;
}
.modern-login .brand p { text-align: center; font-size: .84rem; margin-top: 10px; color: #6a7465; }
.modern-login .auth-form { width: 100%; max-width: 410px; margin: 0 auto; gap: 11px; min-width: 0; }
.modern-login .field { min-width: 0; gap: 7px; }
.modern-login .label { padding-left: 18px; font-size: .77rem; color: #747b6c; font-weight: 450; }
.modern-login .input {
    min-height: 50px;
    padding-top: 12px;
    padding-bottom: 12px;
    border: 1px solid #ffffff80;
    border-radius: 30px;
    background: #ffffffbd;
    color: #27362b;
    font-size: .86rem;
    box-shadow: 0 1px 0 #ffffff70 inset;
}
.modern-login .input::placeholder { color: #8d9486; }
.modern-login .input:focus { background: #fff; border-color: #77a87b; box-shadow: 0 0 0 3px #3f984918; }
.modern-login .input-with-icon { padding-left: 46px; }
.modern-login .input-leading-icon { left: 18px; color: #8a9584; width: 16px; height: 16px; }
.modern-login .toggle-password { right: 12px; color: #6d7a68; }
.modern-login .toggle-password:hover { background: #e6ecde; }
.modern-login .helper-row, .modern-login .error-text { min-height: 0; }
.modern-login .error-text { line-height: 1.4; overflow-wrap: anywhere; }
.modern-login .meta { gap: 10px; flex-wrap: wrap; margin: 3px 0 7px; }
.modern-login .checkbox { color: #63705c; font-size: .76rem; }
.modern-login .checkbox input { width: 18px; height: 18px; }
.modern-login .link, .modern-login .link-button { color: #396d3f; font-size: .76rem; }
.modern-login .btn {
    min-height: 52px;
    border-radius: 30px;
    background: #3f9849;
    color: #fff;
    font-weight: 550;
    font-size: .93rem;
    box-shadow: 0 7px 16px #3f984915;
}
.modern-login .btn:hover { background: #347f3d; }
.modern-login .auth-action-group { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 9px; margin-top: 3px; }
.modern-login .divider-label { grid-column: 1 / -1; color: #8b9380; font-size: .61rem; letter-spacing: .12em; margin: 5px 0 7px; font-weight: 500; }
.modern-login .divider-label::before, .modern-login .divider-label::after { background: #cbd3bd; }
.modern-login .btn-secondary {
    min-height: 48px;
    border: 1px solid #bfcab2;
    border-radius: 28px;
    padding: 10px;
    gap: 7px;
    background: transparent;
    color: #3b4a32;
    font-size: .72rem;
    font-weight: 450;
    line-height: 1.35;
    box-shadow: none;
}
.modern-login .btn-secondary:hover { background: #ffffff70; border-color: #71996d; }
.modern-login .btn-secondary svg, .modern-login .microsoft-mark { flex-shrink: 0; }
.modern-login .footer-note { flex: 1; display: flex; align-items: flex-end; justify-content: center; margin-top: 0; padding-top: 22px; font-size: .67rem; color: #87907c; }
.modern-login .status-alert { color: #276437; background: #e1efde; border-color: #bad8b4; }
.modern-login .error-alert { color: #9d2635; background: #fbe8e7; border-color: #efc8c8; }
.modern-login .geo-action { color: #34763c; background: #e6efdf; border-color: #bdcbb8; min-height: 32px; }
.modern-login .geo-action:hover { color: #244b2d; background: #dce9d4; }
.modern-login :is(a, button, input):focus-visible { outline: 3px solid #347f3d; outline-offset: 3px; }
.workspace-panel {
    position: relative;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px;
    border-radius: 28px;
    background: #314b3c;
    color: #fff;
    isolation: isolate;
}
.workspace-panel__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; z-index: -2; }
.workspace-panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #14271c28, transparent 35%, #10281ddd 100%); z-index: -1; }
.workspace-panel__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.workspace-panel__label { display: inline-flex; align-items: center; gap: 9px; font-size: .55rem; letter-spacing: .17em; color: #fff; }
.workspace-float__dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #b8d59b; flex: 0 0 auto; }
.workspace-panel__spark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #ffffff80; background: #ffffff20; border-radius: 50%; font-size: 25px; }
.workspace-panel__card { display: flex; align-items: center; gap: 12px; position: absolute; left: 30px; top: 98px; padding: 15px 18px; border-radius: 18px; background: #e9edcbeF; color: #344830; box-shadow: 0 12px 35px #14231f25; font-size: .82rem; transform: rotate(-3deg); }
.workspace-panel__card small { display: block; margin-top: 5px; color: #728064; font-size: .64rem; }
.workspace-panel__card-icon { display: grid; place-items: center; width: 30px; height: 30px; background: #d4dfb5; border-radius: 50%; }
.workspace-panel__bottom { margin-top: 220px; }
.workspace-panel__intro h2 { margin: 0 0 12px; font-size: clamp(34px, 3.5vw, 48px); font-weight: 450; letter-spacing: -.05em; line-height: 1.08; }
.workspace-panel__intro p { margin: 0; color: #e2e8d9; font-size: .8rem; line-height: 1.5; }
.modern-login .workspace-panel .security-sticky-note { display: block; position: relative; inset: auto; width: 100%; min-height: 0; margin: 22px 0 0; padding: 16px; transform: none; border: 1px solid #ffffff35; border-radius: 18px; box-shadow: none; background: #f6f7e9ec; color: #35482f; }
.modern-login .security-sticky-note::after, .modern-login .security-sticky-note__tape { display: none; }
.modern-login .security-sticky-note__heading h2 { margin: 0; font-size: .6rem; letter-spacing: .08em; line-height: 1.4; }
.modern-login .security-sticky-note__heading svg { width: 20px; height: 20px; }
.modern-login .security-sticky-note p { margin: 9px 0; font-family: inherit; font-weight: 400; font-size: .75rem; line-height: 1.5; text-shadow: none; }
.modern-login .security-sticky-note__footer { position: static; font-size: .58rem; letter-spacing: 0; }
.workspace-panel__footer { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: #e2e8d9; font-size: .7rem; }
@media (min-width: 761px) and (max-height: 760px) {
    body.modern-login { padding: 0; }
    .modern-login .auth-shell { min-height: 100svh; min-height: 100dvh; padding: 12px; border-radius: 0; gap: 14px; }
    .modern-login .card { padding-top: 10px; padding-bottom: 8px; }
    .modern-login .brand-identity { margin-bottom: 18px; }
    .modern-login .brand-logo-wrap { width: 90px; height: 54px; }
    .modern-login .brand { margin-bottom: 16px; }
    .modern-login .brand h1 { font-size: 28px; }
    .modern-login .auth-form { gap: 8px; }
    .modern-login .input, .modern-login .btn { min-height: 46px; }
    .modern-login .footer-note { padding-top: 12px; }
    .workspace-panel { padding: 22px; }
    .workspace-panel__bottom { margin-top: 180px; }
    .workspace-panel__intro h2 { font-size: 36px; }
    .modern-login .workspace-panel .security-sticky-note { margin-top: 16px; padding: 12px; }
}
@media (max-width: 950px) {
    .modern-login .card { padding-left: 18px; padding-right: 18px; }
    .workspace-panel { padding: 22px; }
}
/* Use the whole viewport, with intrinsic height when content needs to scroll. */
.modern-login .auth-stage { min-height: 100svh; min-height: 100dvh; align-items: stretch; }
.modern-login .card { min-height: 600px; }
.modern-login .brand h1, .modern-login .brand p { flex-shrink: 0; }
@media (min-width: 761px) {
    .modern-login .card { padding-top: clamp(18px, 4vh, 48px); padding-bottom: clamp(18px, 3vh, 36px); }
    .modern-login .workspace-panel { padding: clamp(22px, 3vw, 48px); }
    .workspace-panel__card { left: clamp(30px, 3vw, 48px); top: clamp(98px, 14vh, 150px); }
    .modern-login .workspace-panel .security-sticky-note { max-width: 520px; }
}
@media (min-width: 761px) and (max-height: 700px) {
    .modern-login .card { min-height: 540px; padding-top: 12px; padding-bottom: 12px; }
    .modern-login .brand-identity { padding-bottom: 14px; }
}
/* Final finish: warm neutrals, forest accents and quiet depth. */
body.modern-login {
    --text: #243a2c;
    --accent: #357b40;
    --accent-hover: #286432;
    --muted: #65715f;
}
.modern-login .auth-shell {
    background:
        radial-gradient(ellipse at 0% 100%, #dfdfbc60, transparent 55%),
        radial-gradient(ellipse at 36% 0%, #ffffffb0, transparent 50%),
        #f4f3eb;
}
.modern-login .brand h1 {
    color: #24392b;
    font-weight: 500;
    letter-spacing: -.055em;
    text-wrap: balance;
}
.modern-login .brand p { color: #6d7567; line-height: 1.6; }
.modern-login .label { color: #586651; font-weight: 500; letter-spacing: .015em; }
.modern-login .input {
    background: #ffffffb8;
    border-color: #d9dece;
    box-shadow: 0 2px 5px #30402b04, 0 1px 0 #ffffff inset;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.modern-login .input:hover { border-color: #b4c3a7; }
.modern-login .input:focus {
    background: #fff;
    border-color: #61936a;
    box-shadow: 0 0 0 4px #3f984912, 0 3px 12px #324a2d08;
}
.modern-login .input.is-invalid, .modern-login .input.invalid { border-color: #c6656d; }
.modern-login .input.valid { border-color: #7ca97a; }
.modern-login .btn {
    position: relative;
    background: linear-gradient(135deg, #408c49, #2d6b38);
    border: 1px solid #2d6b38;
    box-shadow: 0 8px 20px -8px #2a613f65, 0 1px 0 #ffffff24 inset;
    letter-spacing: .02em;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.modern-login .btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #357d3e, #245b2e);
    box-shadow: 0 11px 24px -8px #2a613f80, 0 1px 0 #ffffff24 inset;
    transform: translateY(-1px);
}
.modern-login .btn:active:not(:disabled) { transform: translateY(0); }
.modern-login .btn-secondary {
    border-color: #c4ceb9;
    background: #ffffff24;
    color: #405339;
    font-weight: 500;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.modern-login .btn-secondary:hover:not(:disabled) {
    background: #ffffffa0;
    border-color: #98b58d;
    box-shadow: 0 4px 12px #34472d08;
}
.modern-login .link:hover { color: #245b2e; text-decoration: underline; text-underline-offset: 4px; }
.modern-login .workspace-panel { border-radius: 32px; box-shadow: 0 8px 32px #203a2918; }
.workspace-panel::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid #ffffff20;
    border-radius: 24px;
    pointer-events: none;
}
.workspace-panel::after {
    background: linear-gradient(180deg, #16251d38, transparent 34%, #152c2270 58%, #10271feb 100%);
}
.workspace-panel__label {
    padding: 10px 14px;
    border: 1px solid #ffffff38;
    border-radius: 24px;
    background: #172c2638;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.workspace-panel__spark { background: #f4f3dfed; color: #3d5635; border-color: #ffffff70; }
.workspace-panel__card {
    border: 1px solid #ffffff8a;
    background: #f1f2d7ed;
    box-shadow: 0 16px 40px -12px #11291c65, 0 1px 0 #ffffffa0 inset;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: rotate(-2deg);
}
.workspace-panel__intro h2 { color: #f7f6e9; text-shadow: 0 2px 24px #13251e40; text-wrap: balance; }
.workspace-panel__intro p { color: #e0e6d7; letter-spacing: .025em; }
.modern-login .workspace-panel .security-sticky-note {
    background: #ffffff16;
    border-color: #ffffff38;
    box-shadow: 0 1px 0 #ffffff08 inset;
    color: #eef1e4;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.modern-login .security-sticky-note__heading svg { color: #d5e4b9; }
.modern-login .security-sticky-note__heading h2 { color: #eef1e4; }
.modern-login .security-sticky-note__footer { color: #c5d1b8; }
.modern-login .security-sticky-note__footer a { color: #e0eacb; text-decoration-color: #e0eacb60; }
.modern-login .security-sticky-note__footer a:hover { color: #fff; }
@media (min-width: 951px) and (min-height: 761px) {
    .modern-login .brand h1 { font-size: clamp(34px, 2.7vw, 42px); }
    .modern-login .brand p { font-size: .9rem; }
    .modern-login .input { min-height: 54px; font-size: .9rem; }
    .modern-login .btn { min-height: 54px; }
    .modern-login .btn-secondary { min-height: 50px; font-size: .76rem; }
}
@media (prefers-reduced-motion: no-preference) {
    .modern-login .brand h1, .modern-login .brand p, .modern-login .auth-form {
        animation: livi-login-enter .5s ease-out both;
    }
    .modern-login .auth-form { animation-delay: .08s; }
    @keyframes livi-login-enter {
        from { opacity: 0; transform: translateY(8px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
@media (prefers-reduced-motion: reduce) {
    .modern-login .input, .modern-login .btn, .modern-login .btn-secondary { transition: none; }
    .modern-login .btn:hover:not(:disabled) { transform: none; }
}
/* Mobile has its own compact proportions rather than a scaled desktop card. */
@media (max-width: 760px) {
    body.modern-login {
        padding: 0;
        align-items: flex-start;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    .modern-login .auth-shell {
        max-width: none;
        min-height: 100svh;
        min-height: 100dvh;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-content: center;
        padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
        gap: 16px;
        border-radius: 0;
        background: radial-gradient(ellipse at 100% 0%, #e7ead960, transparent 55%), #f7f7f0;
    }
    .modern-login .card {
        width: 100%;
        max-width: 390px;
        min-height: 0;
        margin: 0 auto;
        padding: 0;
        border-radius: 0;
    }
    .modern-login .brand { flex: 0 0 auto; margin: 0 0 22px; }
    .modern-login .brand-identity { margin: 0 0 26px; padding: 0; }
    .modern-login .brand-logo-wrap { width: 82px; height: 50px; }
    .modern-login .brand h1 {
        text-align: left;
        font-size: 26px;
        font-weight: 500;
        letter-spacing: -.04em;
        line-height: 1.2;
    }
    .modern-login .brand p { text-align: left; font-size: 13px; line-height: 1.5; margin: 8px 0 0; }
    .modern-login .auth-form { max-width: none; margin: 0; gap: 10px; }
    .modern-login .field { gap: 6px; }
    .modern-login .label { padding-left: 2px; font-size: 12px; letter-spacing: .01em; }
    .modern-login .input {
        min-height: 48px;
        /* Keep native input text at 16px to avoid focus zoom on mobile browsers. */
        font-size: 16px;
        border-radius: 14px;
        padding-top: 11px;
        padding-bottom: 11px;
        border-color: #dce3d4;
        background: #ffffffd9;
        box-shadow: 0 1px 3px #2f452507;
    }
    .modern-login .input-leading-icon { left: 14px; width: 16px; height: 16px; }
    .modern-login .input-with-icon { padding-left: 40px; }
    .modern-login .password-input { padding-right: 48px; }
    .modern-login .toggle-password { right: 5px; width: 38px; height: 38px; }
    .modern-login .meta { flex-wrap: wrap; gap: 10px; margin: 3px 0 6px; }
    .modern-login .checkbox, .modern-login .link { font-size: 12px; }
    .modern-login .checkbox { gap: 6px; }
    .modern-login .checkbox input { width: 16px; height: 16px; }
    .modern-login .helper-row { flex-wrap: wrap; }
    .modern-login .error-text { font-size: 12px; }
    .modern-login .btn { min-height: 48px; border-radius: 14px; font-size: 14px; }
    .modern-login .auth-action-group { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 8px; }
    .modern-login .divider-label { font-size: 9px; margin: 5px 0; letter-spacing: .1em; }
    .modern-login .btn-secondary {
        min-height: 46px;
        border-radius: 14px;
        padding: 9px 8px;
        font-size: 11px;
        gap: 6px;
        background: #ffffff50;
        line-height: 1.4;
    }
    .modern-login .footer-note { flex: 0 0 auto; padding-top: 18px; margin: 0; font-size: 10px; }
    .modern-login .workspace-panel {
        width: 100%;
        max-width: 390px;
        margin: 0 auto;
        padding: 0;
        border-radius: 14px;
        background: transparent;
        box-shadow: none;
        color: #35482f;
    }
    .workspace-panel__photo, .workspace-panel::before, .workspace-panel::after,
    .workspace-panel__top, .workspace-panel__card { display: none; }
    .workspace-panel__intro {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .workspace-panel__bottom { margin: 0; }
    .modern-login .workspace-panel .security-sticky-note {
        margin: 0;
        padding: 12px 14px;
        border-radius: 14px;
        border-color: #d6dfcc;
        background: #edf1e680;
        color: #3b5035;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .modern-login .security-sticky-note__heading { gap: 7px; }
    .modern-login .security-sticky-note__heading h2 { font-size: 9px; letter-spacing: .06em; color: #3b5035; }
    .modern-login .security-sticky-note__heading svg { width: 17px; height: 17px; color: #59764c; }
    .modern-login .security-sticky-note p { font-size: 11px; line-height: 1.5; margin: 7px 0; }
    .modern-login .security-sticky-note__footer { font-size: 9px; color: #64765c; gap: 4px; }
    .modern-login .security-sticky-note__footer a { color: #3f6538; text-decoration-color: #3f653860; }
    .modern-login .security-sticky-note__footer a:hover { color: #244b2d; }
    .workspace-panel__footer { margin: 0; padding: 10px 12px; font-size: 11px; color: #6a795e; }
}
@media (max-width: 760px) and (max-height: 700px) {
    .modern-login .auth-shell { align-content: start; gap: 12px; }
    .modern-login .brand-identity { margin-bottom: 18px; }
    .modern-login .brand { margin-bottom: 16px; }
    .modern-login .footer-note { padding-top: 12px; }
}
@media (max-width: 359px) {
    .modern-login .auth-shell { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
    .modern-login .auth-action-group { grid-template-columns: minmax(0, 1fr); }
    .modern-login .btn-secondary { font-size: 12px; }
    .modern-login .meta .link { margin-left: 0; }
}
/* Recovery and verification share the same palette and form proportions. */
.modern-login .info-alert {
    color: #36553b;
    background: #e8f0e2;
    border-color: #cadcc2;
}
.modern-login .warning-alert {
    color: #735a25;
    background: #f6f0da;
    border-color: #e5d8ae;
}
.modern-auth-secondary .card > .status-alert,
.modern-auth-secondary .card > .error-alert,
.modern-auth-secondary .card > .info-alert,
.modern-auth-secondary .card > .warning-alert {
    width: 100%;
    max-width: 410px;
    margin-left: auto;
    margin-right: auto;
}
.modern-auth-secondary .brand h1 { max-width: 440px; align-self: center; }
.modern-auth-secondary .brand p { max-width: 410px; align-self: center; }
.modern-auth-secondary .auth-form .auth-form { max-width: none; margin: 0; }
.modern-auth-secondary .auth-form .info-alert,
.modern-auth-secondary .auth-form .warning-alert { margin-bottom: 0; line-height: 1.6; }
.modern-auth-secondary .grid-2 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.modern-auth-secondary .help-text { font-size: .76rem; color: #6b7a62; }
.modern-auth-secondary .code-input {
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: .3em;
    font-variant-numeric: tabular-nums;
    padding-left: 18px;
    padding-right: 18px;
}
.modern-auth-secondary .code-input::placeholder { color: #a0ad96; }
.modern-auth-secondary .btn-secondary { font-size: .84rem; }
.modern-auth-secondary .inline-actions { gap: 10px; }
.modern-auth-secondary .meta { gap: 12px; flex-wrap: wrap; }
.modern-auth-secondary .footer-note { line-height: 1.6; text-align: center; }
@media (max-width: 760px) {
    .modern-auth-secondary .brand h1,
    .modern-auth-secondary .brand p { align-self: stretch; max-width: none; }
    .modern-auth-secondary .brand h1 { font-size: 25px; }
    .modern-auth-secondary .brand p { font-size: 13px; }
    .modern-auth-secondary .btn-secondary { font-size: 13px; }
    .modern-auth-secondary .info-alert,
    .modern-auth-secondary .warning-alert,
    .modern-auth-secondary .status-alert,
    .modern-auth-secondary .error-alert { padding: 11px 13px; border-radius: 14px; font-size: 12px; line-height: 1.5; }
    .modern-auth-secondary .helper-row { flex-wrap: wrap; }
    .modern-auth-secondary .help-text { font-size: 11px; }
    .modern-auth-secondary .code-input { font-size: 20px; letter-spacing: .28em; }
    .modern-auth-secondary .inline-actions { flex-direction: column; align-items: stretch; }
    .modern-auth-secondary .footer-note { font-size: 11px; padding-top: 18px; }
}

/* Login-specific finish. Keep recovery and verification layouts independent. */
body.login-page { background: #f8faf8; }
.login-page .auth-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: #f8faf8;
    padding: 24px;
    gap: 24px;
}
.login-page .card {
    justify-content: center;
    min-height: 0;
    padding: 40px clamp(24px, 5vw, 80px);
}
.login-page .brand {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 28px;
}
.login-page .brand-identity { margin: 0 0 36px; padding: 0; }
.login-page .brand-logo-wrap { width: 88px; height: 54px; }
.login-page .brand h1 { text-align: left; font-size: 34px; font-weight: 600; letter-spacing: -.04em; }
.login-page .brand p { text-align: left; margin: 10px 0 0; font-size: 14px; }
.login-page .auth-form { max-width: 400px; gap: 16px; }
.login-page .label { padding-left: 0; font-size: 13px; font-weight: 600; color: #37483d; }
.login-page .input {
    min-height: 50px;
    border-radius: 10px;
    border-color: #d5ded7;
    background: #fff;
    box-shadow: none;
    font-size: 16px;
}
.login-page .input-leading-icon { left: 15px; }
.login-page .input-with-icon { padding-left: 42px; }
.login-page .password-input { padding-right: 48px; }
.login-page .toggle-password { right: 5px; width: 40px; height: 40px; }
.login-page .helper-row:has(.error-text:empty):not(:has(.capslock-text.show)):not(:has(.geo-action[style*="inline-flex"])) { display: none; }
.login-page .meta { margin: 0 0 4px; }
.login-page .checkbox, .login-page .link { font-size: 13px; }
.login-page .btn {
    min-height: 50px;
    border-radius: 10px;
    background: #32753e;
    box-shadow: none;
    font-size: 14px;
}
.login-page .btn:hover:not(:disabled) { background: #286333; box-shadow: none; transform: none; }
.login-page .auth-action-group { grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; }
.login-page .divider-label { margin: 4px 0; font-size: 11px; letter-spacing: 0; text-transform: none; }
.login-page .btn-secondary { min-height: 48px; border-radius: 10px; font-size: 13px; background: #fff; border-color: #d5ded7; }
.login-page .footer-note { flex: 0 0 auto; padding-top: 28px; font-size: 11px; }
.login-page .login-footer { text-align: center; line-height: 1.7; color: #65715f; }
.login-page .login-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.login-page .login-footer__links a { color: #396d3f; text-decoration: none; }
.login-page .login-footer__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.login-page .card > :is(.status-alert, .error-alert) { width: 100%; max-width: 400px; margin: 0 auto 16px; }
.login-page .workspace-panel { border-radius: 20px; box-shadow: none; padding: clamp(24px, 3vw, 48px); }
.login-page .workspace-panel::before, .login-page .workspace-panel__spark, .login-page .workspace-panel__card { display: none; }
.login-page .workspace-panel__label { border: 0; background: transparent; padding: 0; backdrop-filter: none; }
.login-page .workspace-panel__bottom { margin-top: 260px; }
.login-page .workspace-panel__intro h2 { font-weight: 500; font-size: clamp(36px, 3.6vw, 54px); }
.login-page .workspace-panel .security-sticky-note { border: 0; border-top: 1px solid #ffffff40; border-radius: 0; background: transparent; padding: 22px 0 0; backdrop-filter: none; }
@media (max-width: 900px) {
    .login-page .auth-shell { padding: 16px; gap: 16px; }
    .login-page .card { padding: 32px 20px; }
}
@media (max-width: 760px) {
    .login-page .auth-shell { grid-template-columns: minmax(0, 1fr); padding: 32px max(24px, env(safe-area-inset-right)) 24px max(24px, env(safe-area-inset-left)); gap: 28px; }
    .login-page .card { padding: 0; max-width: 400px; }
    .login-page .brand-identity { margin-bottom: 28px; }
    .login-page .brand h1 { font-size: 30px; }
    .login-page .workspace-panel { max-width: 400px; padding: 0; background: transparent; }
    .login-page .workspace-panel__bottom { margin: 0; }
    .login-page .workspace-panel .security-sticky-note { padding: 18px 0 0; margin: 0; border-top-color: #d5ded7; }
}
