
/* =================================
   1. AUTH PAGE LAYOUT
================================= */

.auth-page {
    min-height: 100vh;
    background: #080b14;
}

.auth-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* =================================
   2. LEFT BRANDING PANEL
================================= */

.auth-branding {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 45px 9%;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 20% 40%,
            rgba(139, 92, 246, 0.22),
            transparent 45%
        ),
        linear-gradient(145deg, #11152a, #0b1020);

    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.branding-content {
    max-width: 500px;
    margin: auto 0;
}

.branding-content h1 {
    margin-top: 20px;
    font-size: clamp(38px, 5vw, 57px);
    line-height: 1.15;
    letter-spacing: -2px;
    font-weight: 800;
}

.branding-content h1 span {
    display: block;
    color: #a78bfa;
}

.branding-content > p {
    max-width: 430px;
    margin-top: 22px;
    color: #a1a1aa;
    font-size: 15px;
    line-height: 1.9;
}

.branding-points {
    display: flex;
    flex-direction: column;
    gap: 17px;
    margin-top: 35px;
    color: #d1d5db;
    font-size: 13px;
}

.branding-points div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.branding-points div::first-letter {
    color: #a78bfa;
}

.branding-footer {
    color: #71717a;
    font-size: 12px;
}

/* =================================
   3. RIGHT FORM PANEL
================================= */

.auth-form-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 9%;
    background: #080b14;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
}

.back-link {
    display: inline-block;
    margin-bottom: 55px;
    color: #9ca3af;
    font-size: 13px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: white;
}

.auth-heading {
    margin-bottom: 35px;
}

.auth-heading h2 {
    font-size: 31px;
    font-weight: 700;
    letter-spacing: -1px;
}

.auth-heading p {
    margin-top: 9px;
    color: #9ca3af;
    font-size: 14px;
}

/* =================================
   4. FORM FIELDS
================================= */

#loginForm {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

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

.form-group label {
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    height: 49px;
    padding: 0 15px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;

    background: #111827;
    color: white;

    font-family: inherit;
    font-size: 13px;

    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: #6b7280;
}

.form-group input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.password-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =================================
   5. SUBMIT BUTTON
================================= */

.auth-submit {
    width: 100%;
    height: 49px;
    margin-top: 7px;
    border: none;
    font-family: inherit;
    font-size: 14px;
}

/* =================================
   6. FORM MESSAGES
================================= */

.form-message {
    min-height: 18px;
    font-size: 12px;
    text-align: center;
    color: #fca5a5;
}

/* =================================
   7. SIGNUP / LOGIN SWITCH
================================= */

.auth-switch {
    margin-top: 28px;
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}

.auth-switch a {
    color: #a78bfa;
    font-weight: 600;
    margin-left: 4px;
}

.auth-switch a:hover {
    color: #c4b5fd;
}

/* =================================
   8. RESPONSIVE DESIGN
================================= */

@media (max-width: 850px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-branding {
        display: none;
    }

    .auth-form-section {
        min-height: 100vh;
        padding: 45px 7%;
    }

    .back-link {
        margin-bottom: 45px;
    }
}

@media (max-width: 480px) {
    .auth-form-section {
        padding: 30px 6%;
    }

    .auth-heading h2 {
        font-size: 27px;
    }
}

/* =========================================
   LIGHT THEME OVERRIDES FOR AUTH (PURE WHITE BACKGROUND)
========================================= */

[data-theme="light"] .auth-page {
    background: #ffffff !important;
}

[data-theme="light"] .auth-branding {
    background: radial-gradient(circle at 20% 40%, rgba(124, 58, 237, 0.08), transparent 45%), #f8fafc !important;
    border-right: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .auth-branding h1 {
    color: #0f172a !important;
}

[data-theme="light"] .auth-branding h1 span {
    color: #7c3aed !important;
}

[data-theme="light"] .auth-branding p {
    color: #64748b !important;
}

[data-theme="light"] .branding-points div {
    color: #334155 !important;
}

[data-theme="light"] .branding-footer {
    color: #94a3b8 !important;
}

[data-theme="light"] .auth-form-section {
    background: #ffffff !important;
}

[data-theme="light"] .back-link {
    color: #64748b !important;
}

[data-theme="light"] .back-link:hover {
    color: #7c3aed !important;
}

[data-theme="light"] .auth-heading h2 {
    color: #0f172a !important;
}

[data-theme="light"] .auth-heading p {
    color: #64748b !important;
}

[data-theme="light"] .form-group label {
    color: #334155 !important;
}

[data-theme="light"] .form-group input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .form-group input:focus {
    border-color: #7c3aed !important;
    background: #ffffff !important;
}

[data-theme="light"] .auth-switch {
    color: #64748b !important;
}

[data-theme="light"] .auth-switch a {
    color: #7c3aed !important;
}

.auth-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 24px;
}

.auth-top-bar .back-link {
    margin-bottom: 0;
}
