/* Authentication Modal Styles */

.auth-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.auth-modal .modal-header {
    border-bottom: 1px solid #f5f5f5;
    padding: 2rem 2rem 1rem;
}

.auth-modal .modal-body {
    padding: 2rem;
}

.auth-modal .nav-tabs {
    border-bottom: 2px solid #f5f5f5;
    margin-bottom: 2rem;
}

.auth-modal .nav-tabs .nav-link {
    border: none;
    color: #999;
    font-weight: 500;
    padding: 1rem 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.auth-modal .nav-tabs .nav-link:hover {
    color: #d4a574;
    border-color: transparent;
}

.auth-modal .nav-tabs .nav-link.active {
    color: #d4a574;
    background: transparent;
    border: none;
}

.auth-modal .nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #d4a574, #f5d5ba);
    border-radius: 3px 3px 0 0;
}

.auth-form .form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    border-color: #d4a574;
    box-shadow: 0 0 0 0.2rem rgba(212, 165, 116, 0.15);
}

.auth-form .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.auth-form .btn-auth {
    background: linear-gradient(135deg, #d4a574, #f5d5ba);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.auth-form .btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

.auth-form .btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-error {
    background-color: #fee;
    border-left: 4px solid #dc3545;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease;
}

.auth-success {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider span {
    padding: 0 1rem;
    color: #999;
    font-size: 0.9rem;
}

/* User Display Styles */
#user-display {
    padding: 0.5rem 0;
}

#user-display .btn-outline-danger {
    border-radius: 8px;
    transition: all 0.3s ease;
}

#user-display .btn-outline-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

/* Loading spinner for auth forms */
.auth-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile responsive */
@media (max-width: 576px) {
    .auth-modal .modal-body {
        padding: 1.5rem 1rem;
    }

    .auth-modal .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}