/* 
 * Auth & Profile Styles for MMGameHub
 * Universal Support for Light & Dark Modes via Theme Variables
 */

:root {
    --auth-bg: var(--theme-bg);
    --auth-card-bg: var(--theme-card-bg);
    --auth-border: var(--theme-border);
    --auth-accent: var(--theme-primary);
    --auth-accent-gradient: linear-gradient(135deg, var(--theme-primary) 0%, #1d4ed8 100%);
    --auth-text: var(--theme-text);
    --auth-text-muted: var(--theme-text-muted);
}

.auth-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: var(--theme-bg);
    background-image: radial-gradient(circle at top right, rgba(59, 130, 246, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.05), transparent);
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: var(--auth-card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--theme-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

body.dark-mode .auth-card {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.auth-card:hover {
    transform: translateY(-5px);
}

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

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--theme-primary) 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    color: var(--theme-text-muted);
    font-size: 0.9rem;
}

.auth-form .form-label {
    color: var(--theme-text);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.auth-form .form-control {
    background: rgba(var(--theme-text), 0.03);
    border: 1px solid var(--theme-border);
    color: var(--theme-text);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    background: transparent;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

.auth-btn {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 2rem;
    background: linear-gradient(135deg, var(--theme-primary) 0%, #1d4ed8 100%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.auth-btn:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--theme-text-muted);
}

.auth-footer a {
    color: var(--theme-primary);
    text-decoration: none;
    font-weight: 600;
}

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

.auth-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: var(--theme-danger);
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    text-align: center;
}

/* Profile Specific - Standout Vertical */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    min-width: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-primary) 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

body.dark-mode .profile-avatar {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.profile-header h1 {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: var(--theme-text) !important;
}

.profile-header p {
    font-size: 0.9rem;
    color: var(--theme-text-muted);
    margin-top: 0.25rem;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
        min-width: 60px;
        font-size: 1.5rem;
    }
}