:root {
    --auth-background: #0F1115;
    --auth-card: #181B20;
    --auth-card-border: rgba(255, 255, 255, 0.07);
    --auth-card-shadow: rgba(0, 0, 0, 0.28);

    --auth-text: #F5F5F5;
    --auth-muted: #9CA3AF;
    --auth-label: #D1D5DB;
    --auth-help: #686F79;

    --auth-gold: #D4AF37;
    --auth-gold-hover: #E2BD43;

    --auth-field-bg: #111419;
    --auth-field-focus-bg: #13171C;
    --auth-field-border: rgba(255, 255, 255, 0.09);
    --auth-placeholder: #646B76;

    --auth-divider: rgba(255, 255, 255, 0.07);
    --auth-divider-text: #666D77;

    --auth-footer-text: #555C66;

    --auth-error-bg: rgba(239, 68, 68, 0.08);
    --auth-error-border: rgba(239, 68, 68, 0.24);
    --auth-error-text: #FCA5A5;
    --auth-error-icon-bg: rgba(239, 68, 68, 0.15);
    --auth-error-icon: #EF4444;

    --auth-button-text: #0F1115;
}


/* =========================
   LIGHT THEME
========================= */

html[data-theme="light"] {
    --auth-background: #FAFAFA;
    --auth-card: #FFFFFF;
    --auth-card-border: #E0E3E7;
    --auth-card-shadow: rgba(0, 0, 0, 0.10);

    --auth-text: #181A1F;
    --auth-muted: #6D737C;
    --auth-label: #4F555D;
    --auth-help: #7D848E;

    --auth-gold: #D4AF37;
    --auth-gold-hover: #E2BD43;

    --auth-field-bg: #F7F8F9;
    --auth-field-focus-bg: #FFFFFF;
    --auth-field-border: #DDE0E4;
    --auth-placeholder: #9AA0A8;

    --auth-divider: #E0E3E7;
    --auth-divider-text: #8A9099;

    --auth-footer-text: #8A9099;

    --auth-error-bg: rgba(239, 68, 68, 0.07);
    --auth-error-border: rgba(239, 68, 68, 0.24);
    --auth-error-text: #B91C1C;
    --auth-error-icon-bg: rgba(239, 68, 68, 0.12);
    --auth-error-icon: #EF4444;

    --auth-button-text: #0F1115;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #d4af37 transparent;
}

/* Chrome, Edge, Safari */
html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        #f2c94c 0%,
        #d4af37 50%,
        #b88914 100%
    );
}

html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        #f6d96a 0%,
        #d4af37 50%,
        #a97d10 100%
    );
}

::selection {
    background: #FAF5E7;
    color: #111317;
}

::-moz-selection {
    background: #FAF5E7;
    color: #111317;
}

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

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(212, 175, 55, 0.08),
            transparent 35%
        ),
        var(--auth-background);

    color: var(--auth-text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


/* PAGE */

.auth-page {
    min-height: 100vh;

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

    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}


/* LOGO */

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-bottom: 28px;

    color: var(--auth-text);
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;

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

    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 10px;

    background: rgba(212, 175, 55, 0.08);

    color: var(--auth-gold);

    font-size: 19px;
    font-weight: 700;
}

.logo-text {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.4px;
}

.logo-text strong {
    color: var(--auth-gold);
}


/* CARD */

.auth-card {
    padding: 34px;

    background: var(--auth-card);

    border: 1px solid var(--auth-card-border);
    border-radius: 16px;

    box-shadow:
        0 20px 60px var(--auth-card-shadow);
}


/* HEADER */

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

.eyebrow {
    display: block;

    margin-bottom: 9px;

    color: var(--auth-gold);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

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

    color: var(--auth-text);

    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -0.7px;
}

.auth-header p {
    color: var(--auth-muted);

    font-size: 14px;
    line-height: 1.65;
}


/* ERROR */

.auth-error {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 20px;
    padding: 12px 14px;

    background: var(--auth-error-bg);

    border: 1px solid var(--auth-error-border);
    border-radius: 9px;

    color: var(--auth-error-text);

    font-size: 13px;
}

.auth-error span {
    width: 20px;
    height: 20px;

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

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--auth-error-icon-bg);

    color: var(--auth-error-icon);

    font-size: 12px;
    font-weight: 800;
}


/* FORM */

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

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

.form-group label {
    color: var(--auth-label);

    font-size: 13px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    background: var(--auth-field-bg);

    border: 1px solid var(--auth-field-border);
    border-radius: 9px;

    outline: none;

    color: var(--auth-text);

    font-size: 14px;

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

.form-group input::placeholder {
    color: var(--auth-placeholder);
}

.form-group input:focus {
    background: var(--auth-field-focus-bg);

    border-color: rgba(212, 175, 55, 0.65);

    box-shadow:
        0 0 0 3px rgba(212, 175, 55, 0.08);
}

.field-help {
    color: var(--auth-help);

    font-size: 11px;
    line-height: 1.4;
}


/* BUTTON */

.auth-button {
    width: 100%;
    height: 49px;

    margin-top: 4px;

    border: none;
    border-radius: 9px;

    background: var(--auth-gold);

    color: var(--auth-button-text);

    cursor: pointer;

    font-size: 14px;
    font-weight: 750;

    transition:
        transform 0.15s ease,
        background 0.2s ease;
}

.auth-button:hover {
    background: var(--auth-gold-hover);
}

.auth-button:active {
    transform: scale(0.99);
}


/* DIVIDER */

.auth-divider {
    position: relative;

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

    margin: 27px 0 22px;
}

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

    position: absolute;

    left: 0;
    right: 0;

    height: 1px;

    background: var(--auth-divider);
}

.auth-divider span {
    position: relative;

    padding: 0 12px;

    background: var(--auth-card);

    color: var(--auth-divider-text);

    font-size: 11px;
}


/* LOGIN */

.auth-login {
    text-align: center;

    color: var(--auth-muted);

    font-size: 13px;
}

.auth-login a {
    margin-left: 4px;

    color: var(--auth-gold);

    font-weight: 650;
    text-decoration: none;
}

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


/* FOOTER */

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

    text-align: center;
}

.auth-footer a {
    color: var(--auth-muted);

    font-size: 12px;
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--auth-gold);
}

.auth-footer p {
    margin-top: 10px;

    color: var(--auth-footer-text);

    font-size: 10px;
}


/* MOBILE */

@media (max-width: 520px) {

    .auth-page {
        padding: 24px 15px;
    }

    .auth-card {
        padding: 27px 21px;
        border-radius: 13px;
    }

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