/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

body.background {
  padding-top: 80px; /* ou la hauteur de ton header */
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

.background {
  background: url("../images/Christmas%20presents%20inspired%20by%20the%20books%20you%20read%20-%20Shabby%20Chic%20Boho.jpeg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 95vh;
  padding: 5px; /* espace sur petits écrans */
}

/* Carte centrale réduite */
.card {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 380px; /* limite */
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #ddb608b0;
  font-weight: 700;
}

form {
  display: flex;
  flex-direction: column;
}

.input-group {
  display: flex;
  gap: 10px;
}

.input-group input {
  flex: 1;
}

input, select {
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

select {
  background: white;
}

/* Placeholder-like style for selects when no value chosen */
select:required:invalid { color: #9aa0a6; }
select option[value=""] { color: #9aa0a6; }

/* Date input: show gray text before selection (Chromium/WebKit) */
input[type="date"]:required:invalid { color: #9aa0a6; }
input[type="date"]::-webkit-datetime-edit { color: inherit; }
input[type="date"]:valid::-webkit-datetime-edit { color: #000; }
input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0.7; }

.checkbox {
  display: flex;
  align-items: flex-start; /* aligné en haut pour le texte multi-ligne */
  gap: 8px;
  font-size: 14px;
  margin-bottom: 15px;
  color: #333;
  line-height: 1.4;
}

.checkbox input[type="checkbox"] {
  margin: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0; /* empêche la case de rétrécir */
  margin-top: 2px; /* aligne avec la première ligne de texte */
}

.checkbox-text {
  flex: 1;
}

.terms-checkbox {
  margin-bottom: 20px; /* plus d'espace avant le bouton */
}

.terms-link {
  color: #ddb608b0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.terms-link:hover {
  color: #c7a808;
  text-decoration: underline;
}

.btn {
  background: #ddb608b0;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
}

.btn:hover {
  background:#ddb608b0;
}

.switch {
  text-align: center;
  font-size: 14px;
  margin-top: 10px;
}

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

.forgot {
  text-align: right;
  font-size: 12px;
  color: #ddb608b0;
  margin-bottom: 15px;
  display: block;
}

/* Animation */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Carte centrale */
.card {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 4px 20px #fff;
  box-sizing: border-box;

  /* Animation ajoutée */
  animation: fadeSlideIn 2s ease-out;
}

/* Animation background */
@keyframes bgMove {
  0% {
    background-position: center;
    transform: scale(1);
    filter: blur(0px);
  }
  50% {
    background-position: top;
    transform: scale(1);
    filter: blur(0px);
  }
  100% {
    background-position: center;
    transform: scale(1);
    filter: blur(0px);
  }
}

/* keep single source of truth for .background above; optional animation here */
/* Animation */
.background { animation: bgMove 2.5s ease-out; }

/* ✅ Responsive */
@media (max-width: 480px) {
  .card {
    padding: 20px;
    max-width: 100%;
  }

  h2 {
    font-size: 20px;
  }

  input, select, .btn {
    font-size: 13px;
    padding: 10px;
  }

  .checkbox {
    font-size: 13px;
  }
}