/* Auth / Landing Page */
.auth-page-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(22, 101, 52, 0.14), transparent 30%),
        linear-gradient(135deg, #f8fafc 0%, #eef2ff 48%, #f8fafc 100%);
}

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

.auth-page-body main {
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    display: grid;
    place-items: center;
}

.auth-page-body .flash-messages {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 50;
    width: min(560px, calc(100% - 32px));
    transform: translateX(-50%);
}

.auth-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 440px);
    gap: 28px;
    align-items: stretch;
}

.auth-shell-single {
    grid-template-columns: minmax(320px, 460px);
    justify-content: center;
}

.auth-shell-forgot-password {
    width: min(550px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 440px);
    gap: 28px;
    align-items: stretch;
}

.auth-shell-single-forgot-password {
    grid-template-columns: minmax(320px, 460px);
    justify-content: center;
}

.auth-brand-panel,
.auth-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.14);
}

.auth-brand-panel {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    padding: 42px;
    color: white;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.92)),
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.45), transparent 34%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -90px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-brand-badge {
    width: fit-content;
    border: 1px solid rgba(191, 219, 254, 0.35);
    border-radius: var(--radius-full);
    padding: 8px 12px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 900;
}

.auth-brand-panel h2 {
    max-width: 640px;
    margin: 46px 0 16px;
    color: white;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.auth-brand-panel p {
    max-width: 620px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.65;
}

.auth-feature-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    margin-top: 36px;
}

.auth-feature-list div {
    border: 1px solid rgba(219, 234, 254, 0.20);
    border-radius: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.auth-feature-list strong {
    display: block;
    margin-bottom: 6px;
    color: white;
    font-size: 15px;
}

.auth-feature-list span {
    display: block;
    color: #dbeafe;
    line-height: 1.5;
}

.auth-card {
    align-self: center;
    padding: 34px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
}

.auth-card-header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 26px;
}

.auth-logo-mark {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--color-primary), #1e40af);
    font-weight: 950;
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.28);
}

.auth-card-header h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
}

.auth-card-header p {
    margin: 6px 0 0;
    color: var(--color-muted);
    line-height: 1.45;
}

.auth-form {
    max-width: none;
    gap: 16px;
}

.auth-form label {
    font-size: 14px;
}

.auth-form input {
    min-height: 48px;
    border-radius: 16px;
    background: white;
}

.auth-form input::placeholder {
    color: #94a3b8;
}

.auth-submit-button {
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
    border-radius: 16px;
    font-size: 15px;
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
}

.auth-card-footer {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.auth-card-footer a {
    font-weight: 900;
    text-decoration: none;
}

.auth-card-footer a:hover {
    text-decoration: underline;
}

.auth-footnote {
    margin-top: 22px;
    border-radius: 18px;
    padding: 14px;
    color: var(--color-muted);
    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    font-size: 13px;
    line-height: 1.5;
}

.auth-alert {
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-weight: 850;
    line-height: 1.45;
}

.auth-alert-error {
    color: var(--color-danger);
    background: var(--color-danger-bg);
    border: 1px solid var(--color-danger-border);
}

@media (max-width: 900px) {
    .auth-page-body main {
        padding: 16px;
        align-items: start;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .auth-brand-panel {
        min-height: auto;
        padding: 26px;
    }

    .auth-brand-panel h2 {
        margin-top: 28px;
    }

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

@media (max-width: 560px) {
    .auth-page-body main {
        padding: 12px;
    }

    .auth-brand-panel,
    .auth-card {
        border-radius: 22px;
    }

    .auth-brand-panel {
        padding: 22px;
    }

    .auth-brand-panel h2 {
        font-size: 34px;
    }

    .auth-brand-panel p {
        font-size: 15px;
    }

    .auth-feature-list {
        display: none;
    }

    .auth-card-header {
        align-items: flex-start;
    }

    .auth-logo-mark {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 16px;
    }

    .auth-card-header h2 {
        font-size: 24px;
    }
}