/* Application du style global */
*,
*::after,
*::before {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  --darkBlue: #0a0f2b;
  --blue: #1e3a8a;
  --lightBlue: #3b82f6;
  --grey: #d1d5db;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.15);
}

body {
  font-family: sans-serif;
  line-height: 1.2;
  color: #444;
  font-weight: 400;
  padding: 2rem;
  background: linear-gradient(120deg, #69bcd7, #0079b2);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-direction: column;
  font-size: clamp(12px, 1vw, 14px); /* Min 14px, Max 24px, ajusté selon l'écran */
}

.logo-login {
  display: flex;
  justify-content: center; /* Centre horizontalement */
  align-items: center; /* Centre verticalement si besoin */
  padding: 20px 0; /* Espacement vertical */
}


img.header-logo {
  max-width: 100px;
  height: auto;
}



/* Formulaire */
.forms {
  width: 100%;
  max-width: 400px; /* largeur maximale sur desktop */
  padding: 3rem;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 8px 20px var(--shadow);
  position: relative;
  backface-visibility: hidden;
  transition: all 0.4s ease-in-out;
  z-index: 20;
}

/* Titre du formulaire */
.forms h2 {
  margin-bottom: 2rem;
  font-weight: 700;
  font-size: 3rem;
  letter-spacing: 1px;
  color: var(--darkBlue);
  text-align: center;
  position: relative;
}

.forms h2::before {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  width: 15%;
  height: 4px;
  background-color: var(--blue);
  transform: translateX(-50%);
  transition: width 0.3s ease-in-out;
}

/* Formulaire */
form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: 1.6rem;
  position: relative;
}

/* Style des champs de saisie */
.log__box {
  position: relative;
  width: 100%;
}

.input-style {
  width: 100%;
  border: 2px solid var(--grey);
  border-radius: 10px;
  outline: none;
  height: 5rem;
  padding: 1.5rem 4rem;
  font-size: 1.4rem;
  color: #333;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Focus sur les champs */
.log__box input:is(:focus, :valid) {
  border-bottom-color: var(--blue);
  font-size: 1.6rem;
  color: #444;
}

/* Style du bouton */
form button {
  width: 100%;
  height: 5rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--lightBlue));
  color: var(--white);
  border: none;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 10px var(--shadow);
  transition: transform 0.2s, box-shadow 0.3s;
}

button:active {
  background-color: var(--darkBlue);
  transform: translateY(-0.2rem);
  box-shadow: 0 0.2rem 0.5rem var(--shadow);
}

/* Style des liens */
.form__text {
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.form__text a {
  text-decoration: none;
  color: var(--blue);
  font-weight: 600;
}

@media (max-width: 480px) {
  .forms {
    padding: 2rem;
  }

  .forms h2 {
    font-size: 2.2rem;
  }

  .input-style,
  form button {
    height: 4.2rem;
    font-size: 1.3rem;
  }
}