/**
 * Styles pour les pages d'authentification
 * Thème Valorant avec des couleurs et styles cohérents
 */

/* Styles de base pour les pages d'authentification */
.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--valorant-dark);
    padding: 2rem;
}

.auth-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Fond d'image avec overlay */
.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 25, 35, 0.9), rgba(15, 25, 35, 0.7));
    z-index: 1;
}

.auth-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Contenu du formulaire */
.auth-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    background-color: rgba(15, 25, 35, 0.8);
    backdrop-filter: blur(10px);
    color: var(--valorant-white);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.auth-logo img {
    height: 60px;
    width: auto;
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    position: relative;
    display: inline-block;
}

.auth-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--valorant-red);
}

/* Formulaire */
.auth-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
}

.input-group:focus-within {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px var(--valorant-red);
}

.input-group i {
    padding: 0 1rem;
    color: var(--valorant-light-gray);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem;
    color: var(--valorant-white);
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
}

.toggle-password {
    background: transparent;
    border: none;
    padding: 0 1rem;
    color: var(--valorant-light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--valorant-white);
}

/* Options du formulaire */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.remember-me input {
    margin-right: 0.5rem;
}

.forgot-password {
    color: var(--valorant-light-gray);
    text-decoration: none;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--valorant-red);
    text-decoration: underline;
}

/* Bouton de soumission */
.btn-auth {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--valorant-red);
    color: var(--valorant-white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.btn-auth:hover {
    background-color: var(--valorant-red-hover);
    transform: translateY(-2px);
}

/* Connexion sociale */
.social-login {
    margin-top: 2rem;
}

.divider {
    display: block;
    text-align: center;
    position: relative;
    margin-bottom: 1.5rem;
    color: var(--valorant-light-gray);
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 1rem;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-social.discord {
    background-color: #5865F2;
    color: white;
}

.btn-social.google {
    background-color: white;
    color: #4285F4;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

/* Pied de page */
.auth-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--valorant-light-gray);
}

.auth-footer a {
    color: var(--valorant-red);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .auth-content {
        max-width: 100%;
        padding: 2rem;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .auth-page {
        padding: 1rem;
    }
    
    .auth-content {
        padding: 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 2rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
