@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@400;700&700&display=swap');

/* ==========================================================================
   1. VARIABLES GLOBALES
   ========================================================================== */

:root {
  --primary-bg-color: #1c2330;
  --header-bg-color: #111111;
  --color-gris: #3a3b47;
  --color-gris-blanc: #95969d;
  --color-gris-noir: #33343C;
  --border-color-nav: #9E9E9E;
  --white-color: #ffffff;
  --blue-color: #1257D5;
  --light-green: #30E64B;
  --footer-color: #1C1818;
}

/* ==========================================================================
   RESET DE BASE
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  min-height: 100vh;
}

/* ==========================================================================
   PAGE DE CONNEXION / INSCRIPTION
   ========================================================================== */

.login-bg {
  min-height: 100vh;
  background-color: #1a2639;
  font-family: 'Inter', sans-serif;
}

.login-card {
  width: 100%;
  max-width: 450px;
  padding: 2rem;
  background-color: #3e414d;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.logo-text {
  color: #ffffff;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 30px;
}

.dot {
  color: #3b82f6;
}

.subtitle {
  color: #ffffff;
  font-family: 'Merriweather', serif;
  font-size: 18px;
  margin-bottom: 30px;
  font-weight: 700;
}

.login-form {
  text-align: left;
}

.form-label {
  color: #a0a0a0;
  font-size: 14px;
}

.form-control {
  background-color: #94a3b8;
  border: 2px solid #3b82f6;
  color: #1e293b;
  padding: 12px;
}

.form-control:focus {
  background-color: #94a3b8;
  border-color: #60a5fa;
  color: #1e293b;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.form-check-input {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
  border: 2px solid #3b82f6;
}

.form-check-label {
  color: #888;
  font-size: 12px;
  cursor: pointer;
}

.forgot-password {
  color: #888;
  text-decoration: none;
  font-size: 12px;
}

.forgot-password:hover {
  text-decoration: underline;
}

.login-button {
  background-color: #1e3a2a;
  color: #4ade80;
  border: none;
  padding: 14px;
  font-weight: 600;
  font-size: 14px;
}

.login-button:hover {
  background-color: #2d5a40;
  color: #4ade80;
}

.auth-link {
  color: #a0a0a0;
  font-size: 14px;
}

.auth-link a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
}

.auth-link a:hover {
  text-decoration: underline;
}


/* ==========================================================================
   Captcha
   ========================================================================== */


.captcha-container {
  position:fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity:0;
  pointer-events: none;
}

.captcha{
  background-color: #fff;
  border: 10px solid var(--color-gris-blanc);
  width: 360px;
  height: 360px;
  margin: 0 auto;
  display: grid;
  overflow: hidden;
}

.captcha-card{
  background-color: var(--primary-bg-color)!important;
  width: 450px;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
}

.captcha-container.show{
  pointer-events: auto;
  opacity: 1;
}

#board{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 100%;
  height: 100%;
}

#board img {
   width: 180px;
  height: 180px;
  border: 1px solid var(--light-green);
  object-fit: cover;
  display: block;
  cursor: grab;
}

