/* ============================================
   AUTH MODAL - Login/Register
   Ayrı dosya: mevcut CSS ile çakışma yok
   ============================================ */

/* Overlay */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 16px;
}
.auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.auth-modal {
    width: 100%;
    max-width: 420px;
    background: var(--bg-primary, #ffffff);
    border-radius: 20px;
    border: 1px solid var(--border-color, rgba(0,0,0,0.08));
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0,0,0,0.03);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}
.auth-modal-overlay.active .auth-modal {
    transform: translateY(0) scale(1);
}

/* Dark mode */
.dark .auth-modal {
    background: #0f172a;
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

/* Header */
.auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}
.auth-modal-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-high, #1e293b);
    margin: 0;
}
.dark .auth-modal-header h2 {
    color: #f1f5f9;
}
.auth-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-color, rgba(0,0,0,0.08));
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-mid, #64748b);
}
.dark .auth-modal-close {
    border-color: rgba(255,255,255,0.1);
    color: #94a3b8;
}
.auth-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Tabs */
.auth-modal-tabs {
    display: flex;
    gap: 0;
    padding: 20px 24px 0;
}
.auth-modal-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-mid, #64748b);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
}
.dark .auth-modal-tab {
    color: #94a3b8;
}
.auth-modal-tab.active {
    color: #0052FF;
    border-bottom-color: #0052FF;
}
.dark .auth-modal-tab.active {
    color: #60a5fa;
    border-bottom-color: #60a5fa;
}
.auth-modal-tab:hover:not(.active) {
    color: var(--text-high, #1e293b);
}
.dark .auth-modal-tab:hover:not(.active) {
    color: #e2e8f0;
}

/* Body */
.auth-modal-body {
    padding: 24px;
}

/* Panels */
.auth-panel {
    display: none;
}
.auth-panel.active {
    display: block;
}

/* Form Elements */
.auth-form-group {
    margin-bottom: 16px;
}
.auth-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid, #64748b);
    margin-bottom: 6px;
}
.dark .auth-form-label {
    color: #94a3b8;
}
.auth-form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color, rgba(0,0,0,0.1));
    background: var(--bg-secondary, #f8fafc);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-high, #1e293b);
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}
.dark .auth-form-input {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
    color: #f1f5f9;
}
.auth-form-input:focus {
    border-color: #0052FF;
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.1);
}
.dark .auth-form-input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}
.auth-form-input::placeholder {
    color: #94a3b8;
}
.dark .auth-form-input::placeholder {
    color: #475569;
}

/* Captcha */
.auth-captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.auth-captcha-question {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0052FF, #7c3aed);
    color: white;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    min-width: 100px;
    text-align: center;
}
.auth-captcha-input {
    flex: 1;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #0052FF, #7c3aed);
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}
.auth-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 82, 255, 0.3);
}
.auth-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.auth-submit-btn.loading {
    pointer-events: none;
}
.auth-submit-btn.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color, rgba(0,0,0,0.08));
}
.dark .auth-divider::before,
.dark .auth-divider::after {
    background: rgba(255,255,255,0.08);
}
.auth-divider span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-low, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Wallet Button (inside modal) */
.auth-wallet-btn {
    width: 100%;
    padding: 13px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 82, 255, 0.2);
    background: rgba(0, 82, 255, 0.05);
    color: #0052FF;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.dark .auth-wallet-btn {
    border-color: rgba(96, 165, 250, 0.2);
    background: rgba(96, 165, 250, 0.08);
    color: #60a5fa;
}
.auth-wallet-btn:hover {
    background: rgba(0, 82, 255, 0.12);
    border-color: rgba(0, 82, 255, 0.4);
    transform: translateY(-1px);
}
.dark .auth-wallet-btn:hover {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.4);
}
.auth-wallet-btn img {
    width: 20px;
    height: 20px;
}

/* Error Message */
.auth-error {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    display: none;
}
.dark .auth-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
    color: #f87171;
}
.auth-error.visible {
    display: block;
}

/* Success Message */
.auth-success {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    display: none;
}
.dark .auth-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.25);
    color: #34d399;
}
.auth-success.visible {
    display: block;
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .auth-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    .auth-modal {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
        transform: translateY(100%);
    }
    .auth-modal-overlay.active .auth-modal {
        transform: translateY(0);
    }
    .auth-modal-body {
        padding: 20px;
    }
    .auth-modal-header {
        padding: 16px 20px 0;
    }
    .auth-modal-tabs {
        padding: 16px 20px 0;
    }
}

/* Scrollbar */
.auth-modal::-webkit-scrollbar {
    width: 4px;
}
.auth-modal::-webkit-scrollbar-track {
    background: transparent;
}
.auth-modal::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}
.dark .auth-modal::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
}
