﻿:root {
    --navy: #06254a;
    --navy-dark: #031a36;
    --navy-light: #0d376b;
    --gold: #f5ad24;
    --gold-light: #ffc857;
    --gold-pale: #fff4df;
    --white: #ffffff;
    --background: #f6f8fb;
    --text: #172033;
    --text-muted: #6b7280;
    --border: #e5e9f0;
    --danger: #dc2626;
    --success: #16a34a;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-md: 0 12px 40px rgba(3, 26, 54, 0.10);
}


/* ==========================================================
   RESET
========================================================== */

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

html,
body {
    min-height: 100%;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font: inherit;
}


/* ==========================================================
   AUTH LAYOUT
========================================================== */

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 44%) 1fr;
}


/* ==========================================================
   BRAND PANEL
========================================================== */

.auth-brand {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
}

    .auth-brand::before {
        content: "";
        position: absolute;
        width: 520px;
        height: 520px;
        border-radius: 50%;
        background: rgba(245, 173, 36, 0.08);
        top: -220px;
        right: -220px;
    }

    .auth-brand::after {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.07);
        bottom: -180px;
        left: -160px;
    }

.auth-brand-inner {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 42px 56px;
    display: flex;
    flex-direction: column;
}


/* ==========================================================
   LOGO
========================================================== */

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: var(--white);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.auth-logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--white);
    display: grid;
    place-items: center;
    overflow: hidden;
}

    .auth-logo-mark img {
        width: 32px;
        height: 32px;
        object-fit: contain;
    }


/* ==========================================================
   BRAND CONTENT
========================================================== */

.auth-brand-content {
    max-width: 520px;
    margin: auto 0;
}

.auth-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.auth-brand-content h1 {
    max-width: 500px;
    margin-bottom: 20px;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.8px;
}

.auth-brand-content p {
    max-width: 470px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.8;
}


/* ==========================================================
   BRAND FOOTER
========================================================== */

.auth-brand-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
}


/* ==========================================================
   AUTH CONTENT
========================================================== */

.auth-content {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}


/* ==========================================================
   AUTH CARD
========================================================== */

.auth-card {
    width: 100%;
    max-width: 430px;
}


/* ==========================================================
   AUTH HEADER
========================================================== */

.auth-header {
    margin-bottom: 30px;
}

.auth-title {
    color: var(--navy);
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.auth-description {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}


/* ==========================================================
   FORM
========================================================== */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-label {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.auth-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: var(--white);
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .auth-input::placeholder {
        color: #9ca3af;
    }

    .auth-input:focus {
        border-color: var(--navy-light);
        box-shadow: 0 0 0 3px rgba(13, 55, 107, 0.08);
    }


/* ==========================================================
   PASSWORD
========================================================== */

.auth-password {
    position: relative;
}

    .auth-password .auth-input {
        padding-right: 48px;
    }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
}

    .password-toggle:hover {
        color: var(--navy);
    }


/* ==========================================================
   FORM OPTIONS
========================================================== */

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -4px;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
}

    .auth-checkbox input {
        width: 15px;
        height: 15px;
        accent-color: var(--navy);
    }

.auth-link {
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
}

    .auth-link:hover {
        color: var(--navy-light);
        text-decoration: underline;
    }


/* ==========================================================
   BUTTON
========================================================== */

.auth-button {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 9px;
    background: var(--navy);
    color: var(--white);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    .auth-button:hover {
        background: var(--navy-light);
        box-shadow: 0 6px 18px rgba(6, 37, 74, 0.18);
    }

    .auth-button:active {
        transform: translateY(1px);
    }


/* ==========================================================
   SECONDARY BUTTON
========================================================== */

.auth-button-secondary {
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--border);
}

    .auth-button-secondary:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
        box-shadow: none;
    }


/* ==========================================================
   VALIDATION
========================================================== */

.validation-summary {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
    font-size: 13px;
}

.field-validation-error {
    color: var(--danger);
    font-size: 12px;
}


/* ==========================================================
   SUCCESS MESSAGE
========================================================== */

.auth-success {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: var(--success);
    font-size: 13px;
}


/* ==========================================================
   AUTH FOOTER
========================================================== */

.auth-footer {
    margin-top: 28px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

    .auth-footer a {
        color: var(--navy);
        font-weight: 700;
    }

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


/* ==========================================================
   DIVIDER
========================================================== */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 11px;
}

    .auth-divider::before,
    .auth-divider::after {
        content: "";
        height: 1px;
        flex: 1;
        background: var(--border);
    }


/* ==========================================================
   BACK LINK
========================================================== */

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

    .auth-back:hover {
        color: var(--navy);
    }


/* ==========================================================
   FORGOT PASSWORD
========================================================== */

.forgot-password-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: var(--gold-pale);
    color: var(--navy);
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 800;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1000px) {

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

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

    .auth-brand-inner {
        min-height: auto;
        padding: 28px 30px;
    }

    .auth-brand-content {
        margin: 70px 0 50px;
    }

        .auth-brand-content h1 {
            font-size: 40px;
        }

    .auth-brand-footer {
        display: none;
    }

    .auth-content {
        min-height: calc(100vh - 330px);
        padding: 50px 30px;
    }
}


@media (max-width: 600px) {

    .auth-brand-inner {
        padding: 22px 20px;
    }

    .auth-brand-content {
        margin: 50px 0 20px;
    }

        .auth-brand-content h1 {
            font-size: 32px;
            letter-spacing: -1px;
        }

        .auth-brand-content p {
            font-size: 14px;
        }

    .auth-content {
        padding: 36px 20px;
    }

    .auth-title {
        font-size: 25px;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}
