/* =========================================================
   PREMIUM AUTHENTICATION PAGES
   LOGIN / REGISTER
   Old School Association
   ========================================================= */

:root {
    --auth-navy: #061426;
    --auth-navy-2: #0b1f3a;
    --auth-blue: #12345a;
    --auth-gold: #c9a227;
    --auth-gold-light: #e4c45a;
    --auth-bg: #f3f6f9;
    --auth-white: #ffffff;
    --auth-text: #172033;
    --auth-muted: #718096;
    --auth-border: #e1e7ee;
    --auth-danger: #b42318;
    --auth-success: #087443;
}


/* =========================================================
   AUTH PAGE
   ========================================================= */

.auth-page {
    position: relative;

    min-height: calc(100vh - 80px);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 70px 20px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(201,162,39,.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(18,52,90,.12),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #f8fafc,
            #eef2f6
        );
}


/* =========================================================
   DECORATIVE BACKGROUND
   ========================================================= */

.auth-page::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: -250px;
    right: -180px;

    border:
        1px solid
        rgba(201,162,39,.18);

    border-radius: 50%;
}


.auth-page::after {
    content: "";

    position: absolute;

    width: 380px;
    height: 380px;

    bottom: -220px;
    left: -180px;

    border:
        1px solid
        rgba(11,31,58,.08);

    border-radius: 50%;
}


/* =========================================================
   AUTH CONTAINER
   ========================================================= */

.auth-container {
    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 470px;

    margin: auto;
}


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

.auth-card {
    position: relative;

    overflow: hidden;

    background:
        rgba(255,255,255,.97);

    border:
        1px solid
        rgba(255,255,255,.8);

    border-radius: 24px;

    box-shadow:
        0 25px 70px
        rgba(6,20,38,.13);

    backdrop-filter: blur(15px);
}


/* Gold top line */

.auth-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            #9c7815,
            #e4c45a,
            #c9a227,
            #e4c45a,
            #9c7815
        );
}


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

.auth-header {
    padding: 42px 42px 25px;

    text-align: center;
}


/* Logo / emblem */

.auth-logo {
    width: 72px;
    height: 72px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            var(--auth-navy),
            var(--auth-blue)
        );

    border:
        3px solid
        rgba(201,162,39,.75);

    color: var(--auth-gold-light);

    font-size: 28px;

    font-weight: 900;

    box-shadow:
        0 10px 30px
        rgba(6,20,38,.18),
        inset 0 0 0 5px
        rgba(255,255,255,.04);
}


/* Kicker */

.auth-kicker {
    display: block;

    margin-bottom: 9px;

    color: #9c7815;

    font-size: 10px;

    font-weight: 850;

    letter-spacing: 2px;

    text-transform: uppercase;
}


/* Heading */

.auth-header h1 {
    margin: 0 0 10px;

    color: var(--auth-navy-2);

    font-size: 31px;

    line-height: 1.2;

    font-weight: 900;

    letter-spacing: -.5px;
}


/* Description */

.auth-header p {
    max-width: 360px;

    margin: 0 auto;

    color: var(--auth-muted);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   AUTH BODY
   ========================================================= */

.auth-body {
    padding: 10px 42px 42px;
}


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

.auth-form .form-group {
    margin-bottom: 20px;
}


.auth-form label {
    display: block;

    margin-bottom: 8px;

    color: #263449;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .3px;
}


/* =========================================================
   INPUT WRAPPER
   ========================================================= */

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


/* Input icon */

.auth-input-icon {
    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    width: 20px;

    color: #8b96a6;

    font-size: 15px;

    text-align: center;

    pointer-events: none;

    transition:
        color .25s ease;
}


/* =========================================================
   INPUTS
   ========================================================= */

.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;

    box-sizing: border-box;

    border:
        1px solid
        var(--auth-border);

    border-radius: 11px;

    background: #f9fafc;

    color: var(--auth-text);

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


.auth-form input,
.auth-form select {
    height: 52px;

    padding:
        0 15px;
}


.auth-form input.has-icon {
    padding-left: 46px;
}


.auth-form textarea {
    min-height: 120px;

    padding: 14px 15px;

    resize: vertical;
}


/* Placeholder */

.auth-form input::placeholder,
.auth-form textarea::placeholder {
    color: #a2acba;
}


/* Focus */

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    background: #ffffff;

    border-color:
        rgba(201,162,39,.85);

    box-shadow:
        0 0 0 4px
        rgba(201,162,39,.10);
}


.auth-input-wrap:focus-within
.auth-input-icon {
    color: #9c7815;
}


/* =========================================================
   TWO COLUMN REGISTER FIELDS
   ========================================================= */

.auth-form-row {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 15px;
}


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

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


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


.auth-password-toggle {
    position: absolute;

    right: 8px;
    top: 50%;

    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 8px;

    background: transparent;

    color: #7d8796;

    cursor: pointer;

    font-size: 15px;

    transition:
        background .2s ease,
        color .2s ease;
}


.auth-password-toggle:hover {
    background: #f0f2f5;

    color: var(--auth-navy);
}


/* =========================================================
   REMEMBER / FORGOT
   ========================================================= */

.auth-options {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin: -2px 0 22px;
}


.auth-checkbox {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #687587;

    font-size: 12px;

    cursor: pointer;
}


.auth-checkbox input {
    width: 16px !important;
    height: 16px !important;

    margin: 0;

    accent-color:
        var(--auth-gold);

    cursor: pointer;
}


.auth-forgot {
    color: #9c7815;

    font-size: 12px;

    font-weight: 750;

    text-decoration: none;
}


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

    text-decoration: underline;
}


/* =========================================================
   MAIN AUTH BUTTON
   ========================================================= */

.auth-submit {
    position: relative;

    width: 100%;

    min-height: 53px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 0 20px;

    border: 0;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #9c7815,
            #c9a227 45%,
            #e4c45a
        );

    color: #061426;

    font-family: inherit;

    font-size: 13px;

    font-weight: 850;

    letter-spacing: .3px;

    cursor: pointer;

    box-shadow:
        0 9px 22px
        rgba(201,162,39,.22);

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.auth-submit::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 80%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.35),
            transparent
        );

    transform: skewX(-20deg);

    transition:
        left .65s ease;
}


.auth-submit:hover::before {
    left: 140%;
}


.auth-submit:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 30px
        rgba(201,162,39,.32);
}


.auth-submit:active {
    transform: translateY(0);
}


/* =========================================================
   ALERTS
   ========================================================= */

.auth-alert {
    margin-bottom: 20px;

    padding: 13px 15px;

    border-radius: 10px;

    font-size: 13px;

    line-height: 1.6;
}


.auth-alert.error {
    border:
        1px solid
        rgba(180,35,24,.18);

    background:
        rgba(180,35,24,.06);

    color: var(--auth-danger);
}


.auth-alert.success {
    border:
        1px solid
        rgba(8,116,67,.18);

    background:
        rgba(8,116,67,.06);

    color: var(--auth-success);
}


.auth-alert ul {
    margin: 0;

    padding-left: 18px;
}


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

.auth-divider {
    display: flex;

    align-items: center;

    gap: 15px;

    margin: 25px 0;

    color: #a0a9b6;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}


.auth-divider::before,
.auth-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background:
        #e5e9ef;
}


/* =========================================================
   REGISTER / LOGIN SWITCH
   ========================================================= */

.auth-switch {
    padding-top: 23px;

    border-top:
        1px solid
        #edf0f4;

    text-align: center;

    color: #7a8595;

    font-size: 13px;

    line-height: 1.7;
}


.auth-switch a {
    color: #9c7815;

    font-weight: 850;

    text-decoration: none;
}


.auth-switch a:hover {
    color: var(--auth-navy);

    text-decoration: underline;
}


/* =========================================================
   SECURITY NOTE
   ========================================================= */

.auth-security {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    margin-top: 18px;

    color: #929baa;

    font-size: 10px;

    letter-spacing: .3px;
}


.auth-security-icon {
    color: #9c7815;

    font-size: 12px;
}


/* =========================================================
   REGISTER PAGE - LARGER CARD
   ========================================================= */

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


.auth-container.register-container {
    max-width: 650px;
}


.register-card .auth-header {
    padding-bottom: 20px;
}


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

.password-strength {
    margin-top: 9px;
}


.password-strength-bar {
    width: 100%;

    height: 4px;

    overflow: hidden;

    border-radius: 10px;

    background: #e8ebef;
}


.password-strength-fill {
    width: 0;

    height: 100%;

    border-radius: 10px;

    background: #b42318;

    transition:
        width .3s ease,
        background .3s ease;
}


.password-strength-text {
    display: block;

    margin-top: 5px;

    color: #8993a2;

    font-size: 10px;
}


/* =========================================================
   TERMS
   ========================================================= */

.auth-terms {
    margin: 20px 0;

    color: #7a8595;

    font-size: 11px;

    line-height: 1.7;
}


.auth-terms a {
    color: #9c7815;

    font-weight: 700;

    text-decoration: none;
}


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


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

.auth-footer {
    margin-top: 20px;

    text-align: center;

    color: #8b95a4;

    font-size: 11px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .auth-page {
        min-height: calc(100vh - 60px);

        padding:
            35px 15px;
    }


    .auth-card {
        border-radius: 19px;
    }


    .auth-header {
        padding:
            32px 24px 20px;
    }


    .auth-body {
        padding:
            8px 24px 30px;
    }


    .auth-logo {
        width: 64px;
        height: 64px;

        margin-bottom: 16px;
    }


    .auth-header h1 {
        font-size: 27px;
    }


    .auth-header p {
        font-size: 13px;
    }


    .auth-form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }


    .auth-options {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }


    .auth-submit {
        min-height: 51px;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .auth-page {
        padding:
            25px 10px;
    }


    .auth-header {
        padding:
            28px 19px 18px;
    }


    .auth-body {
        padding:
            5px 19px 27px;
    }


    .auth-header h1 {
        font-size: 25px;
    }


    .auth-form input,
    .auth-form select {
        height: 49px;
    }

}


/* =========================================================
   DARK MODE SAFE OVERRIDE
   ========================================================= */

@media (prefers-color-scheme: dark) {

    /*
       Deliberately keep authentication pages light.
       This maintains readability and brand consistency.
    */

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.auth-submit:focus-visible,
.auth-password-toggle:focus-visible,
.auth-forgot:focus-visible,
.auth-switch a:focus-visible {
    outline:
        3px solid
        rgba(201,162,39,.35);

    outline-offset: 3px;
}