@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@500;600;700&display=swap');

:root {
    --auth-bg: #f4efe7;
    --auth-surface: rgba(255, 255, 255, 0.82);
    --auth-surface-strong: rgba(255, 255, 255, 0.94);
    --auth-text: #1d2433;
    --auth-muted: #667085;
    --auth-border: rgba(21, 35, 58, 0.10);
    --auth-primary: #0f0a9d;
    --auth-primary-deep: #070451;
    --auth-accent: #7a74ff;
    --auth-shadow: 0 30px 80px rgba(15, 10, 157, 0.18);
}

body.auth-premium-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(122, 116, 255, 0.22), transparent 32%),
        radial-gradient(circle at right 20%, rgba(15, 10, 157, 0.16), transparent 24%),
        linear-gradient(135deg, #f4f3ff 0%, #eff0ff 45%, #e9ecff 100%);
    color: var(--auth-text);
    font-family: "Manrope", "Inter", sans-serif;
}

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

body.auth-premium-page::before {
    width: 18rem;
    height: 18rem;
    top: 8rem;
    right: -5rem;
    background: rgba(122, 116, 255, 0.18);
}

body.auth-premium-page::after {
    width: 24rem;
    height: 24rem;
    bottom: -8rem;
    left: -6rem;
    background: rgba(15, 10, 157, 0.14);
}

body.auth-premium-page #mainNav {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(21, 35, 58, 0.06);
}

body.auth-premium-page #mainNav .navbar-brand,
body.auth-premium-page #mainNav .nav-link {
    color: #172033;
}

body.auth-premium-page #mainNav .btn-primary {
    background: linear-gradient(135deg, var(--auth-primary) 0%, #4139d8 100%);
    border-color: transparent;
}

.auth-stage {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 88px);
    padding: 2rem 0 3rem;
}

.auth-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.60);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.46);
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(24px);
}

.auth-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.22), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent 30%);
    pointer-events: none;
}

.auth-hero {
    position: relative;
    height: 100%;
    padding: 2rem;
    color: #f7f8fb;
    background:
        linear-gradient(160deg, rgba(5, 4, 44, 0.97) 0%, rgba(15, 10, 157, 0.95) 52%, rgba(65, 57, 216, 0.88) 100%);
}

.auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 28%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.15), transparent 34%);
    pointer-events: none;
}

.auth-hero-content,
.auth-panel {
    position: relative;
    z-index: 1;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-display {
    margin-bottom: 1rem;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.9rem, 5vw, 4.75rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.auth-hero-copy {
    max-width: 34rem;
    margin-bottom: 2rem;
    color: rgba(247, 248, 251, 0.78);
    font-size: 1rem;
    line-height: 1.8;
}

.auth-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.auth-pill {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
}

.auth-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.auth-stat {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.10);
}

.auth-stat-value {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.2rem;
    font-weight: 800;
}

.auth-stat-label {
    color: rgba(247, 248, 251, 0.72);
    font-size: 0.82rem;
}

.auth-panel-wrap {
    padding: 1.25rem;
}

.auth-panel {
    height: 100%;
    padding: 2rem;
    border-radius: 28px;
    background: var(--auth-surface);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(15, 10, 157, 0.14), rgba(122, 116, 255, 0.18));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.50);
    overflow: hidden;
}

.auth-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-brand-mark-icon {
    color: var(--auth-primary);
    font-size: 1.5rem;
}

.auth-brand-overline {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--auth-primary);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-brand-name {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
}

.auth-title {
    margin-bottom: 0.5rem;
    font-size: clamp(1.9rem, 3vw, 2.45rem);
    font-weight: 800;
    line-height: 1.08;
}

.auth-subtitle {
    margin-bottom: 1.75rem;
    color: var(--auth-muted);
    line-height: 1.75;
}

.auth-message {
    margin-bottom: 1.25rem;
}

.auth-message .alert {
    border: 0;
    border-radius: 18px;
    padding: 0.9rem 1rem;
    box-shadow: 0 10px 30px rgba(21, 35, 58, 0.10);
}

.auth-form .form-label {
    margin-bottom: 0.5rem;
    color: #263246;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #7a869a;
    font-size: 0.98rem;
    pointer-events: none;
}

.auth-input {
    min-height: 3.7rem;
    padding: 1rem 1rem 1rem 2.9rem;
    border: 1px solid var(--auth-border);
    border-radius: 18px;
    background: var(--auth-surface-strong);
    color: var(--auth-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-input:focus {
    border-color: rgba(15, 10, 157, 0.42);
    box-shadow: 0 0 0 0.25rem rgba(15, 10, 157, 0.14);
    transform: translateY(-1px);
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #5f6d7e;
    font-size: 1rem;
    line-height: 1;
    padding: 0.35rem;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
    color: var(--auth-primary);
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3.8rem;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--auth-primary-deep) 0%, var(--auth-primary) 55%, #4139d8 100%);
    box-shadow: 0 20px 35px rgba(15, 10, 157, 0.28);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.auth-submit:hover,
.auth-submit:focus {
    background: linear-gradient(135deg, #050338 0%, #0f0a9d 55%, #5f58f0 100%);
    color: #ffffff;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
    color: var(--auth-muted);
    font-size: 0.95rem;
}

.auth-links a {
    color: var(--auth-primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-links a:hover {
    color: var(--auth-primary-deep);
}

.auth-note {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(15, 10, 157, 0.10);
    border-radius: 18px;
    background: rgba(15, 10, 157, 0.05);
    color: #344054;
    font-size: 0.92rem;
    line-height: 1.7;
}

.auth-note strong {
    color: #172033;
}

.auth-invalid {
    margin-top: 0.55rem;
    padding-left: 0.15rem;
}

@media (max-width: 991.98px) {
    .auth-stage {
        min-height: auto;
        padding-top: 1.5rem;
    }

    .auth-shell {
        border-radius: 28px;
    }

    .auth-hero {
        min-height: auto;
    }

    .auth-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    body.auth-premium-page #mainNav {
        background: rgba(255, 255, 255, 0.88);
    }

    .auth-stage {
        padding: 1rem 0 2rem;
    }

    .auth-panel-wrap,
    .auth-hero,
    .auth-panel {
        padding: 1.25rem;
    }

    .auth-shell,
    .auth-panel {
        border-radius: 24px;
    }

    .auth-display {
        font-size: clamp(2.2rem, 12vw, 3.4rem);
    }
}

@media (max-width: 575.98px) {
    .auth-brand {
        gap: 0.8rem;
    }

    .auth-brand-mark {
        width: 3.3rem;
        height: 3.3rem;
        border-radius: 16px;
    }

    .auth-title {
        font-size: 1.7rem;
    }

    .auth-stat-grid {
        grid-template-columns: 1fr;
    }

    .auth-links {
        flex-direction: column;
        align-items: flex-start;
    }
}
