body.auth-page {
    min-width: 0;
    background:
        linear-gradient(135deg, rgba(255, 111, 97, 0.1), rgba(255, 255, 255, 0) 32%),
        linear-gradient(225deg, rgba(20, 184, 166, 0.1), rgba(255, 255, 255, 0) 36%),
        #f8fafc;
    color: #1e293b;
    font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.auth-page::before {
    display: none;
}

body.auth-page main {
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.auth-page .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    max-width: none;
    min-height: 80px;
    margin: 0;
    padding: 0 32px;
    border: 0;
    border-bottom: 1px solid rgba(203, 213, 225, 0.72);
    border-radius: 0;
    background: rgba(248, 250, 252, 0.86);
    box-shadow: none;
    backdrop-filter: blur(22px);
}

body.auth-page .brand-logo {
    display: none;
}

body.auth-page .brand-wordmark {
    display: inline-block;
    color: #0f172a;
    font-size: 1.68rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    transform: scaleX(0.955);
    transform-origin: left center;
}

body.auth-page .brand-wordmark span {
    color: #ef4444;
}

body.auth-page .nav-actions {
    gap: 8px;
}

body.auth-page .nav-dashboard-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
}

body.auth-page .nav-link-ghost {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
}

body.auth-page .menu-button {
    display: none;
}

.auth-shell {
    display: grid;
    width: min(1040px, 100%);
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 34px;
    align-items: center;
    margin-inline: auto;
    padding: 64px 32px 80px;
}

.auth-copy {
    min-width: 0;
}

.auth-copy .eyebrow {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 14px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-copy h1 {
    max-width: 620px;
    margin: 14px 0 0;
    color: #0f172a;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.06;
}

.auth-copy p:not(.eyebrow) {
    max-width: 560px;
    margin-top: 14px;
    color: #64748b;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.56;
}

.auth-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.auth-benefits span {
    min-height: 30px;
    padding: 7px 10px;
    border: 1px solid #ccfbf1;
    border-radius: 999px;
    background: #ecfeff;
    color: #0f766e;
    font-size: 0.76rem;
    font-weight: 800;
}

.auth-card {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 22px;
    border: 2px solid transparent;
    border-radius: 8px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, #ff7a59, #facc15, #2dd4bf, #60a5fa) border-box;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
}

.auth-card-head span {
    display: block;
    color: #ef4444;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-card-head h2 {
    margin: 4px 0 0;
    color: #0f172a;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.12;
}

.auth-card label {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.auth-card label span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-card input {
    width: 100%;
    min-height: 48px;
    padding: 11px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 600;
}

.auth-card input:focus {
    border-color: #14b8a6;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.13);
}

.auth-submit {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff5f45, #f97316);
    color: #ffffff;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 800;
}

.auth-error {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff1f2;
    color: #b91c1c;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
}

.auth-switch {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
}

.auth-switch a {
    color: #0f766e;
    font-weight: 800;
}

body.auth-page .site-footer {
    width: min(1040px, calc(100% - 32px));
    margin-top: 0;
    padding: 28px 0 40px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.86rem;
}

@media (max-width: 820px) {
    .auth-shell {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 42px 18px 56px;
    }

    .auth-copy {
        text-align: center;
    }

    .auth-copy h1,
    .auth-copy p:not(.eyebrow) {
        margin-inline: auto;
    }

    .auth-benefits {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body.auth-page .site-header {
        min-height: 68px;
        padding-inline: 16px;
    }

    body.auth-page .brand-wordmark {
        font-size: 1.08rem;
    }

    body.auth-page .nav-dashboard-link {
        min-height: 38px;
        padding-inline: 12px;
        font-size: 0.78rem;
    }

    .auth-copy h1 {
        font-size: 2rem;
    }

    .auth-card {
        padding: 16px;
    }
}
