/* ==================================================
   BASE GLOBAL STYLES (base.css)
================================================== */

/* Reset & box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Full-height + dark background */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #111827;   /* ← fond sombre global */
  color: #eaeaea;        /* texte clair par défaut */
  font-family: var(--font, sans-serif);
  line-height: 1.5;
}

/* Utility containers */
.page-wrapper,
.corps {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent-hover);
}

/* Buttons */
button,
.btn,
.cta-btn {
  cursor: pointer;
  transition: background 0.2s ease;
}
button:focus,
.btn:focus,
.cta-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(95, 251, 241, 0.5);
}

/* Form elements default focus */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(95, 251, 241, 0.5);
}

/* ==================================================
   LOGIN FORM STYLES
================================================== */

/* Card wrapper */
.loginCard,
#connexionGo {
  background-color: #1f202a;    /* Fond de la carte */
  margin: 40px auto;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  max-width: 400px;
  font-family: 'Roboto', sans-serif;
  color: #eaeaea;
}

/* Input fields */
#connexionGo .connectForm input.form-control {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  background-color: #2c2c34;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  color: #f0f0f0;
  transition: background 0.2s ease;
}
#connexionGo .connectForm input.form-control::placeholder {
  color: #888888;
}

/* Input focus */
#connexionGo .connectForm input.form-control:focus {
  background-color: #33343a;
  box-shadow: 0 0 0 3px rgba(95, 251, 241, 0.5);
}

/* Submit button */
#connexionGo .btn-success {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #9cfff0;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  color: #1f202a;
  transition: background-color 0.3s ease;
}
#connexionGo .btn-success:hover {
  background-color: #76ffee;
}

/* Loader */
#connexionGo #loaderConnexion {
  text-align: center;
  margin-top: 10px;
}
#connexionGo #loaderConnexion img {
  width: 32px;
  height: 32px;
}

/* Error message */
#connexionGo .erreurConnexion {
  margin-top: 15px;
  font-size: 14px;
  color: #ff6b6b;
  text-align: center;
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .loginCard,
  #connexionGo {
    margin: 20px;
    padding: 20px 10px;
  }
  #connexionGo .btn-success {
    font-size: 14px;
    padding: 10px;
  }
}
