.auth-wrapper {
    max-width: 100%;
    width: 98%;
    margin: 60px auto;
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* TITRES */
.auth-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 18px;
    color: var(--primary);
    font-weight: 600;
}

.switcher {
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.switcher a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
}

/* TRANSITIONS FORM */
.form {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: .4s ease;
}

.form.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* INPUTS + SELECT IDENTIQUES */
input {
    width: 100%;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select {
    width: 100%;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* WRAPPER POUR FLECHE */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper::after {
    content: "▼";
    font-size: 12px;
    color: #555;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    pointer-events: none;
}

/* LIGNES EN 3 COLONNES (DATE) */
.row-3 {
    display: flex;
    gap: 10px;
    width: 100%;
}

.row-3 > * {
    flex: 1;
}

/* LIGNES EN 2 COLONNES */
.row-2 {
    display: flex;
    gap: 10px;
    width: 100%;
}

.row-2 > * {
    flex: 1;
}

/* BOUTON */
button.auth-btn {
    width: 100%;
    padding: 14px;
    background: green;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    margin-top: 5px;
    cursor: pointer;
    transition: .3s;
}

button.auth-btn:hover {
    background: #000;
}

/* MESSAGES */
.success, .error {
    padding: 10px;
    margin-top: 15px;
    border-radius: 10px;
    font-size: 14px;
}

.success { background:#d1fae5;color:#065f46; }
.error { background:#fee2e2;color:#991b1b; }

/* LIGNE TÉLÉPHONE */
.phone-row {
    width: 100%;
}

.iti--separate-dial-code .iti__selected-dial-code {
    font-size: 15px;
}


#phone {
    width: 100% !important;
    padding-left: 52px !important; /* espace pour l’indicatif + drapeau */
	-webkit-appearance: none !important;
    appearance: none !important;
}

.iti {
    width: 100% !important;
}

.iti--separate-dial-code .iti__selected-dial-code {
    display: inline-block !important;
    font-size: 16px;
    margin-left: 6px;
}


/* Garantie que intl-tel-input s’affiche correctement */
.iti {
    width: 100% !important;
}

.iti__flag-container {
    left: 0 !important;
}

#phone {
    padding-left: 70px !important; /* espace pour le drapeau */
}



.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-box {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 350px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.modal-box h2 {
  margin-bottom: 10px;
}

.modal-box p {
  color: #666;
  margin-bottom: 20px;
}

.code-input {
  width: 100%;
  padding: 12px;
  font-size: 22px;
  letter-spacing: 8px;
  text-align: center;
  border: 2px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
}

button {
  width: 100%;
  padding: 12px;
  background: #28a745;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: #218838;
}

.error {
  color: red;
  margin-bottom: 10px;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}
