/* Modern Clean Auth Design - Reverse Layout (Promo Left, Form Right) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0050d2;
    --primary-hover: #003c9e;
    --text-main: #12284c;
    --text-muted: #59677a;
    --border-color: #cbd5e1;
    --input-bg: #fff;
    --radius-md: 8px;
    --font-family: 'Outfit', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    /* Very light cool gray */
    height: 100vh;
    width: 100vw;
    font-family: var(--font-family);
    color: var(--text-main);
    overflow: hidden;
}

/* Hide legacy elements */
.navbar-area,
.footer-area {
    display: none !important;
}

.auth-container {
    display: flex;
    flex-direction: row-reverse;
    /* SWAP: Promo Left, Form Right */
    width: 100%;
    height: 100vh;
}

/* --- Left Side (Now Right): Form Section --- */
.auth-left {
    flex: 1;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: #fdfdfd;
    /* Light background for the panel */
    position: relative;
    z-index: 2;
    overflow-y: auto;
}

/* The "Card" around the form */
.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    /* Soft premium shadow */
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.auth-logo {
    margin-bottom: 2rem;
    display: block;
    text-align: center;
}

/* Ensure logo is VISIBLE on desktop form again */
.auth-logo img {
    height: 50px;
    display: inline-block;
}

/* Header Text */
.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 1.5rem 0;
    /* More margin since subtitle is gone */
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: #f8fafc;
    /* Slight contrast input bg */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-control:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 80, 210, 0.1);
}

/* Autofill Fix */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #f8fafc inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
}

.form-control:focus:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
}

.btn-primary-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 80, 210, 0.2);
    gap: 0.5rem;
    /* Adds space between text and icon automatically */
}

.btn-primary-auth:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 80, 210, 0.3);
}

.forgot-password {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
}

.forgot-password:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* --- New "Create Account" Section outside card --- */
.auth-create-section {
    margin-top: 3rem;
    text-align: center;
    max-width: 420px;
    /* Match card width */
    width: 100%;
}

.create-question {
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
    font-size: 1.05rem;
}

.create-subtitle {
    color: var(--text-muted);
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
}

.btn-create-outline {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.95rem;
    border-radius: 6px;
    background: transparent;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.btn-create-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 80, 210, 0.2);
}

/* --- Right Side (Now Left): Promo Section --- */
.auth-right {
    flex: 1;
    max-width: 50%;
    position: relative;
    background-color: #12284c;
    /* Deep Dark Blue Base */
    background: radial-gradient(circle at 80% 20%, #1e3a8a 0%, #172554 100%);
    /* Deep luxurious blue */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: left;
    /* Align text left for better readability of long text */
    padding: 4rem;
}

/* Subtle pattern */
.auth-right::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 30px 30px;
}

.promo-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    /* Slightly wider for text */
}

/* Promo Text Styling */
.promo-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
    color: #fff;
}

.promo-text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    /* Good contrast */
    font-weight: 300;
}

/* Responsive */
@media (max-width: 900px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-left,
    .auth-right {
        max-width: 100%;
        flex: auto;
    }

    .auth-right {
        display: none;
        /* Hide art on mobile */
    }

    .auth-left {
        padding: 2rem 1.5rem;
        width: 100%;
    }

    .auth-form-wrapper {
        padding: 2rem;
        box-shadow: none;
        border: none;
        background: transparent;
    }
}