/*───────────────────────── Reset & Background ─────────────────────────*/
/* login.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  height: 100%;
  width: 100%;
  overflow: hidden;
  /* On pointe directement dans /static/images */
  background: #111827 url("/static/images/Symbole-PLVYOFF.870255049c3d.png") repeat;
  color: #ecf0f1;
}
/*───────────────────────── Navbar Invisible ───────────────────────────*/
.navbar-invisible {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: transparent !important;
  z-index: 1000;
}
.navbar-invisible .header img {
  height: 40px;
}

/*───────────────────────── Center Wrapper ────────────────────────────*/
.page-wrapper {
  position: absolute;
  top: 60px;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*───────────────────────── Floating Card ─────────────────────────────*/
.auth-container {
  background: rgba(39, 48, 67, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  width: 340px;
  max-height: calc(100vh - 80px);
  padding: 24px;
  overflow-y: auto;
}
.auth-container::-webkit-scrollbar {
  width: 6px;
}
.auth-container::-webkit-scrollbar-thumb {
  background: rgba(0, 214, 180, 0.6);
  border-radius: 3px;
}

.auth-container h2 {
  text-align: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

/*───────────────────────── Forms & Inputs ───────────────────────────*/
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: #bbb;
  margin-bottom: 4px;
}
.form-group input {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.95rem;
  background: transparent;
  color: #ecf0f1;
  border: 1px solid rgba(0, 214, 180, 0.5);
  border-radius: 4px;
}
.form-group input::placeholder {
  color: #777;
}
.form-group input:focus {
  outline: none;
  border-color: #00d6b4;
}

/*───────────────────────── Buttons & Links ─────────────────────────*/
.btn-primary {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
  background: #00d6b4;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover {
  background: #00caa5;
}

.auth-footer {
  text-align: center;
  margin: 12px 0;
}
.terms-link {
  color: #00d6b4 !important;
  text-decoration: none !important;
  font-weight: bold;
}
.terms-link:hover,
.terms-link:focus {
  color: #00d6b4 !important;
  text-decoration: none !important;
}
.text-link {
  display: inline-block;
  font-size: 0.85rem;
  color: #00d6b4;
  text-decoration: none;
  margin-bottom: 8px;
}
.btn-secondary {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.95rem;
  color: #ecf0f1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  text-decoration: none;
  margin-top: 4px;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.separator {
  display: flex;
  align-items: center;
  margin: 16px 0;
  color: #bbb;
  font-size: 0.85rem;
}
.separator::before,
.separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}
.separator span {
  padding: 0 0.5em;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #00d6b4;
  background: #12121a;
  border: 1px solid #00d6b4;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-google img {
  margin-right: 8px;
  width: 18px;
  height: 18px;
}
.btn-google:hover {
  background: rgba(18, 18, 26, 0.8);
}

/* Disable native browser tooltip fallback text */
#submit-btn[disabled] {
  background: #4a6070 !important;
  cursor: not-allowed;
}
.messages {
  margin-bottom: 14px;
}
.alert {
  border: 1px solid #b3c2cc;
  border-radius: 6px;
  background: #22304a;
  color: #cfd8dc;
  font-size: 1rem;
  padding: 10px 0;
  margin: 16px auto 20px auto;
  text-align: center;
  max-width: 600px;
  font-weight: 400;
  box-shadow: none;
  letter-spacing: 0.01em;
}
.terms-minimalist {
  font-size: 13px;
  color: #00d6b4;
  text-align: left;
  margin-top: 18px;
  margin-bottom: 0;
  padding: 0;
  letter-spacing: 0.01em;
  background: none;
  border: none;
  box-shadow: none;
}
.password-criteria-list {
  list-style: none;
  margin: 8px 0 0 0;
  padding: 6px 10px;
  font-size: 11.5px;
  border: 1px solid #00d6b4;
  border-radius: 4px;
  background: rgba(23, 33, 51, 0.98);
  width: 100%;
  box-sizing: border-box;
  color: #b3c2cc;
  box-shadow: none;
}
.password-criteria-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0 0 2px 0;
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.1px;
}
.password-criteria-list .icon {
  width: 13px;
  display: inline-block;
  text-align: center;
  font-size: 13px;
}
.password-criteria-list .met {
  color: #00d6b4;
  font-weight: 600;
}
.password-criteria-list .not-met {
  color: #7a8a99;
}
.field-feedback {
  font-size: 11.5px;
  margin-top: 8px;
  margin-bottom: 2px;
  min-height: 15px;
  border-radius: 4px;
  padding: 1.5px 6px 1.5px 0;
  display: block;
  color: #00d6b4;
  background: transparent;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.field-feedback.unavailable {
  color: #ff4d4d;
}
.field-feedback.available {
  color: #00d6b4;
}
