/* ===== AUTH MODALS STYLES ===== */

/* Navigation Auth Buttons */
.nav-auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-signin,
.btn-register {
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(45, 55, 72, 0.2);
    min-height: 44px;
    min-width: 44px;
    text-decoration: none;
}

.btn-signin {
    background: transparent;
    color: #2d3748;
}

.btn-signin:hover {
    background: rgba(45, 55, 72, 0.05);
    border-color: rgba(45, 55, 72, 0.3);
}

.btn-register {
    background: rgba(45, 55, 72, 0.1);
    color: #2d3748;
}

.btn-register:hover {
    background: rgba(45, 55, 72, 0.15);
    border-color: rgba(45, 55, 72, 0.3);
}

/* Modal Overlay */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.auth-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Content */
.auth-modal-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.auth-modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.auth-modal-close:hover {
    color: #333;
}

/* Modal Header */
.auth-modal-content h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    color: #1a1a1a;
    font-weight: 700;
}

.auth-subtitle {
    color: #666;
    margin: 0 0 2rem 0;
    font-size: 0.95rem;
}

/* Form Styles */
.auth-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #666;
}

/* Form Actions */
.form-actions {
    margin-bottom: 1.5rem;
    text-align: right;
}

.forgot-password {
    color: var(--primary-color, #2563eb);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-hover, #1d4ed8);
    text-decoration: underline;
}

/* Auth Button */
.btn-auth {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin-top: 0.5rem;
}

.btn-auth.btn-primary {
    background: var(--primary-color, #2563eb);
    color: white;
}

.btn-auth.btn-primary:hover {
    background: var(--primary-hover, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Error & Success Messages */
.auth-error,
.auth-success {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
}

.auth-error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.auth-error.active {
    display: block;
}

.auth-success {
    background-color: #d1fae5;
    color: #059669;
    border: 1px solid #6ee7b7;
}

.auth-success.active {
    display: block;
}

/* Auth Footer */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.auth-footer p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.auth-footer a {
    color: var(--primary-color, #2563eb);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--primary-hover, #1d4ed8);
    text-decoration: underline;
}

/* Loading State */
.btn-auth.loading {
    position: relative;
    color: transparent;
}

/* Disable generic spinner from forms.css to prevent double loader */
.btn-auth.loading::before {
    content: none;
}

.btn-auth.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-auth-buttons {
        display: none; /* Hide in mobile, use hamburger menu */
    }
    
    .auth-modal-content {
        width: 95%;
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .auth-modal-content h2 {
        font-size: 1.5rem;
    }
}

/* Mobile Menu Auth Buttons */
@media (max-width: 768px) {
    .nav-menu.active {
        display: flex;
        flex-direction: column;
    }
    
    .nav-menu.active .nav-auth-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        gap: 0.5rem;
    }
    
    .nav-menu.active .btn-signin,
    .nav-menu.active .btn-register {
        width: 100%;
    }
}
