/* --- Auth Layout Premium --- */
:root {
    --auth-bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --auth-accent: #10b981;
    --auth-accent-hover: #059669;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
}

/* Base Override for Auth Page */
body {
    background-color: #ffffff;
    /* Clean white bg for right side */
}

/* Split Layout Container */
.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Left Side - Visual / Branding */
.auth-visual {
    flex: 1;
    background: var(--auth-bg-gradient);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    color: white;
    overflow: hidden;
}

/* Abstract Shapes */
.auth-visual::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.auth-visual::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.auth-brand-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.auth-brand-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-brand-content p {
    font-size: 1.25rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #e2e8f0;
    backdrop-filter: blur(10px);
}

.feature-pill i {
    color: var(--auth-accent);
    margin-right: 0.5rem;
}

/* Right Side - Form */
.auth-form-side {
    flex: 0 0 500px;
    /* Fixed width for form side on desktop */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    background: #ffffff;
    position: relative;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.02);
    z-index: 20;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.auth-header {
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-main);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
}

/* Custom Premium Inputs */
.input-group-premium {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-premium {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    /* Space for icon */
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.input-premium:focus {
    background: #fff;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    outline: none;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.input-premium:focus+.input-icon {
    color: var(--auth-accent);
}

.input-floating-label {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
    padding: 0 0.25rem;
}

/* Float label when focused or has value */
.input-premium:focus~.input-floating-label,
.input-premium:not(:placeholder-shown)~.input-floating-label {
    top: 0;
    left: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--auth-accent);
    background: white;
    /* Requires white background for the label cutout effect */
}

/* Button Premium */
.btn-primary-premium {
    width: 100%;
    padding: 1rem;
    background: var(--primary-main);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
}

.btn-primary-premium:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
}

.btn-link-premium {
    color: var(--auth-accent);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-link-premium:hover {
    color: var(--auth-accent-hover);
    text-decoration: underline;
}

.divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 2rem 0;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider-text span {
    padding: 0 1rem;
}

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

    .auth-visual {
        flex: 0 0 40vh;
        /* Shorter header on mobile */
        padding: 2rem;
        align-items: flex-start;
        justify-content: flex-end;
    }

    .auth-brand-content h1 {
        font-size: 2.5rem;
    }

    .auth-brand-content p {
        display: none;
        /* Hide paragraph on mobile for space */
    }

    .feature-pill {
        display: none;
    }

    .auth-form-side {
        flex: 1;
        width: 100%;
        border-radius: 1.5rem 1.5rem 0 0;
        margin-top: -2rem;
        /* Overlap effect */
        padding: 2.5rem 1.5rem;
    }

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