/* ── THEME TOKENS ── */
:root {
    --bg: #0d0d0f;
    --surface: #16161a;
    --surface2: #1e1e24;
    --border: #2a2a35;
    --accent: #c8ff00;
    --accent2: #ff5c5c;
    --text: #f0f0f0;
    --muted: #888;
    --card: #18181f;
    --ease: cubic-bezier(0.4,0,0.2,1);
}

/* ── BASE ── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 99px;
}

/* ── TYPOGRAPHY ── */
.font-outfit {
    font-family: 'Outfit', sans-serif;
}

.text-accent {
    color: var(--accent) !important;
}

.text-muted-custom {
    color: var(--muted) !important;
}

/* ── AUTH / SHARED CARD ── */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(circle at center, rgba(200,255,0,0.03) 0%, rgba(0, 0, 0, 0) 100%);
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 3.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
    animation: fadeInUp 0.6s var(--ease) both;
}

    .auth-card.wide {
        max-width: 720px;
    }

.auth-header {
    text-align: center;
    margin-bottom: 3rem;
}

    .auth-header h1 {
        font-family: 'Outfit', sans-serif;
        font-weight: 800;
        font-size: 2.25rem;
        letter-spacing: -0.03em;
        margin-bottom: 0.75rem;
        color: var(--text);
    }

    .auth-header p {
        color: var(--muted);
        font-size: 1rem;
        font-weight: 400;
    }

/* ── FORM ELEMENTS ── */
.form-group-custom {
    margin-bottom: 1.75rem;
}

.form-label-custom {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6rem;
    display: block;
    padding-left: 0.25rem;
}

.input-wrapper-custom {
    position: relative;
}

.input-affix-custom {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    transition: color 0.2s;
    font-size: 1.1rem;
}

.form-control-custom {
    background: var(--surface2) !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    padding: 0.85rem 1rem 0.85rem 3.2rem !important;
    color: var(--text) !important;
    font-size: 0.95rem !important;
    transition: all 0.25s var(--ease) !important;
    width: 100%;
}

    .form-control-custom:focus {
        border-color: var(--accent) !important;
        box-shadow: 0 0 0 4px rgba(200,255,0,0.12) !important;
        background: var(--surface2) !important;
        outline: none;
    }

        .form-control-custom:focus + .input-affix-custom {
            color: var(--accent);
        }

    .form-control-custom::placeholder {
        color: #555;
    }

/* ── BUTTONS ── */
.btn-primary-custom {
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 14px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    padding: 1rem;
    width: 100%;
    transition: all 0.25s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 1rem;
}

    .btn-primary-custom:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(200,255,0,0.35);
        background: var(--accent);
        color: #000;
    }

    .btn-primary-custom:active {
        transform: translateY(0);
    }

    .btn-primary-custom:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner-custom {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(0,0,0,0.15);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 0.8s linear infinite;
    display: none;
}

/* ── HELPERS ── */
.auth-footer-custom {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.92rem;
    color: var(--muted);
}

    .auth-footer-custom a {
        color: var(--accent);
        text-decoration: none;
        font-weight: 700;
        transition: opacity 0.2s;
    }

        .auth-footer-custom a:hover {
            opacity: 0.8;
        }

.form-grid-custom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.full-width-custom {
    grid-column: span 2;
}

@media (max-width: 640px) {
    .form-grid-custom {
        grid-template-columns: 1fr;
    }

    .full-width-custom {
        grid-column: span 1;
    }

    .auth-card {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }

    .auth-header h1 {
        font-size: 1.8rem;
    }
}

.validatefield {
    color: red;
}
