/* =============================================================================
 * POKEMON BATTLE TRACKER - Styles pour les pages d'authentification
 * =============================================================================
 */

/* Styles spécifiques pour les pages d'inscription et connexion */
.container {
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--dark-bg-primary);
    color: var(--text-light);
    line-height: 1.5;
}

.auth-container {
    background-color: var(--dark-bg-secondary);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* En-têtes */
h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--text-light);
}

h2 {
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

/* Formulaires */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--dark-bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(77, 91, 255, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Messages d'erreur et statuts */
.erreur {
    color: var(--danger);
    margin-top: 10px;
    font-size: 0.875rem;
}

.success {
    color: var(--success);
    margin-top: 10px;
    font-size: 0.875rem;
}

.username-status {
    margin-top: 5px;
    font-size: 0.8rem;
}

/* Loader pour vérification */
.loader {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin-right: 5px;
}

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

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    margin-top: 20px;
}

.btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
    background-color: var(--primary-dark);
    transform: translateY(0);
}

.btn:disabled {
    background-color: var(--dark-bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Option de connexion alternative */
.alternative-auth {
    margin-top: 20px;
    text-align: center;
    position: relative;
}

.alternative-auth::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
    z-index: 1;
}

.alternative-auth span {
    position: relative;
    z-index: 2;
    background-color: var(--dark-bg-secondary);
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.social-login {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 15px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 250px;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    background-color: var(--dark-bg-tertiary);
    color: var(--text-light);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-social:hover {
    background-color: var(--dark-bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-social:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-social i {
    margin-right: 10px;
}

/* Pied de page du formulaire */
.auth-footer {
    margin-top: 25px;
    text-align: center;
    color: var(--text-muted);
}

.auth-footer p {
    margin-top: 8px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-light);
}

/* Mot de passe oublié */
#mot-de-passe-oublie {
    font-size: 0.875rem;
    color: var(--primary-color);
}

#mot-de-passe-oublie:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        margin: 20px auto;
    }
    
    .auth-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .btn-social {
        padding: 8px 12px;
        font-size: 0.875rem;
    }
}