/* --- Styles généraux --- */

:root {
  /* Colors */
  --clear-blue: #8ecae6ff;
  --clear-blue-card: rgb(142, 202, 230, 0.3);
  --ra-blue: #008595ff; /* Bleu de la charte Redon Agglomération*/
  --ra-blue-card: rgb(0, 133, 149, 0.2);
  --dark-blue: rgb(2, 104, 116);
  --clear-orange: #ffb703ff;
  --clear-orange-card: rgb(255, 183, 3, 0.3);
  --ra-orange: #f7a823ff; /* Orange de la charte Redon Agglomération*/
  --dark-orange: #fb8500ff;
  --ra-green: #5ab47b;
  --ra-dark-green: rgb(41, 121, 70);
  --ra-green-transp: rgb(90, 180, 123, 0.05);
  --ra-pink: #da1e7e;
  --ra-dark-pink: rgb(153, 0, 79);
  --ra-pink-transp: rgb(218, 30, 126, 0.05);
  --ra-electric-blue: #2f4f9e;
  --ra-electric-blue-transp: rgb(47, 79, 158, 0.1);
  --grey: #373737;
  --text: rgb(71 85 105);
  --success: #12c99b;
  --error: #e41d1d;
  --warning: #f2a600;
  /* Font */
  --font: Verdana, Arial;
}

/* --- Styles communs --- */

html,
body {
  font-family: var(--font);
  font-size: 100%;
  text-size-adjust: 100%;
}

.tab-topnav {
  display: none;
}

body {
  background: #edf1f152;
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.tab-main-container {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
}

.tab-container-connexion {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3%;
  justify-items: center;
  margin: 5% 0%;
  max-width: 500px;
  width: 100%;
}

.tab-card {
  background-color: white;
  box-shadow: 0px 1px 10px var(--ra-blue-card);
  border-radius: 10px;
  padding: 2%;
  text-align: center;
  justify-items: center;
}

.tab-card {
  width: 80%;
  padding: 0%;
}

.tab-card label {
  width: auto;
}

.tab-form-connexion input {
  border: solid 1px var(--dark-blue);
}

.tab-form-connexion legend {
  margin-bottom: 5%;
}

form {
  border-radius: 10px;
  width: 85%;
  margin: 3%;
}

form input,
form select,
form label {
  width: 80%;
  margin: 1%;
}

form label {
  font-size: 90%;
  color: var(--text);
}

form input,
form select {
  border-radius: 5px;
}

form input {
  height: 1.5rem;
}

fieldset {
  border: none;
  display: grid;
  justify-items: center;
}

legend {
  color: var(--dark-blue);
  font-size: 131%;
  font-weight: bold;
}

#tab-button-connexion {
  background-color: var(--dark-blue);
  border-color: var(--dark-blue);
  color: white;
  font-size: 110%;
  border-radius: 35px;
  height: 2.5rem;
  width: 60%;
  margin: 10%;
}

#tab-button-connexion:hover {
  background-color: white;
  color: var(--dark-blue);
}

footer {
  background-color: var(--dark-blue);
  position: relative;
  overflow: hidden;
  padding: 2%;
  display: grid;
  justify-items: center;
}

.tab-logo {
  position: relative;
  z-index: 2;
  width: 13%;
}

.tab-backgroung-img {
  position: absolute;
  left: 44%;
  bottom: -474%;
  width: 70%;
  height: auto;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

/* --- Messages d'alertes --- */

.tab-alert {
  border-radius: 12px;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 6fr 1fr;
  justify-items: center;
  margin-top: 1%;
}
.tab-alert-warning {
  background: var(--warning);
}
.tab-alert-success {
  background: var(--success);
}
.tab-alert-error {
  background: var(--error);
}

.tab-alert-message {
  background-color: rgb(255, 255, 255, 0.8);
  border-radius: 15px;
  width: 100%;
}

.tab-alert-icon {
  width: 30px;
  height: 30px;
  background-color: white;
  border-radius: 35px;
  display: grid;
  justify-items: center;
  align-items: center;
}

/* Mobiles */
/* Tailles d'écran =< 767px : mobiles + tablette (portrait) */
@media only screen and (max-width: 767px) {
  .tab-alert {
    padding: 1%;
    width: 95%;
  }

  .tab-alert-message {
    margin: 2%;
  }

  .tab-alert p {
    margin: 4%;
  }

  footer {
    margin-top: 10%;
  }

  .tab-logo {
    width: 49%;
  }

  .tab-backgroung-img {
    left: -40%;
    bottom: -355%;
    width: 179%;
  }
}

/* Tablettes ou Laptops */
/* Dispositifs en mode paysage (entre 768px et 1370px de largeur) */
@media only screen and (min-width: 768px) and (max-width: 1370px) and (orientation: landscape) {
  .tab-alert {
    padding: 0.5%;
    width: 80%;
  }

  .tab-alert-message {
    margin: 0%;
  }

  .tab-alert p {
    margin: 2%;
  }
}

/* Pour les PC ou les écrans de PC portable (larges de plus de 1371px) */
@media only screen and (min-width: 1371px) {
  .tab-alert {
    width: 70%;
  }

  .tab-alert-message {
    margin: 1%;
  }

  .tab-alert p {
    margin: 2%;
  }
}
