/* Overlay (Dark Background) */
.auth-overlay {
    display: none; /* Hidden by default */
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px); /* Glass effect */
    z-index: 9999;
    align-items: center; justify-content: center;
}
.auth-overlay.open { display: flex; animation: fadeIn 0.2s; }

/* The Modal Box */
.auth-box {
    background: #fff; width: 800px; max-width: 95%;
    border-radius: 12px; overflow: hidden;
    display: flex; position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* Close Button */
.auth-close {
    position: absolute; top: 15px; right: 20px;
    background: none; border: none; font-size: 30px; cursor: pointer; color: #999; z-index: 10;
}

/* Left Side (Brand) */
.auth-brand {
    width: 40%; background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #fff; padding: 40px; display: flex; align-items: center;
}
.auth-brand h3 { font-size: 2rem; margin: 0 0 10px; }

/* Right Side (Forms) */
.auth-forms { width: 60%; padding: 40px; background: #fff; }

/* Tabs */
.auth-tabs { display: flex; gap: 20px; margin-bottom: 30px; border-bottom: 2px solid #f3f4f6; }
.auth-tab {
    background: none; border: none; padding: 10px 0;
    font-size: 1.1rem; font-weight: 600; color: #9ca3af; cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.auth-tab.active { color: #111; border-color: var(--bl-primary, #ff5b5b); }

/* Views */
.auth-view { display: none; }
.auth-view.active { display: block; animation: slideUp 0.3s; }

/* Social Login */
.social-login-wrap { text-align: center; margin-bottom: 20px; }
/* Divider */
.auth-divider { text-align: center; margin: 20px 0; position: relative; }
.auth-divider span { background: #fff; padding: 0 10px; color: #9ca3af; font-size: 12px; position: relative; z-index: 1; }
.auth-divider::before {
    content: ""; position: absolute; left: 0; top: 50%; width: 100%;
    height: 1px; background: #e5e7eb; z-index: 0;
}

/* Form Styles */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; color: #374151; }
.form-group input {
    width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 0.95rem; background: #f9fafb;
}
.form-group input:focus { border-color: var(--bl-primary, #ff5b5b); background: #fff; outline: none; }

.btn-auth-submit {
    width: 100%; padding: 12px; background: #111; color: #fff; border: none;
    border-radius: 6px; font-weight: 600; cursor: pointer; margin-top: 10px;
}
.btn-register { background: var(--bl-primary, #ff5b5b); }

.form-actions { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 20px; }
.forgot-link { color: #6b7280; text-decoration: none; }

/* Mobile */
@media(max-width: 600px) {
    .auth-brand { display: none; } /* Hide image on mobile */
    .auth-forms { width: 100%; padding: 25px; }
    .auth-box { height: 100%; border-radius: 0; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }