/* Styles de base */
@import url('variable.css');
@font-face {
  font-family: 'anurati';
  src: url('../fonts/Anurati-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'oxanium';
  src: url('../fonts/Oxanium-VariableFont_wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.hp-field{
  position:absolute;
  left:-10000px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}


body.inscription-body {
  background-image: url(../img/auth_img/verhole.webp);
  background-position: center;
  background-size: cover;
  color: #e0e0e0; /* Texte légèrement gris pour un meilleur contraste */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.inscription-main, .connexion-main {
  background: #2a2c2d; /* Fond plus sombre pour le conteneur principal */
  padding: 2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 400px;
  clip-path: polygon(
    calc(100% - 30px) 0, 100% 30px, 100% 100%, 31px 100%, 0 calc(100% - 30px), 0 0);
}

.mdp-rules{
  font-size: 10px;
  color: var(--orange)
}

h2 {
  text-align: center;
  color: #FFA500;
  margin-bottom: 1rem;
  font-family: 'anurati', sans-serif;
  letter-spacing: 5px;
}

label {
  font-family: 'oxanium', sans-serif;
  display: block;
  margin-bottom: 2px;
  color: #FFA500;
}

p, a{
  font-family: 'oxanium', sans-serif;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 95%;
  padding: 0.5rem;
  margin-bottom: 5px;
  border: 1px solid #555;
  border-radius: 4px;
  background: #3a3b3c;
  color: #e0e0e0;
}

input[type="checkbox"] {
  margin-right: 0.5rem;
}

.terms {
  margin-bottom: 1rem;
}

.terms a{
  color:#FFA500;
}

button[type="submit"],
button.bouton-connexion {
  width: 100%;
  padding: 0.75rem;
  border: none;
  background: #FFA500; 
  color: #1d1f20;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  clip-path: polygon(
    calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px), 0 0);
}

button[type="submit"]:hover,
button.bouton-connexion:hover {
  background: #00cc7a; /* Couleur verte néon plus foncée */
}

.flash-message {
  padding: 0.5rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: center;
}

/* Erreur */
.flash-message.error {
  background: #ff4d4d;
  color: #1d1f20;
}

/* Succès */
.flash-message.success {
  background: #00cc7a;
  color: #1d1f20;
}

a.connexion,
a[href="{{ url_for('home') }}"] {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: #FFA500; /* Couleur verte néon */
  text-decoration: none;
}

a.connexion:hover,
a[href="{{ url_for('home') }}"]:hover {
  text-decoration: underline;
}

.connexion-main a{
  color: #FFA500;
}

.connexion-main .password{
  margin-bottom: 30px;
}
