/* --- Reset & Layout --- */
.split-auth-page {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    font-family: 'Inter', sans-serif;
    background: #ffffff; /* Light theme base */
    color: #111827;
}

[data-theme="dark"] .split-auth-page {
    background: #0f1115;
    color: #ffffff;
}

/* --- Left Column: Branding --- */
.auth-left {
    flex: 0 0 45%;
    /* Main site gradient */
    background: linear-gradient(135deg, var(--primary, #5a32fa), var(--secondary, #00d2ff));
    color: #ffffff !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 4rem;
    position: relative;
    overflow: hidden;
}

/* Abstract Background Shapes */
.auth-bg-shapes {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.auth-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.circle-1 {
    width: 600px;
    height: 600px;
    right: -150px;
    top: -100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.circle-2 {
    width: 900px;
    height: 900px;
    right: -300px;
    top: -200px;
}

/* Sound Wave Animation */
.sound-wave-container {
    position: absolute;
    bottom: 5%;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.15;
    z-index: 0;
    transform: rotate(-10deg);
}

.wave-bar {
    width: 12px;
    border-radius: 20px;
    background: #ffffff;
    animation: pulse-wave 1s ease-in-out infinite alternate;
}

.wave-bar:nth-child(1) { height: 40px; animation-delay: 0.1s; }
.wave-bar:nth-child(2) { height: 80px; animation-delay: 0.3s; }
.wave-bar:nth-child(3) { height: 130px; animation-delay: 0.5s; }
.wave-bar:nth-child(4) { height: 90px; animation-delay: 0.2s; }
.wave-bar:nth-child(5) { height: 160px; animation-delay: 0.6s; }
.wave-bar:nth-child(6) { height: 110px; animation-delay: 0.4s; }
.wave-bar:nth-child(7) { height: 140px; animation-delay: 0.7s; }
.wave-bar:nth-child(8) { height: 70px; animation-delay: 0.3s; }
.wave-bar:nth-child(9) { height: 100px; animation-delay: 0.5s; }
.wave-bar:nth-child(10) { height: 50px; animation-delay: 0.2s; }

@keyframes pulse-wave {
    0% { transform: scaleY(0.4); opacity: 0.5; }
    100% { transform: scaleY(1.1); opacity: 1; }
}

.auth-left-top, .auth-left-content, .auth-left-bottom {
    position: relative;
    z-index: 1;
}

.auth-left-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Force white text for left column */
.auth-logo-white {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #ffffff !important;
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.auth-logo-white .logo-icon {
    background-image: url('assets/logos/Icon-Dark.png') !important;
    background-color: transparent !important;
}

.lang-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
}

.lang-toggle span {
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 9999px;
    transition: background 0.3s;
}

.lang-toggle span.active {
    background: #ffffff;
    color: var(--primary, #5a32fa);
}

.auth-left-content {
    margin-top: -4rem;
}

.badge-pill {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.4rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 2.5rem;
    color: #ffffff;
}

.auth-left-content h1 {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    line-height: 1.05;
    margin: 0 0 1.5rem 0;
    letter-spacing: -1.5px;
    color: #ffffff !important; /* Fix for dark mode override */
}

.auth-left-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 85%;
    font-weight: 400;
}

.auth-left-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0;
}

/* --- Right Column: Form --- */
.auth-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
}

.auth-right-container {
    width: 100%;
    max-width: 420px;
    margin: auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 3rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: #111827;
}

[data-theme="dark"] .back-link:hover {
    color: #ffffff;
}

.auth-tabs-pill {
    display: flex;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 0.25rem;
    margin-bottom: 3rem;
}

[data-theme="dark"] .auth-tabs-pill {
    background: #1f2937;
}

.auth-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.95rem;
    color: #6b7280;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s, transform 0.2s;
}

[data-theme="dark"] .auth-tab-btn {
    color: #9ca3af;
}

.auth-tab-btn.active {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

[data-theme="dark"] .auth-tab-btn.active {
    background: #374151;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Sections */
.auth-section {
    display: none;
    animation: fadeIn 0.3s ease forwards;
}

.auth-section.active {
    display: block;
}

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

.auth-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}

[data-theme="dark"] .auth-title {
    color: #ffffff;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

[data-theme="dark"] .auth-subtitle {
    color: #9ca3af;
}

/* Google Button */
.btn-google {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s, transform 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

[data-theme="dark"] .btn-google {
    background: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
}

[data-theme="dark"] .btn-google:hover {
    background: #374151;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

[data-theme="dark"] .divider::before,
[data-theme="dark"] .divider::after {
    border-bottom-color: #374151;
}

.divider span {
    padding: 0 1rem;
}

/* Form Groups */
.form-group-split {
    margin-bottom: 1.5rem;
}

.form-group-split label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: #374151;
}

[data-theme="dark"] .form-group-split label {
    color: #e5e7eb;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    color: #9ca3af;
    font-size: 1.1rem;
}

.input-with-icon input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #ffffff;
    color: #111827;
    transition: border-color 0.2s, box-shadow 0.2s;
}

[data-theme="dark"] .input-with-icon input {
    background: #111827;
    border-color: #374151;
    color: #ffffff;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary, #5a32fa);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05));
}

[data-theme="dark"] .input-with-icon input:focus {
    border-color: var(--primary, #7a5cff);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05));
}

.input-with-icon.right-icon .toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-with-icon.right-icon .toggle-password i {
    position: static;
    font-size: 1.1rem;
}

.forgot-pwd-row {
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
}

.forgot-pwd-row a {
    font-size: 0.85rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
}

.forgot-pwd-row a:hover {
    color: var(--primary, #5a32fa);
    text-decoration: underline;
}

[data-theme="dark"] .forgot-pwd-row a:hover {
    color: var(--primary, #7a5cff);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563EB 0%, #0EA5E9 50%, #00D4FF 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .auth-left {
        flex: 0 0 40%;
        padding: 2.5rem 2rem;
    }
    .auth-left-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .split-auth-page {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .auth-left {
        display: none;
    }
    
    .auth-right {
        padding: 2.5rem 2rem;
    }

    .auth-right-container {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .back-link {
        margin-bottom: 2rem;
    }
    
    .auth-tabs-pill {
        margin-bottom: 2rem;
    }
}
