

/* RESET ET BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

body {
     background: linear-gradient(90deg, rgb(224, 209, 214) 19%, rgb(133, 107, 204) 89%);
     font-family: 'Inter', sans-serif;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 20px;
     color: rgb(223, 147, 48);

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);background: #15152c;
       color: rgb(223, 147, 48);
     
      
}
.nav-left, .nav-center, .nav-right {
    display: flex;
    align-items: center;
       color: rgb(223, 147, 48);
     
}
.nav-center img.logo { height:50px; }
.language-select {
    padding:5px 10px;
    border-radius:5px;
    border:none;
     color: rgb(223, 147, 48);
    cursor:pointer;
}
.nav-left i.icon { font-size:20px;  color:#ebedee; cursor:pointer;
       color: rgb(223, 147, 48);
     
}




.auth-container {
    max-width: 400px;
    width: 98%;
    margin: 70px auto;
    background: #ebedee;
    padding: 25px;
    border-radius: 12px;
    
}

/* LOGO ET TITRE */
.logo-section {
    text-align: center;
    margin-bottom: 25px;
}

.logo-section img.company-logo {
    width: 100px;
    height: auto;
}

.logo-section P {
    font-size: 1.5rem;
    margin-top: 10px;
    color: #333;
    font-weight: 500;
}

/* TABS SIGN IN / SIGN UP */
.auth-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    padding: 10px 0;
    border: none;
    background-color: #eee;
    cursor: pointer;
    
    border-radius: 8px;
    margin: 0 5px;
    transition: all 0.3s;
}

.tab-button.active {
    background-color: rgb(223, 147, 48);
    outline: none;
    color: #fff;
}

/* CONTENU SIGN IN / SIGN UP */
.flash-messages {
    list-style: none;
    padding: 10px;
    margin-bottom: 20px;
    background-color: #d4edda;
    color: #000000;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    font-size: 6px;
}

.auth-content {
    display: none;
}

.auth-content.active {
    display: block;
}

/* OPTIONS EMAIL / PHONE */
.login-options,
.signup-options {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.option-button {
    padding: 8px 15px;
    margin: 5px;
    border: none;
    border-radius: 6px;
    background-color: #ddd;
    
    cursor: pointer;
    transition: all 0.3s;
}

.option-button.active {
    background-color: rgb(223, 147, 48);
    color: #fff;
    outline: none;
}

/* FORMULAIRES */
.auth-form {
    display: none;
    flex-direction: column;
}

.auth-form.active {
    display: flex;
}

.auth-form input,
.auth-form select {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
    
}
.phone-input select {
  width: 100%;
  height: 7vh;
  padding: 12px 40px 12px 12px; /* espace à droite pour la flèche */
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  appearance: none;        /* enlève la flèche par défaut */
  -webkit-appearance: none;
  -moz-appearance: none;
   background: linear-gradient(90deg, rgb(224, 209, 214) 19%, rgb(133, 107, 204) 89%);

  /* flèche personnalisée */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center; /* espace avec le bord */
}


.phone-input {
  width: 100%;
  display: flex;
  align-items: center;
}

.phone-input select {
  width: 100%;
  
  max-width: 60%;
  box-sizing: border-box;
  font-size: 16px; /* TRÈS IMPORTANT POUR MOBILE */
}

/* Empêche les options trop larges */
.phone-input select option {
  font-size: 10px;
  max-width: 40%;
}
.auth-form  input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

.auth-form  input:focus {
    border-color: rgb(223, 147, 48);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}
.auth-form .phone-input {
    display: flex;
    gap: 10px;
    outline: none;
}

.auth-form button[type="submit"] {
    padding: 12px;
    background-color: rgb(223, 147, 48);
    outline: none;
    color: #fff;
    border: none;
    border-radius: 6px;
    
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-form button[type="submit"]:hover {
    background-color: #555;
}

/* RESPONSIVE */
@media screen and (max-width: 480px) {
    .auth-container {
        padding: 20px;
    }

    .auth-tabs {
        flex-direction: column;
    }

    .tab-button {
        margin: 5px 0;
    }

    .login-options,
    .signup-options {
        flex-direction: row;
        align-items: center;
    }

    .auth-form .phone-input {
        flex-direction: column;
    }

    .auth-form input,
    .auth-form select,
    .auth-form button[type="submit"] {
        width: 100%;
    }
}
.error-message {
    color: rgb(0, 0, 0);
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 6px;
}

.password-field {
    position: relative;
}

.password-field input {
    width: 100%;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 40%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
}
.password-strength {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 8px;
    font-size: 20px;
    
    display: none;
}

.password-strength .rule {
    color: #999;
    transition: color 0.3s ease;
}

.password-strength .rule.invalid {
    color: #e74c3c; /* rouge */
}

.password-strength .rule.valid {
    color: #27ae60; /* vert */
}
.rule.invalid { color: #e74c3c; }
.rule.valid { color: #27ae60; }