/* ========== AUTHENTICATION STYLES ========== */

/* ── Email Verification Banner ───────────────────────────────── */
.email-verify-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.25);
    border-radius: 14px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    flex-wrap: wrap;
    gap: 0.6rem;
}

.email-verify-banner > i {
    color: #eab308;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.email-verify-banner > span {
    flex: 1;
    min-width: 160px;
}

.evb-resend-btn {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #eab308;
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.evb-resend-btn:hover {
    background: rgba(234, 179, 8, 0.25);
}

.evb-resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.evb-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: color 0.2s;
}

.evb-close-btn:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* Modal Dark Theme */
.modal-content.bg-dark {
    background-color: #1a1d24 !important;
    border: 1px solid #2a2d35;
}

.modal-header.border-secondary {
    border-bottom-color: #2a2d35 !important;
}

.modal-body .form-control {
    background-color: #0f1115;
    border: 1px solid #2a2d35;
    color: #ffffff;
}

.modal-body .form-control:focus {
    background-color: #14171c;
    border-color: #7ed956;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(126, 217, 86, 0.25);
}

.modal-body .form-label {
    color: #a0a3a8;
    font-weight: 500;
}

.modal-body .text-muted {
    color: #6b6e76 !important;
}

.modal-body .text-primary {
    color: #7ed956 !important;
}

.modal-body .text-primary:hover {
    color: #6bc246 !important;
    text-decoration: underline;
}

/* Alert Messages */
.modal-body .alert {
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Dropdown Menu Dark Theme */
.dropdown-menu {
    background-color: #1a1d24;
    border: 1px solid #2a2d35;
}

.dropdown-item {
    color: #a0a3a8;
}

.dropdown-item:hover {
    background-color: #14171c;
    color: #ffffff;
}

.dropdown-item-text {
    color: #6b6e76 !important;
}

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

/* User Menu */
#userMenu {
    border: 1px solid #c44536;
    border-radius: 50px;
}

#userMenu .nav-link {
    color: #ffffff;
}

#userMenu .nav-link:hover {
    color: #c44536;
}

/* Button Styles - Unified Format */
.btn-primary,
.btn-outline-light,
.btn-outline-primary {
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-outline-light {
    color: #ffffff;
    border-color: #ffffff;
}

.btn-outline-light:hover {
    background-color: #ffffff;
    color: #0a0a0a;
    transform: translateY(-2px);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
}

/* Loading Spinner in Button */
.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Validation */
.form-control:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.form-control:valid:not(:placeholder-shown) {
    border-color: #c44536;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }
    
    #loginBtn button,
    #userMenu .nav-link {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    /* Login/Register navbar mobile fixes */
    .navbar .btn-link {
        font-size: 0;
        padding: 0.5rem;
        width: 40px;
    }
    
    .navbar .btn-link i {
        font-size: 1.25rem;
    }
    
    .navbar-logo-text {
        height: 24px !important;
    }
    
    .navbar-logo-icon {
        height: 32px !important;
        width: 32px !important;
    }
}
