/* EXCELDEPO MODERN AUTH CSS - CLEAN & STABLE VERSION */
:root {
    --primary: #2B542C;
    --primary-dark: #1e3b1f;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --text: #1a1a1a;
    --text-light: #4a4a4a;
    --bg: #ffffff;
    --bg-secondary: #f8fafc;
    --card-bg: #ffffff;
}

[data-theme="dark"],
html.dark {
    --primary: #484E5E;
    --primary-dark: #3a3f4c;
    --dark: #e4e4e7;
    --light: #09090b;
    --border: #27272a;
    --text: #ffffff;
    --text-light: #a1a1aa;
    --bg: #000000;
    --bg-secondary: #0a0a0a;
    --card-bg: #0a0a0a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme-transition] * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease !important;
}

/* ==================== AUTH LAYOUT ==================== */
.auth-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.auth-left {
    background: linear-gradient(135deg, #2B542C 0%, #1e3b1f 100%);
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: background 0.3s ease;
}

html.dark .auth-left {
    background: #1a1a1a !important;
    /* Specific Darker Gray for Dark Mode Left Panel */
}

.auth-right {
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-left: 1px solid transparent;
    /* Placeholder to prevent shift */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

html.dark .auth-right {
    border-left-color: #333 !important;
}

/* ==================== HEADER ACTIONS ==================== */
.auth-left-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.auth-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Mobile Header Wrapper */
.auth-mobile-header {
    display: none;
    padding: 1rem 1.5rem;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.auth-mobile-header .btn-icon,
.auth-mobile-header .lang-switch {
    border-color: var(--border);
    background: var(--bg-secondary);
    color: var(--text);
}

.auth-mobile-header .auth-back-link {
    color: var(--text);
}

/* Buttons and Selectors */
.btn-icon,
.lang-switch {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, transform 0.1s;
}

.btn-icon:hover,
.lang-switch:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-flag {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.auth-back-link:hover {
    color: white;
}

/* ==================== LEFT CONTENT ==================== */
.auth-left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.auth-left-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.auth-left-content p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.auth-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.auth-benefit i {
    color: white !important;
    font-size: 1.1rem;
}

/* ==================== FORM STYLES ==================== */
.auth-form {
    width: 100%;
    max-width: 420px;
}

.auth-form h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-form>p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.input-icon-wrapper {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 52px;
}

.input-icon-wrapper:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(16, 124, 65, 0.1);
}

.input-icon-wrapper .input-icon {
    width: 52px;
    min-width: 52px;
    background: var(--bg-secondary);
    color: var(--text-light);
    font-size: 1.1rem;
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.form-control {
    flex: 1;
    height: 100%;
    padding: 0 1.25rem;
    border: none;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: color 0.3s;
}

.form-control:focus {
    outline: none;
}

/* Meta & Links */
.form-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.form-checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 700;
}

html.dark .form-checkbox-label a {
    color: var(--primary);
}

.forgot-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--primary);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    height: 52px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 0.2s, opacity 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-primary:active {
    transform: scale(0.99);
}

/* Footer & Bottom Links */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

/* ==================== SPECIAL PAGES STUFF ==================== */

/* Verification Icon */
.verify-mail-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.verify-mail-icon-wrapper i {
    font-size: 2rem;
    color: white;
}

.verify-email-box {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Code Inputs */
.code-input-group {
    margin: 2rem 0;
}

.code-inputs-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.code-input {
    width: 45px;
    height: 55px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.3s;
    -webkit-text-security: disc;
    text-security: disc;
}

.code-input:focus {
    outline: none;
    border-color: var(--primary);
    -webkit-text-security: none;
    text-security: none;
}

.code-input.filled {
    border-color: var(--primary);
}

.code-input.success {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.code-input.error {
    border-color: #ef4444 !important;
}

/* Timer & Warnings */
.verify-timer-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s;
}

.verify-timer-box i {
    font-size: 1.1rem;
    color: var(--primary);
}

.timer-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.timer-info span {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 800;
}

.timer-info strong {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
}

.verify-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #fffbeb;
    color: #b45309;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(180, 83, 9, 0.2);
}

html.dark .verify-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.2);
}

/* Base Link Style */
.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    transition: opacity 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

html.dark .btn-link {
    color: #ffffff;
}

/* Alerts */
.alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #10b981;
}

html.dark .alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.2);
}

.error-text {
    display: block;
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    font-weight: 700;
}

/* ==================== LANGUAGE DROPDOWN ==================== */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-header {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1e293b;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s, color 0.2s;
}

.lang-item:hover,
.lang-item.active {
    background: #f1f5f9;
    color: var(--primary);
}

html.dark .lang-dropdown {
    background: #111;
    border-color: #333;
}

html.dark .lang-dropdown-header {
    background: #1a1a1a;
    border-bottom-color: #333;
    color: #94a3b8;
}

/* ==================== ANIMATIONS & NO INLINE STYLES ==================== */
.auth-floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

#heroCanvas {
    width: 100%;
    height: 100%;
    display: block;
}



/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .auth-container {
        grid-template-columns: 1fr;
        display: block;
        /* Stack on mobile */
    }

    .auth-left {
        display: none;
    }

    .auth-mobile-header {
        display: flex;
    }

    .auth-right {
        padding: 4rem 1.5rem;
        min-height: calc(100vh - 72px);
    }
}

@media (max-width: 480px) {
    .auth-right {
        padding: 1.5rem;
    }

    .auth-form h2 {
        font-size: 1.5rem;
    }

    .code-input {
        width: 40px;
        height: 50px;
        font-size: 1.25rem;
    }
}