/* ========================================
   1=GE Authentication Styles
   ======================================== */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    padding: 2rem 1rem;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    position: relative;
}

/* Back Link */
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.auth-back:hover {
    color: var(--color-primary);
}

/* Auth Card */
.auth-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

/* Logo */
.auth-logo {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.auth-logo .logo-1 {
    color: #FCD34D;
}

.auth-logo .logo-eq {
    color: #FCD34D;
    margin: 0 0.1rem;
}

.auth-logo .logo-ge {
    color: #10B981;
}

/* Titles */
.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

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

.input-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.1rem;
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: var(--color-text);
    font-size: 1rem;
    transition: all 0.2s;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.input-with-icon input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.toggle-password:hover {
    opacity: 1;
}

.input-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    opacity: 0.7;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--color-primary);
}

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

.forgot-link {
    font-size: 0.875rem;
    color: var(--color-primary);
    transition: opacity 0.2s;
}

.forgot-link:hover {
    opacity: 0.8;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.kaspi-btn {
    background: linear-gradient(135deg, #FF6B6B, #E63946);
    color: white;
    border: none;
}

.kaspi-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3);
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.auth-footer a {
    color: var(--color-primary);
    font-weight: 600;
    margin-left: 0.25rem;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Language Toggle */
.auth-lang {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.auth-lang .lang-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    border: 1px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.auth-lang .lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.auth-lang .lang-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Success/Error States */
.input-error {
    border-color: #ef4444 !important;
}

.input-success {
    border-color: #10B981 !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Loading State */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    width: 1rem;
    height: 1rem;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   Theme Toggle Button
   ======================================== */
.auth-lang .theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1.25rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-lang .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* Dark theme - show moon, hide sun */
.theme-icon-light {
    display: none;
}

.theme-icon-dark {
    display: inline;
}

/* Light theme - show sun, hide moon */
[data-theme="light"] .theme-icon-light {
    display: inline;
}

[data-theme="light"] .theme-icon-dark {
    display: none;
}

/* ========================================
   Light Theme for Auth Pages
   ======================================== */
[data-theme="light"] .auth-body,
.light-theme.auth-body {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
}

[data-theme="light"] .auth-card,
.light-theme .auth-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .auth-title,
.light-theme .auth-title {
    color: #1a1a2e;
}

[data-theme="light"] .auth-subtitle,
[data-theme="light"] .form-group label,
[data-theme="light"] .checkbox-label,
[data-theme="light"] .auth-footer,
.light-theme .auth-subtitle,
.light-theme .form-group label,
.light-theme .checkbox-label,
.light-theme .auth-footer {
    color: #64748b;
}

[data-theme="light"] .input-with-icon input,
.light-theme .input-with-icon input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
    color: #1a1a2e;
}

[data-theme="light"] .input-with-icon input::placeholder,
.light-theme .input-with-icon input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .input-with-icon input:focus,
.light-theme .input-with-icon input:focus {
    background: rgba(16, 185, 129, 0.05);
    border-color: #10B981;
}

[data-theme="light"] .auth-divider::before,
[data-theme="light"] .auth-divider::after,
.light-theme .auth-divider::before,
.light-theme .auth-divider::after {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .auth-divider span,
.light-theme .auth-divider span {
    color: #64748b;
}

[data-theme="light"] .auth-lang .lang-btn,
[data-theme="light"] .auth-lang .theme-toggle,
.light-theme .auth-lang .lang-btn,
.light-theme .auth-lang .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    color: #64748b;
}

[data-theme="light"] .auth-lang .lang-btn:hover,
[data-theme="light"] .auth-lang .theme-toggle:hover,
.light-theme .auth-lang .lang-btn:hover,
.light-theme .auth-lang .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .auth-lang .lang-btn.active,
.light-theme .auth-lang .lang-btn.active {
    background: var(--color-primary);
    color: white;
}

[data-theme="light"] .auth-back,
.light-theme .auth-back {
    color: #64748b;
}

[data-theme="light"] .auth-back:hover,
.light-theme .auth-back:hover {
    color: #10B981;
}

[data-theme="light"] .toggle-password,
.light-theme .toggle-password {
    color: #64748b;
}

/* ========================================
   Card Input Section
   ======================================== */
.card-section {
    margin-top: 1rem;
    padding: 1.25rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 1rem;
}

.card-section-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.form-row-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.card-hint {
    display: block;
    margin-top: 0.75rem;
    text-align: center;
    color: var(--color-primary) !important;
    opacity: 1 !important;
}

/* Light theme card section */
[data-theme="light"] .card-section,
.light-theme .card-section {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
}

/* Disabled card section */
.card-section-disabled {
    position: relative;
    pointer-events: none;
}

.card-section-disabled > *:not(.coming-soon-overlay) {
    filter: blur(3px);
    opacity: 0.5;
}

.coming-soon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: linear-gradient(135deg, var(--color-primary), #0EA5E9);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}