/* ============================================
   AUTH MODAL – Login & Register
   ============================================ */
.auth-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000; padding: 20px;
}

.auth-modal {
    background: #0d1127;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 36px;
    max-width: 440px; width: 100%;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-modal-close {
    position: absolute; top: 16px; right: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #94a3b8; font-size: 0.9rem;
    transition: all 0.15s ease;
}

.auth-modal-close:hover { background: rgba(239,68,68,0.2); color: #fca5a5; }

/* Tabs */
.auth-tabs {
    display: flex;
    background: rgba(255,255,255,0.04);
    border-radius: 12px; padding: 4px;
    margin-bottom: 28px;
    border: 1px solid rgba(255,255,255,0.07);
}

.auth-tab {
    flex: 1; padding: 10px; border-radius: 10px;
    border: none; background: transparent;
    color: #94a3b8; font-weight: 600; font-size: 0.875rem;
    font-family: inherit; cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: white;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

/* Form */
.auth-form h2 {
    font-size: 1.4rem; font-weight: 700;
    margin-bottom: 6px; letter-spacing: -0.02em;
}

.auth-sub {
    color: #94a3b8; font-size: 0.85rem;
    margin-bottom: 24px; line-height: 1.5;
}

.auth-input {
    width: 100%; padding: 13px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; color: #f1f5f9;
    font-size: 0.9rem; font-family: inherit;
    outline: none; margin-bottom: 12px;
    transition: all 0.2s ease;
    display: block; box-sizing: border-box;
}

.auth-input:focus {
    border-color: rgba(59,130,246,0.5);
    background: rgba(59,130,246,0.06);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.auth-submit {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border: none; border-radius: 12px;
    color: white; font-weight: 700; font-size: 1rem;
    font-family: inherit; cursor: pointer;
    transition: all 0.3s ease; margin-top: 8px;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.4);
}

.auth-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5; padding: 10px 14px;
    border-radius: 10px; font-size: 0.85rem;
    margin-bottom: 16px;
}
