/* Authentication Modal Styles */

.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.auth-modal-content {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.auth-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.auth-modal-content .form-group {
    margin-bottom: 1.25rem;
}

.auth-modal-content .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-modal-content .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.auth-modal-content .form-group input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.error-message {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #ffebee;
    border-radius: 8px;
    border-left: 3px solid #d32f2f;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-buttons .btn-secondary,
.auth-buttons .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.auth-buttons .btn-secondary {
    background: transparent;
    color: #333;
    border: 1px solid #ddd;
}

.auth-buttons .btn-secondary:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.auth-buttons .btn-primary {
    background: #d4af37;
    color: white;
}

.auth-buttons .btn-primary:hover {
    background: #c19d2e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

/* User Menu Styles */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background 0.2s;
}

.user-menu:hover {
    background: #f5f5f5;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.user-menu-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid #eee;
}

.user-menu-dropdown a:last-child {
    border-bottom: none;
}

.user-menu-dropdown a:hover {
    background: #f5f5f5;
}

.user-menu-dropdown a#signOutBtn {
    color: #d32f2f;
}

.user-menu-dropdown a#signOutBtn:hover {
    background: #ffebee;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .auth-buttons .btn-secondary,
    .auth-buttons .btn-primary {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .auth-modal-content {
        padding: 1.5rem;
        max-width: 95%;
    }
}

