/* Modern Auth Pages Design */
:root {
    --bg-dark: #121212;
    --card-bg: #1e1e1e;
    --primary: #707feb;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --input-bg: #2a2a2a;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Inter', sans-serif;
    /* Assuming Inter or system font */
    margin: 0;
    padding: 0;
    color: var(--text-main);
}

.auth-container {
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

/* Left Side - Hero/Banner */
.auth-hero {
    flex: 1;
    background: linear-gradient(135deg, #1f1f1f 0%, #121212 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(112, 127, 235, 0.1) 0%, transparent 70%);
    top: -25%;
    left: -25%;
    z-index: 0;
}

.auth-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.auth-hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Fix Autofill Background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #2a2a2a inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Right Side - Form */
.auth-form-wrapper {
    flex: 0 0 500px;
    background-color: var(--card-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 20;
    min-height: 100vh;
    /* Ensure full height for vertical centering */
}

/* Ensure contents are centered if needed */
.auth-form-content {
    width: 100%;
    margin: auto;
    /* Vertical centering helper */
}

.auth-header {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Robust centering */
    text-align: center;
}

.auth-header img {
    margin-bottom: 1.5rem;
    display: block;
    max-width: 100%;
}

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

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Elements */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.auth-input {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid #666;
    /* Visible Gray Border */
    border-radius: 9999px;
    padding: 1rem 1.5rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    height: 3.5rem;
}

.auth-input:focus {
    border-color: var(--primary);
    background-color: #333;
    box-shadow: 0 0 0 4px rgba(112, 127, 235, 0.2);
}

.auth-label {
    position: absolute;
    left: 1.5rem;
    top: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.2s ease;
    font-size: 1rem;
    padding: 0 0.2rem;
}

/* Floating Label Logic - Clean floating above border */
.auth-input:focus+.auth-label,
.auth-input:not(:placeholder-shown)+.auth-label {
    transform: translateY(-28px) scale(0.85);
    /* Proper lift */
    color: var(--primary);
    background-color: var(--card-bg);
    /* Match background to mask line if needed, or transparent if high enough */
    padding: 0 0.4rem;
    top: 0.6rem;
    z-index: 5;
    pointer-events: none;
}

/* Toggle Password Icon */
.toggle-password {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    z-index: 10;
}

.toggle-password:hover {
    color: var(--text-main);
}

.btn-auth {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, #707feb, #5a67d8) !important;
    /* Force Visible */
    color: white !important;
    font-weight: 700;
    padding: 1rem;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    /* Visible Border */
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    margin-top: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(112, 127, 235, 0.4);
    border-color: #fff;
}

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

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #333;
}

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

.btn-outline {
    width: 100%;
    background: transparent;
    border: 1px solid #444;
    color: var(--text-muted);
    padding: 0.8rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    background-color: #2a2a2a;
}

/* Lock Icon Animation */
.lock-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(112, 127, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    /* Center horizontally */
}

.lock-icon-wrapper svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        overflow-y: auto;
    }

    .auth-hero {
        display: none;
        /* Hide hero on mobile to focus on login */
    }

    .auth-form-wrapper {
        flex: 1;
        width: 100%;
        padding: 2rem;
        box-shadow: none;
    }
}