body.login-page {
    --bg: linear-gradient(180deg, #f7f2e9 0%, #efe5d4 100%);
    --surface: rgba(255, 253, 248, 0.92);
    --surface-soft: #f6efe4;
    --text: #17212b;
    --muted: #5e6b78;
    --border: rgba(23, 33, 43, 0.12);
    --primary: #195e63;
    --primary-dark: #104a4f;
    --highlight: #d97706;
    --shadow: 0 26px 70px rgba(22, 34, 45, 0.14);
    --shadow-soft: 0 18px 44px rgba(22, 34, 45, 0.10);
    --brand-gradient: linear-gradient(135deg, #16363f 0%, #1f6f78 58%, #d97706 100%);
    margin: 0;
    min-height: 100svh;
    font-family: "DM Sans", sans-serif;
    color: var(--text);
    background: var(--bg);
    position: relative;
    overflow: hidden;
    height: 100svh;
}

body.login-page * {
    box-sizing: border-box;
}

body.login-page::before,
body.login-page::after {
    content: "";
    position: fixed;
    border-radius: 999px;
    filter: blur(8px);
    z-index: 0;
    pointer-events: none;
}

body.login-page::before {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -120px;
    background: radial-gradient(circle, rgba(31, 111, 120, 0.22) 0%, rgba(31, 111, 120, 0) 70%);
}

body.login-page::after {
    width: 380px;
    height: 380px;
    right: -120px;
    bottom: -120px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.20) 0%, rgba(217, 119, 6, 0) 72%);
}

.login-page .page {
    position: fixed;
    z-index: 1;
    inset: 0;
    width: 100%;
    min-height: 100svh;
    height: 100svh;
    padding: clamp(16px, 2.8vw, 28px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-page .shell {
    width: min(1180px, 100%);
    height: 100%;
    max-height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 400px);
    gap: clamp(18px, 2.4vw, 26px);
    align-items: center;
    overflow: hidden;
}

.login-page .brand-panel {
    min-height: clamp(520px, 74vh, 720px);
    max-height: 100%;
    border-radius: clamp(26px, 3vw, 34px);
    padding: clamp(26px, 3.6vw, 40px);
    color: #ffffff;
    background:
        linear-gradient(0deg, rgba(10, 23, 33, 0.14), rgba(10, 23, 33, 0.14)),
        var(--brand-gradient),
        url("./login-hero.jpg") center/cover no-repeat;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.login-page .brand-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 34%),
        linear-gradient(180deg, rgba(22, 54, 63, 0.12) 0%, rgba(22, 54, 63, 0.32) 100%);
    z-index: -1;
}

.login-page .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    font-weight: 700;
}

.login-page .eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.16);
}

.login-page .brand-copy h1 {
    margin: 18px 0 0;
    max-width: 560px;
    font-size: clamp(2.4rem, 5vw, 4.35rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.login-page .brand-copy-lead {
    margin: 18px 0 0;
    max-width: 560px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.84);
}

.login-page .brand-copy-lead-short {
    display: none;
}

.login-page .chip-row,
.login-page .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    grid-auto-rows: 1fr;
}

.login-page .chip-row {
    margin-top: 28px;
}

.login-page .chip,
.login-page .feature-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.login-page .chip {
    padding: 14px 16px;
    min-width: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
}

.login-page .chip strong {
    display: block;
    font-size: 23px;
    font-weight: 800;
    line-height: 1;
}

.login-page .chip span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.82);
}

.login-page .feature-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.10);
}

.login-page .feature-card .label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.login-page .feature-card strong {
    display: block;
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.2;
}

.login-page .feature-card p {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.login-page .login-panel {
    border-radius: clamp(26px, 3vw, 34px);
    padding: clamp(24px, 3vw, 36px);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(620px, 100%);
    max-height: 100%;
}

.login-page .login-head {
    margin-bottom: 28px;
}

.login-page .brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.login-page .brand-tag::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--highlight);
}

.login-page .logo-wrap {
    width: 76px;
    height: 76px;
    margin-top: 20px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-page .logo-wrap img {
    width: 54px;
    height: auto;
    object-fit: contain;
}

.login-page .login-head h2 {
    margin: 20px 0 0;
    font-size: 32px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.login-page .login-head p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 15px;
}

.login-page .field {
    margin-bottom: 16px;
}

.login-page .field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.login-page .field:focus-within label {
    color: var(--primary);
    transform: translateX(2px);
}

.login-page .input-shell {
    position: relative;
}

.login-page .input-shell input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.login-page .input-shell input::placeholder {
    color: #8b96a1;
}

.login-page .input-shell input:focus {
    border-color: rgba(25, 94, 99, 0.45);
    box-shadow: 0 0 0 4px rgba(25, 94, 99, 0.12), 0 14px 28px rgba(16, 74, 79, 0.08);
    transform: translateY(-1px);
}

.login-page .btn {
    width: 100%;
    margin-top: 6px;
    padding: 16px 18px;
    border: none;
    border-radius: 18px;
    font: inherit;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(16, 74, 79, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-page .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 34px rgba(16, 74, 79, 0.26);
}

.login-page .btn:active {
    transform: translateY(0);
}

.login-page .btn:focus-visible {
    outline: 3px solid rgba(217, 119, 6, 0.28);
    outline-offset: 3px;
}

.login-page .btn.is-loading {
    pointer-events: none;
    cursor: wait;
    opacity: 0.96;
}

.login-page .btn.is-loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.36);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: login-spin 0.75s linear infinite;
}

.login-page .helper-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
}

.login-page .helper-row .mono {
    font-family: "DM Mono", monospace;
    color: var(--primary);
}

.login-page .error {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(185, 28, 28, 0.16);
    background: rgba(185, 28, 28, 0.08);
    color: #991b1b;
    font-size: 14px;
    line-height: 1.5;
}

.login-page .footer-note {
    margin-top: 30px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1240px) {
    .login-page .shell {
        width: min(1080px, 100%);
        grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    }

    .login-page .brand-panel {
        min-height: clamp(470px, 68vh, 620px);
    }

    .login-page .brand-copy h1 {
        font-size: clamp(2.15rem, 4vw, 3.6rem);
    }

    .login-page .brand-copy-lead-long {
        display: none;
    }

    .login-page .brand-copy-lead-short {
        display: block;
    }

    .login-page .chip-row,
    .login-page .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .login-page .page {
        align-items: center;
    }

    .login-page .shell {
        grid-template-columns: minmax(0, 460px);
        justify-content: center;
    }

    .login-page .brand-panel {
        display: none;
    }

    .login-page .login-panel {
        order: 0;
        width: 100%;
        max-width: 460px;
        min-height: 0;
    }
}

@media (max-height: 820px) and (min-width: 981px) {
    .login-page .page {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .login-page .shell {
        width: min(1100px, 100%);
        grid-template-columns: minmax(0, 1fr) 372px;
        gap: 18px;
    }

    .login-page .brand-panel {
        min-height: 440px;
        padding: 28px;
    }

    .login-page .login-panel {
        max-width: 372px;
        justify-self: end;
        padding: 28px;
        min-height: 0;
    }

    .login-page .brand-copy h1 {
        font-size: clamp(2rem, 3.5vw, 3.25rem);
    }

    .login-page .brand-copy-lead-long {
        display: none;
    }

    .login-page .brand-copy-lead-short {
        display: block;
    }

    .login-page .chip-row {
        margin-top: 18px;
    }

    .login-page .feature-grid {
        display: none;
    }

    .login-page .login-head {
        margin-bottom: 20px;
    }

    .login-page .login-head h2 {
        font-size: 29px;
        margin-top: 18px;
    }

    .login-page .helper-row {
        margin-top: 12px;
    }

    .login-page .footer-note {
        margin-top: 22px;
        line-height: 1.55;
    }
}

@media (max-width: 720px) {
    .login-page .page {
        padding: 16px;
    }

    .login-page .login-panel {
        padding: 26px;
        border-radius: 28px;
    }

    .login-page .helper-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-page .login-head h2 {
        font-size: 28px;
    }
}

@media (max-width: 540px) {
    .login-page .brand-copy h1 {
        font-size: 2.1rem;
    }

    .login-page .brand-copy-lead {
        font-size: 15px;
    }

    .login-page .eyebrow,
    .login-page .brand-tag {
        letter-spacing: 0.08em;
    }

    .login-page .logo-wrap {
        width: 68px;
        height: 68px;
    }

    .login-page .logo-wrap img {
        width: 48px;
    }

    .login-page .input-shell input,
    .login-page .btn {
        padding: 15px 16px;
    }
}

@media (max-height: 900px) {
    .login-page .page {
        padding: 14px 16px;
    }

    .login-page .shell {
        gap: 16px;
    }

    .login-page .brand-panel {
        min-height: 0;
        padding: 24px;
    }

    .login-page .login-panel {
        padding: 24px;
    }

    .login-page .brand-copy h1 {
        font-size: clamp(1.9rem, 3.3vw, 3rem);
    }

    .login-page .brand-copy-lead-long {
        display: none;
    }

    .login-page .brand-copy-lead-short {
        display: block;
    }

    .login-page .feature-grid {
        display: none;
    }

    .login-page .chip-row {
        margin-top: 14px;
    }

    .login-page .login-head {
        margin-bottom: 18px;
    }

    .login-page .logo-wrap {
        margin-top: 16px;
    }

    .login-page .footer-note {
        margin-top: 16px;
        line-height: 1.5;
    }
}

@media (max-height: 760px) {
    .login-page .shell {
        grid-template-columns: minmax(0, 420px);
        justify-content: center;
    }

    .login-page .brand-panel {
        display: none;
    }

    .login-page .login-panel {
        width: 100%;
        max-width: 420px;
        min-height: 0;
        padding: 22px;
    }

    .login-page .login-head h2 {
        font-size: 26px;
        margin-top: 16px;
    }

    .login-page .field {
        margin-bottom: 12px;
    }

    .login-page .input-shell input,
    .login-page .btn {
        padding: 14px 16px;
    }

    .login-page .helper-row {
        margin-top: 12px;
    }

    .login-page .footer-note {
        font-size: 11px;
    }
}
