/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.logo .log-content span{
    margin-left: 1px;
    font-size: 1.2rem;
    background: linear-gradient(90deg, #64ffda, #48aff0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
  }
  .logo img {
    height: 45px;
  }

  .logo .log-content h2 {
    font-size: 1.3rem;
    background: linear-gradient(90deg, #64ffda, #48aff0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

/* Loading page */
/* Transition de fond pour les liens */
a, button {
    transition: background-color 0.3s ease;
}

/* Style pour les liens qui déclenchent le chargement */
.loading-link {
    position: relative;
    overflow: hidden;
}

.loading-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(100, 255, 218, 0.2);
    transition: left 0.3s ease;
}

.loading-link.loading::after {
    left: 100%;
}

/* body */

body {
    background-color: #0a192f;
    color: #e6f1ff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Container principal */
.auth-container {
    width: 100%;
    max-width: 900px;
    background: #112240;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px -20px rgba(2, 12, 27, 0.8);
    display: flex;
    min-height: 600px;
}

/* Section visuelle */
.auth-hero {
    width: 45%;
    background: linear-gradient(135deg, rgba(16, 36, 64, 0.9), rgba(10, 25, 47, 0.9)), 
                url('../images/mg.jpeg') no-repeat center center;
    background-size: cover;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo img {
    height: 40px;
}

.logo h2 {
    font-size: 1.8rem;
    background: linear-gradient(90deg, #64ffda, #48aff0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-content p {
    color: #ccd6f6;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #ccd6f6;
}

.hero-features i {
    color: #64ffda;
}

/* Section formulaire */
.auth-form-container {
    width: 55%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

/* Navigation connexion/inscription */
.auth-nav {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #233554;
}

.auth-nav button {
    background: none;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #8892b0;
    cursor: pointer;
    position: relative;
}

.auth-nav button.active {
    color: #64ffda;
}

.auth-nav button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #64ffda;
}

/* Formulaires */
.auth-form {
    display: none;
    flex: 1;
    flex-direction: column;
}

.auth-form.active {
    display: flex;
}

.form-title {
    font-size: 1.8rem;
    margin: 1.5rem 0 0.5rem;
    color: #e6f1ff;
}

.form-subtitle {
    color: #8892b0;
    margin-bottom: 2rem;
}

/* Styles des champs */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccd6f6;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: #0a192f;
    border: 1px solid #233554;
    border-radius: 6px;
    color: #e6f1ff;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #64ffda;
    box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

/* Options de paiement */
.payment-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.payment-option {
    flex: 1;
    border: 1px solid #233554;
    border-radius: 6px;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.payment-option.selected {
    border-color: #64ffda;
    background: rgba(100, 255, 218, 0.05);
}

.payment-option img {
    height: 25px;
}

/* Options d'abonnement */
.subscription-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.subscription-option {
    border: 1px solid #233554;
    border-radius: 6px;
    padding: 1rem;
    cursor: pointer;
}

.subscription-option.selected {
    border-color: #64ffda;
    background: rgba(100, 255, 218, 0.05);
}

.subscription-option h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: #e6f1ff;
}

.subscription-option .price {
    color: #64ffda;
    font-size: 0.9rem;
}

/* Bouton de soumission */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #64ffda;
    color: #0a192f;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: auto;
}

.submit-btn:hover {
    background: #48d1b5;
}

/* Lien de basculement */
.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: #8892b0;
}

.auth-switch a {
    color: #64ffda;
    text-decoration: none;
    font-weight: 500;
}

/* Validation */
.input-error {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: none;
}

.form-group.error input {
    border-color: #ff6b6b;
}

.form-group.error .input-error {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        min-height: auto;
    }

    .auth-hero, .auth-form-container {
        width: 100%;
    }

    .auth-hero {
        min-height: 300px;
    }

    .payment-options, .subscription-options {
        flex-wrap: wrap;
        flex-direction: row;
    }
}