@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Pacifico&display=swap");

:root {
  --auth-red: #bf4342;
  --auth-red-dark: #8f2f2f;
  --auth-cream: #fff7f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(20px, 3vw, 44px);
  padding: clamp(16px, 2.6vw, 40px) clamp(12px, 2vw, 26px);
  font-family: "Lato", Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 255, 255, 0.3), transparent 28%),
    radial-gradient(circle at 80% 0, rgba(255, 200, 120, 0.2), transparent 30%),
    linear-gradient(145deg, #d45f5f 0%, #b24443 45%, #8f2f2f 100%);
}

#formulaire {
  width: min(560px, 45vw);
  margin: 0 0 0 clamp(18px, 4vw, 84px);
  background: rgba(255, 255, 255, 0.97);
  border: 2px solid rgba(191, 67, 66, 0.3);
  border-radius: 20px;
  padding: 32px 34px;
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.24);
}

h1 {
  margin: 0;
  color: var(--auth-red-dark);
  font-family: "Pacifico", cursive;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  text-align: center;
}

.form-subtitle {
  margin: 10px 0 18px;
  text-align: center;
  color: #5b4444;
  font-weight: 700;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-weight: 700;
  color: #4d3838;
}

input,
select {
  width: 100%;
  border: 1px solid #dcb3b2;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.95rem;
  background: #fff;
}

input:focus,
select:focus {
  outline: 2px solid rgba(191, 67, 66, 0.24);
  border-color: var(--auth-red);
}

a {
  margin-top: 2px;
  color: var(--auth-red);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.legal-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #775858;
  font-size: 0.84rem;
}

.legal-links a {
  margin-top: 0;
  font-weight: 700;
  color: #8f2f2f;
}

button,
.btn-submit {
  margin-top: 8px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: linear-gradient(145deg, #e74c3c, #c0392b);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 #962f2f;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover,
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #962f2f;
}

button:active,
.btn-submit:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #962f2f;
}

.message {
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.message.erreur {
  background: #ffe9e9;
  color: #9a2020;
  border: 1px solid #efabab;
}

.message.succes {
  background: #e8f8ee;
  color: #1d7035;
  border: 1px solid #9fd8b0;
}

#image {
  flex: 1;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 20px clamp(10px, 1.8vw, 24px) 20px 0;
}

.brand-panel {
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  padding: 24px 24px 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.2), rgba(255, 244, 223, 0.22));
  color: var(--auth-cream);
  text-align: center;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
}

#image img {
  width: min(310px, 100%);
  height: auto;
  display: block;
  margin: 0 auto;
}

#image h2 {
  margin: 0 0 10px;
  font-family: "Pacifico", cursive;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: #fff3d8;
}

#image p {
  margin: 0;
  line-height: 1.5;
  font-weight: 700;
}

@media (max-width: 980px) {
  body {
    flex-direction: column;
    padding: 18px 12px;
    gap: 14px;
  }

  #formulaire {
    width: min(650px, 96%);
    margin: 0;
  }

  #image {
    width: min(650px, 96%);
    padding: 0;
  }
}

@media (max-width: 560px) {
  #formulaire {
    padding: 22px 16px;
    border-radius: 16px;
  }

  #image h2 {
    margin-top: 10px;
  }
}
