/* Styles spécifiques pour la page d'inscription/login (style/login.css) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");

:root {
  --bg: #ffffff;
  --accent: #0047ab;
  --accent-strong: #0055d4;
  --text: #12232b;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
body {
  font-family: "Inter", system-ui, Arial, sans-serif;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
  display: flex;
  justify-content: center;
  padding: 28px;
  color: var(--text);
  min-height: 100vh;
}

.form-container {
  width: 100%;
  max-width: 540px;
  border-radius: 18px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 71, 171, 0.06);
  box-shadow: 0 12px 40px rgba(0, 71, 171, 0.08);
  backdrop-filter: blur(8px) saturate(120%);
  margin: 20px auto;
  align-self: flex-start;
}

.form-container h1 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 6px;
}
.form-container h2 {
  text-align: center;
  color: #6b7a86;
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-list {
  list-style-position: inside;
  padding: 0;
  margin: 0;
  counter-reset: form-counter;
}

.form-list li {
  position: relative;
  margin-bottom: 20px;
  padding-left: 35px;
  counter-increment: form-counter;
}

.form-list li::before {
  content: counter(form-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-weight: 600;
}
.name-group .name-inputs {
  display: flex;
  gap: 15px;
}

.name-inputs .input-field {
  flex: 1;
}

.date-inputs {
  display: flex;
  gap: 15px;
}

.date-inputs .input-field {
  flex: 1;
}

/* Style pour les inputs de type number */
.date-inputs input[type="number"] {
  text-align: center;
}

/* Suppression des flèches pour les inputs number */
.date-inputs input[type="number"]::-webkit-inner-spin-button,
.date-inputs input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.date-inputs input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.phone-input-container {
  display: flex;
  align-items: center;
  border: 1px solid rgba(0, 71, 171, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  overflow: hidden;
}

.phone-prefix {
  padding: 12px 10px;
  background: rgba(0, 71, 171, 0.05);
  color: var(--accent);
  font-weight: 600;
  border-right: 1px solid rgba(0, 71, 171, 0.1);
}

.phone-input-container input {
  border: none !important;
  border-radius: 0 !important;
  flex: 1;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 71, 171, 0.1);
  background: rgba(255, 255, 255, 0.98);
  font-size: 1rem;
  width: 100%;
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(0, 71, 171, 0.06);
  border-color: var(--accent);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

button[name="envoyer"] {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  transition: all 180ms ease;
}
button[name="envoyer"]:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.small {
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .form-container {
    padding: 20px;
  }
}
