:root {
    --color-blue-900: #001c51;
    --color-blue-950: #030d22;
    --color-blue-925: #07122a;
    --color-accent-yellow: #ffd000;
    --color-accent-gold-500: #cbb059;
    --color-accent-gold-400: #dfb841;
    --color-white: #ffffff;
    --color-off-white: #e2e8f0;
    --color-muted: #5e6e88;
    --color-ink: #0b1220;
    --color-ink-soft: #102033;
    --bg: var(--color-blue-900);
    --bg-alt: var(--color-blue-950);
    --surface: var(--color-blue-925);
    --surface-2: #0b1835;
    --line: rgba(255, 255, 255, 0.14);
    --line-strong: rgba(255, 255, 255, 0.24);
    --text: var(--color-off-white);
    --text-strong: var(--color-white);
    --text-muted: var(--color-muted);
    --on-accent: var(--color-ink);
    --gradient-bg-main: linear-gradient(145deg, #001c51 0%, #07122a 52%, #030d22 100%);
    --gradient-hero: linear-gradient(160deg, rgba(0, 28, 81, 0.92) 0%, rgba(3, 13, 34, 0.76) 58%, rgba(3, 13, 34, 0.95) 100%);
    --gradient-cta: linear-gradient(135deg, #ffd000 0%, #ffbf00 100%);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --font-sans: "Segoe UI", "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
    --text-sm: 14px;
    --text-md: 16px;
    --text-lg: 18px;
    --text-xl: 34px;
    --brand-logo-size: 250px;
    --brand-logo-size-mobile: 88px;
    --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.24);
    --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.38);
    --hover-overlay-light: rgba(255, 255, 255, 0.08);
    --focus-ring: 0 0 0 3px rgba(255, 208, 0, 0.35);
    --login-hero-image: url("../../../../public/assets/images/auth/login-hero.png");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 208, 0, 0.16), transparent 24%),
        radial-gradient(circle at bottom right, rgba(223, 184, 65, 0.12), transparent 22%),
        var(--gradient-bg-main);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}

.auth-shell {
    width: 100%;
    max-width: 999px;
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(360px, 0.95fr);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(3, 13, 34, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.hero-panel {
    position: relative;
    min-height: 700px;
    background: rgba(3, 13, 34, 0.65);
}

.hero-image {
    position:-webkit-sticky;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.24));
    pointer-events: none;
}

.form-panel {
    position: relative;
    padding: clamp(28px, 4vw, 56px);
    background: rgba(7, 18, 42, 0.92);
    display: flex;
    align-items: center;
}

.form-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 208, 0, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%);
    pointer-events: none;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
}

.auth-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.brand-logo {
    width: min(var(--brand-logo-size), 100%);
    height: auto;
    display: block;
    object-fit: contain;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-accent-gold-400);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-label::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--color-accent-gold-400);
}

.auth-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3, 12px);
    max-width: 40ch;
    margin: 0 auto var(--space-5);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-off-white, #e2e8f0);
}

.auth-welcome__text {
    background: linear-gradient(135deg, #ffffff 0%, var(--color-accent-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-welcome__icon {
    flex-shrink: 0;
    display: block;
}

.auth-title {
    font-size: var(--text-xl);
    line-height: 1.05;
    color: var(--text-strong);
    letter-spacing: -0.04em;
}

.auth-subtitle {
    margin-top: var(--space-3);
    max-width: 42ch;
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.65;
}

.helper-note {
    margin-top: var(--space-4);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 208, 0, 0.18);
    background: rgba(255, 208, 0, 0.06);
    color: rgba(226, 232, 240, 0.92);
    font-size: var(--text-sm);
    line-height: 1.5;
}

.helper-note strong {
    color: var(--color-accent-yellow);
}

.login-form {
    margin-top: var(--space-8);
}

.field {
    margin-bottom: var(--space-5);
}

.field label {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--text-strong);
    font-size: var(--text-md);
    font-weight: 500;
}

.input-shell {
    position: relative;
}

.form-control {
    width: 100%;
    min-height: 54px;
    padding: 0 48px 0 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(11, 24, 53, 0.9);
    color: var(--text-strong);
    font-size: var(--text-md);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control::placeholder {
    color: rgba(94, 110, 136, 0.94);
}

.form-control:focus {
    border-color: rgba(255, 208, 0, 0.65);
    box-shadow: var(--focus-ring);
    background: rgba(11, 24, 53, 1);
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--color-accent-gold-400);
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin: 6px 0 var(--space-6);
    font-size: var(--text-sm);
}

.remember-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(226, 232, 240, 0.9);
}

.remember-wrap input {
    accent-color: var(--color-accent-yellow);
}

.link {
    color: var(--color-accent-gold-400);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.link:hover {
    color: var(--color-accent-gold-500);
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--gradient-cta);
    color: var(--on-accent);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(255, 208, 0, 0.16);
    transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-login:hover {
    filter: brightness(1.03);
    box-shadow: 0 18px 34px rgba(255, 208, 0, 0.2);
}

.btn-login:active {
    transform: translateY(1px);
}

.footer-links {
    margin-top: var(--space-6);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: rgba(226, 232, 240, 0.82);
}

.divider {
    margin: var(--space-6) 0;
    position: relative;
    text-align: center;
    color: rgba(226, 232, 240, 0.58);
    font-size: var(--text-sm);
}

.divider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    position: relative;
    z-index: 1;
    padding: 0 14px;
    background: rgba(7, 18, 42, 0.92);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.social-btn {
    min-height: 48px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(11, 24, 53, 0.82);
    color: var(--text-strong);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.social-btn:hover {
    background: var(--hover-overlay-light);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.form-note {
    margin-top: var(--space-5);
    font-size: var(--text-sm);
    color: rgba(226, 232, 240, 0.78);
    line-height: 1.5;
}

.form-note a {
    color: var(--color-accent-gold-400);
    text-decoration: none;
}

.form-note a:hover {
    text-decoration: underline;
}

@media (max-width: 980px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: 580px;
    }
    .hero-image {
        position: absolute;
    }
}

@media (max-width: 640px) {
    .auth-page {
        padding: var(--space-3);
    }

    .brand-logo {
        width: min(var(--brand-logo-size-mobile), 100%);
    }

    .hero-panel,
    .form-panel {
        padding: var(--space-6);
    }

    .hero-title {
        max-width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-foot,
    .meta-row,
    .footer-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }
}