/* =================================================
   1. BASE & STRUCTURE
================================================= */
* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-color: black;
  margin: 0;
  padding: 0 16px;
}

/* =================================================
   2. LOGO
================================================= */
.logo {
  width: 150px;
  margin-top: 20px;
  margin-bottom: 40px;
}

/* =================================================
   3. FORMULAIRE D'INSCRIPTION
================================================= */
.create_account {
  width: 100%;
  max-width: 700px;
  background: #141313;
  border-radius: 10px;
  color: #e3e3e3;
  padding: 30px 20px;
}

/* =================================================
   4. CHAMPS DE TEXTE
================================================= */
.username,
.display_name,
.email,
.password,
.confirm_password {
  margin-left: 0;
  margin-bottom: 28px;
  padding: 0 10px;
}

.username h1,
.display_name h1,
.email h1,
.password h1,
.confirm_password h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.username input[type="text"],
.display_name input[type="text"],
.email input[type="email"],
.password input[type="password"],
.confirm_password input[type="password"] {
  width: 100%;
  height: 45px;
  padding: 10px 12px;
  font-size: 16px;
  border-radius: 10px;
  transition: border-color 0.3s;
  border: 1px solid #333;
}

.username input[type="text"]:focus,
.display_name input[type="text"]:focus,
.email input[type="email"]:focus,
.password input[type="password"]:focus,
.confirm_password input[type="password"]:focus {
  border-color: #00CFF6;
  outline: none;
}

/* =================================================
   5. BOUTON D'INSCRIPTION
================================================= */
.create_account button {
  display: block;
  margin: 0 10px 10px auto;
  width: auto;
  min-width: 130px;
  padding: 12px 24px;
  background-color: #D6BE91;
  color: black;
  font-size: 16px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.create_account button:hover {
  opacity: 0.9;
}

/* =================================================
   6. LIEN VERS CONNEXION
================================================= */
.login_page {
  text-align: center;
  margin-top: 20px;
}

.login_page a {
  font-size: 18px;
  color: white;
  text-decoration: none;
}

.login_page a:hover {
  color: #00CFF6;
}

/* =================================================
   7. RESPONSIVE - TABLETTE
================================================= */
@media (max-width: 768px) {
  .logo {
    width: 120px;
    margin-bottom: 28px;
  }

  .username h1,
  .display_name h1,
  .email h1,
  .password h1,
  .confirm_password h1 {
    font-size: 20px;
  }

  .create_account button {
    width: calc(100% - 20px);
    margin: 0 10px 10px;
    text-align: center;
  }
}

/* =================================================
   8. RESPONSIVE - MOBILE
================================================= */
@media (max-width: 480px) {
  body {
    padding: 0 8px;
  }

  .logo {
    width: 100px;
    margin-top: 16px;
    margin-bottom: 20px;
  }

  .create_account {
    border-radius: 8px;
    padding: 20px 10px;
  }

  .username,
  .display_name,
  .email,
  .password,
  .confirm_password {
    padding: 0 6px;
    margin-bottom: 20px;
  }

  .username h1,
  .display_name h1,
  .email h1,
  .password h1,
  .confirm_password h1 {
    font-size: 18px;
  }

  .username input[type="text"],
  .display_name input[type="text"],
  .email input[type="email"],
  .password input[type="password"],
  .confirm_password input[type="password"] {
    height: 42px;
    font-size: 15px;
  }

  .login_page a {
    font-size: 15px;
  }
}