/* =================================
   VANTREX GLOBAL
   LOGIN + REGISTER
================================= */


/* =================================
   ROOT
================================= */

:root {

    --black: #030711;
    --dark: #050914;
    --dark-two: #08101d;

    --card: #0b1422;
    --card-light: #101b2b;

    --gold: #d7a93d;
    --gold-light: #f0c866;

    --white: #ffffff;

    --text: #e9edf3;
    --muted: #9ba6b5;

    --border: rgba(255, 255, 255, 0.10);

    --danger: #ef4444;
    --success: #22c55e;

}


/* =================================
   RESET
================================= */

* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    min-height: 100vh;

    font-family: "Inter", sans-serif;

    background: var(--black);

    color: var(--text);

}


button,
input {

    font: inherit;

}


button {

    cursor: pointer;

}


a {

    color: inherit;

    text-decoration: none;

}


/* =================================
   AUTH PAGE
================================= */

.auth-page {

    min-height: 100vh;

    display: grid;

    grid-template-columns: 1fr 1fr;

}


/* =================================
   LEFT VISUAL
================================= */

.auth-visual {

    position: relative;

    min-height: 100vh;

    padding: 40px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(215, 169, 61, 0.14),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(22, 60, 100, 0.35),
            transparent 40%
        ),
        var(--dark);

}


.auth-visual::before {

    content: "";

    position: absolute;

    width: 500px;

    height: 500px;

    border: 1px solid
        rgba(215, 169, 61, 0.12);

    border-radius: 50%;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

}


.auth-visual::after {

    content: "";

    position: absolute;

    width: 330px;

    height: 330px;

    border: 1px solid
        rgba(215, 169, 61, 0.10);

    border-radius: 50%;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

}


/* =================================
   BRAND
================================= */

.brand {

    position: relative;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    gap: 12px;

    width: fit-content;

}


.logo-mark {

    width: 40px;

    height: 40px;

    display: grid;

    place-items: center;

    border: 1px solid var(--gold);

    border-radius: 50%;

    color: var(--gold);

    font-size: 22px;

    font-weight: 900;

    flex-shrink: 0;

}


.brand-name {

    color: var(--white);

    font-size: 18px;

    font-weight: 800;

    letter-spacing: -0.4px;

}


/* =================================
   VISUAL CONTENT
================================= */

.visual-content {

    position: relative;

    z-index: 2;

    max-width: 520px;

}


.eyebrow {

    display: inline-block;

    margin-bottom: 16px;

    color: var(--gold);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

}


.visual-content h1 {

    margin-bottom: 22px;

    color: var(--white);

    font-size: clamp(50px, 5vw, 82px);

    line-height: 0.98;

    letter-spacing: -4px;

}


.visual-content p {

    max-width: 470px;

    color: var(--muted);

    font-size: 16px;

    line-height: 1.8;

}


/* =================================
   VISUAL BOTTOM
================================= */

.visual-bottom {

    position: relative;

    z-index: 2;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    color: var(--muted);

    font-size: 12px;

}


/* =================================
   FORM SECTION
================================= */

.auth-form-section {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 50px 30px;

    background: var(--dark-two);

    overflow-y: auto;

}


.auth-card {

    width: 100%;

    max-width: 470px;

}


.register-card {

    max-width: 500px;

}


/* =================================
   MOBILE BRAND
================================= */

.mobile-brand {

    display: none;

    margin-bottom: 45px;

}


/* =================================
   FORM HEADING
================================= */

.form-heading {

    margin-bottom: 30px;

}


.form-heading h2 {

    margin-bottom: 10px;

    color: var(--white);

    font-size: 38px;

    letter-spacing: -1.5px;

}


.form-heading p {

    color: var(--muted);

    font-size: 14px;

    line-height: 1.7;

}


/* =================================
   MESSAGE
================================= */

.auth-message {

    display: none;

    margin-bottom: 20px;

    padding: 13px 15px;

    border-radius: 8px;

    font-size: 13px;

    line-height: 1.5;

}


.auth-message.show {

    display: block;

}


.auth-message.error {

    color: #fecaca;

    background: rgba(239, 68, 68, 0.10);

    border: 1px solid
        rgba(239, 68, 68, 0.25);

}


.auth-message.success {

    color: #bbf7d0;

    background: rgba(34, 197, 94, 0.10);

    border: 1px solid
        rgba(34, 197, 94, 0.25);

}


/* =================================
   FORM
================================= */

.auth-form {

    display: flex;

    flex-direction: column;

    gap: 20px;

}


.form-group {

    display: flex;

    flex-direction: column;

    gap: 9px;

}


.form-group label {

    color: var(--text);

    font-size: 13px;

    font-weight: 600;

}


.optional {

    margin-left: 5px;

    color: var(--muted);

    font-size: 11px;

    font-weight: 400;

}


/* =================================
   LABEL ROW
================================= */

.label-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

}


.forgot-password {

    color: var(--gold);

    font-size: 12px;

}


.forgot-password:hover {

    color: var(--gold-light);

}


/* =================================
   INPUT
================================= */

.form-group input {

    width: 100%;

    height: 52px;

    padding: 0 15px;

    border: 1px solid var(--border);

    border-radius: 8px;

    outline: none;

    background: var(--card);

    color: var(--white);

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}


.form-group input::placeholder {

    color: #687487;

}


.form-group input:focus {

    border-color: var(--gold);

    box-shadow:
        0 0 0 3px
        rgba(215, 169, 61, 0.08);

}


/* =================================
   PASSWORD
================================= */

.password-wrapper {

    position: relative;

}


.password-wrapper input {

    padding-right: 70px;

}


.password-toggle {

    position: absolute;

    top: 50%;

    right: 13px;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    color: var(--gold);

    font-size: 12px;

    font-weight: 700;

}


.password-toggle:hover {

    color: var(--gold-light);

}


/* =================================
   CHECKBOX
================================= */

.checkbox-label {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.6;

    cursor: pointer;

}


.checkbox-label input {

    width: 16px;

    height: 16px;

    margin-top: 2px;

    flex-shrink: 0;

    accent-color: var(--gold);

}


.terms-checkbox a {

    color: var(--gold);

}


.terms-checkbox a:hover {

    color: var(--gold-light);

}


/* =================================
   AUTH BUTTON
================================= */

.auth-button {

    width: 100%;

    min-height: 52px;

    margin-top: 5px;

    border: none;

    border-radius: 8px;

    background: var(--gold);

    color: #080b10;

    font-size: 14px;

    font-weight: 800;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;

}


.auth-button:hover {

    background: var(--gold-light);

    transform: translateY(-1px);

}


.auth-button:disabled {

    cursor: not-allowed;

    opacity: 0.65;

    transform: none;

}


/* =================================
   DIVIDER
================================= */

.auth-divider {

    display: flex;

    align-items: center;

    gap: 15px;

    margin: 28px 0;

    color: #5e6a7c;

    font-size: 10px;

    font-weight: 700;

}


.auth-divider::before,
.auth-divider::after {

    content: "";

    flex: 1;

    height: 1px;

    background: var(--border);

}


/* =================================
   SWITCH AUTH
================================= */

.switch-auth {

    color: var(--muted);

    text-align: center;

    font-size: 13px;

}


.switch-auth a {

    color: var(--gold);

    font-weight: 700;

}


.switch-auth a:hover {

    color: var(--gold-light);

}


/* =================================
   BACK HOME
================================= */

.back-home {

    display: block;

    width: fit-content;

    margin: 25px auto 0;

    color: #687487;

    font-size: 12px;

    transition: color 0.2s ease;

}


.back-home:hover {

    color: var(--white);

}


/* =================================
   RESPONSIVE
================================= */

@media (max-width: 900px) {

    .auth-page {

        grid-template-columns: 1fr;

    }


    .auth-visual {

        display: none;

    }


    .auth-form-section {

        min-height: 100vh;

        padding: 35px 22px;

    }


    .mobile-brand {

        display: block;

    }

}


@media (max-width: 500px) {

    .auth-form-section {

        padding: 25px 18px;

        align-items: flex-start;

    }


    .auth-card {

        padding-top: 15px;

    }


    .mobile-brand {

        margin-bottom: 35px;

    }


    .form-heading h2 {

        font-size: 32px;

    }


    .form-heading {

        margin-bottom: 25px;

    }


    .auth-form {

        gap: 17px;

    }


    .visual-bottom {

        flex-direction: column;

    }

}


/* =================================
   REDUCED MOTION
================================= */

@media (prefers-reduced-motion: reduce) {

    html {

        scroll-behavior: auto;

    }


    * {

        transition: none !important;

    }

}