/* --- Page signup --- */

.signup-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 20px;
}

body {
  background-image: url("/images/BodyAccueil.png");
  background-color: #000;
  background-size: auto 100vh;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  margin: 0;
  overflow-x: hidden;
}

.submit img {
  text-align: center;
  max-width: 100%;
  height: auto;
}

.signup-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 30px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.signup-card h1 {
  margin-bottom: 10px;
  font-size: 1.8rem;
  text-align: center;
}

.signup-card p {
  margin-bottom: 20px;
  color: #000000;
  font-size: 0.95rem;
  text-align: center;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup-form label {
  font-size: 0.9rem;
}

.signup-form input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #444;
  background: rgba(255, 255, 255, 0.72);
  color: #030303;
}

.signup-form input:focus {
  outline: none;
  border-color: #888;
}

.signup-form button {
  margin-top: 10px;
  padding: 12px;
  border-radius: 6px;
  border: none;
  background: #6b4cff;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.signup-form button:hover {
  background: #5438d1;
}

.signup-card-large {
  max-width: 520px;
}

.signup-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #080808;
}

.signup-checkbox input {
  width: auto;
}

.signup-form .form-error {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 500;
  text-align: center;

  background: rgba(145, 35, 35, 0.9);
  color: #fff;
  font-weight: bold;

  box-shadow: 0 0 8px rgba(145, 35, 35, 0.6);
}

.signup-form .form-error:empty {
  display: none;
}

/* RENVOI DU CODE */
.resend-code-link {
  display: block;
  width: fit-content;
  margin: 12px auto 0;
  padding: 8px 14px;
  border-radius: 8px;

  background: rgba(38, 128, 72, 0.85);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;

  box-shadow: 0 0 6px rgba(38, 128, 72, 0.5);
  transition: all 0.2s ease;
}

.resend-code-link[hidden] {
  display: none;
}

.resend-code-link:hover {
  background: rgba(38, 128, 72, 1);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(38, 128, 72, 0.7);
}

/* --- Responsive --- */

@media (max-width: 500px) {
  .signup-card {
    padding: 20px;
  }
}
