/* Auth Components Styles - DO NOT MODIFY */

/* Auth Modal Styling */
.modal-content {
    background-color: #222;
    border: 1px solid #333;
    border-radius: 15px;
    color: white;
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.1);
}

.modal-header {
    border-bottom-color: #333;
    text-align: center;
    padding: 1.5rem;
}

.modal-header .modal-title {
    width: 100%;
    font-size: 1.8rem;
    font-weight: bold;
}

/* Brand in modal */
.modal-brand {
    display: block;
    text-align: center;
    margin-bottom: 1rem;
}

.modal-brand .brand-text {
    font-size: 2rem;
    font-weight: bold;
    color: #0057F6;
}

.modal-brand .brand-highlight {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.modal-footer {
    border-top-color: #333;
}

/* Auth Buttons in Navbar */
.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.auth-buttons .btn-outline-primary {
    border-color: #0057F6;
    color: #0057F6;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 87, 246, 0.2);
}

.auth-buttons .btn-outline-primary:hover {
    background-color: #0057F6;
    color: white;
    box-shadow: 0 0 20px rgba(0, 87, 246, 0.4),
                0 0 30px rgba(0, 87, 246, 0.2);
    transform: translateY(-1px);
}

/* Tab Navigation */
.nav-tabs {
    border-bottom-color: #333;
}

.nav-tabs .nav-link {
    color: #999;
    border: none;
}

.nav-tabs .nav-link:hover {
    color: #fff;
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: #0057F6;
    background-color: transparent;
    border-bottom: 2px solid #0057F6;
}

/* Auth Forms */
.auth-form {
    padding: 1.5rem 1rem;
}

.auth-form input {
    background-color: #333;
    border-color: #444;
    color: white;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

/* Placeholder text color */
.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.auth-form input:focus {
    background-color: #404040;
    border-color: #0057F6;
    color: white;
    box-shadow: 0 0 15px rgba(0, 87, 246, 0.2);
}

/* Close Button */
.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Loading State */
.auth-form.loading {
    position: relative;
    pointer-events: none;
}

.auth-form.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(34, 34, 34, 0.7);
    border-radius: 8px;
    z-index: 1;
}

.auth-form .loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid #0057F6;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 0.8s linear infinite;
    z-index: 2;
}

/* Error Message Styling */
.auth-error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: none;
}

.auth-error.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Success Message Styling */
.auth-success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: none;
}

.auth-success.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Disabled State for Inputs */
.auth-form.loading input,
.auth-form.loading button {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Animations */
@keyframes spin {
    from { 
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to { 
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

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

/* Invalid Input Styling */
.auth-form input.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

/* Add these styles for the user dropdown */
.dropdown-menu {
    background-color: #222;
    border: 1px solid #333;
}

.dropdown-item {
    color: #fff;
}

.dropdown-item:hover {
    background-color: #333;
    color: #0057F6;
}

.dropdown-divider {
    border-top-color: #333;
}

.btn-primary.dropdown-toggle {
    background-color: #0057F6;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn-primary.dropdown-toggle:hover {
    background-color: #0056b3;
}

.verification-message {
    text-align: center;
    padding: 1rem;
    background-color: rgba(38, 166, 91, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease-in-out;
}

.verification-message i {
    color: #26a65b;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Add these at the end of your CSS file */
.cooldown-text {
    color: #dc3545;
    font-weight: 500;
}

#cooldown-timer {
    font-weight: bold;
    color: #dc3545;
}

#resendVerificationBtn:disabled .cooldown-text {
    opacity: 1; /* Keep the cooldown text visible even when button is disabled */
}