/* TechHub Auth UI Styles */

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.auth-overlay.active {
    display: flex;
    opacity: 1;
}

.auth-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: authSlideUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes authSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header .logo-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.auth-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.auth-header h2 span {
    color: var(--secondary-color, #6366f1);
    font-weight: 800;
}

.auth-header p {
    color: #94a3b8;
    font-size: 0.95rem;
}

.auth-field {
    margin-bottom: 1.5rem;
}

.auth-field label {
    display: block;
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.auth-field input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s ease;
}

.auth-field input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary-color, #6366f1);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

.auth-footer a {
    color: var(--secondary-color, #6366f1);
    text-decoration: none;
    font-weight: 700;
    margin-left: 0.5rem;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-notice {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.auth-notice p {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
}

/* User Profile in Header */
.user-profile-info {
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.user-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-email {
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    background: rgba(99, 102, 241, 0.15);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    text-transform: capitalize;
}

.logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.2rem;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .auth-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .user-profile-info {
        margin-left: 0.5rem;
        padding-left: 0.5rem;
    }
}
