/**
 * Authentication Modal Styles
 * Include in style.css or load separately
 */

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #0f172a;
}

.tab-btn.active {
    color: #dc2626;
    border-bottom-color: #dc2626;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* User Info in Navbar */
#userInfo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-weight: 600;
    color: #0f172a;
}

/* Login Required Message */
.login-required-message {
    padding: 2rem;
    text-align: center;
    background: #f8fafc;
    border-radius: 8px;
    margin: 2rem 0;
}

.login-required-message p {
    color: #64748b;
    margin: 0;
}

.login-required-message a {
    color: #dc2626;
    text-decoration: underline;
    font-weight: 600;
}

.login-required-message a:hover {
    color: #b91c1c;
}

/* Button Utilities */
.btn-block {
    width: 100%;
    display: block;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #dc2626;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Card Component */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: 2px solid #e2e8f0;
        border-right: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-right-color: #dc2626;
        border-bottom-color: #e2e8f0;
    }
    
    #userInfo {
        flex-direction: column;
        gap: 0.5rem;
    }
}
