/* Auth Modal Overlay */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 1, 5, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Glassmorphism Modal */
.auth-modal {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: rgba(20, 25, 45, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.2), inset 0 0 15px rgba(255, 255, 255, 0.05);
    padding: 30px;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.auth-overlay.active .auth-modal {
    transform: translateY(0) scale(1);
}

/* Close Button */
.auth-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.auth-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* Tabs */
.auth-tabs {
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
    position: relative;
}

.auth-tab {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    transition: color 0.3s ease;
    flex: 1;
    text-align: center;
}

.auth-tab:hover {
    color: #e2e8f0;
}

.auth-tab.active {
    color: #0066ff;
}

.auth-tab-indicator {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50%;
    height: 3px;
    background: #0066ff;
    box-shadow: 0 0 10px #0066ff;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Forms */
.auth-form {
    display: none;
    flex-direction: column;
    gap: 20px;
    animation: fadeInForm 0.4s ease forwards;
}

.auth-form.active {
    display: flex;
}

@keyframes fadeInForm {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Input Group */
.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-input-group label {
    font-size: 14px;
    color: #cbd5e1;
    font-weight: 500;
}

.auth-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-input:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.2);
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* Submit Button */
.auth-submit-btn {
    margin-top: 10px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0066ff, #0052cc);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.5);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Status Messages */
.auth-message {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.auth-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.auth-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}
