/* css/auth.css */
@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #000;
  /* Noir en fond */
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.login-bg {
  position: relative;
  min-height: 1200px;
  overflow-y: auto;
  overflow-x: auto;
}

body.login-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/login_background.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: -1;
}

:root {
  --double-tab-offset: 439px;
  --double-tab-height: 640px;
  --bande-login-offset: calc(var(--double-tab-offset) + var(--double-tab-height));
  --presentation-top: calc(var(--double-tab-offset) + 181px);
  --presentation-offset-x: -407px;
  --cta-top: calc(var(--double-tab-offset) + 343px);
  --cta-offset-x: -14px;
  --login-top: calc(var(--double-tab-offset) + 195px);
  --login-offset-x: 381px;
}

/* Logo image sur la page de connexion */
.login-logo {
  width: 280px;
  max-width: 90%;
  margin: 20px auto;
  grid-column: 1 / -1;
}

.login-page {
  flex: 1;
  position: relative;
  padding-bottom: 240px;
}

.nav-menu-image {
  top: 0;
  left: 39%;
  transform: translateX(calc(-50% - 220px));
  width: auto;
  display: block;
  position: relative;
  height: auto;
  pointer-events: none;
}

.nav-menu-overlay {
  position: absolute;
  top: 3px;
  left: 27.3%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
  color: #12130e;
  z-index: 3;
  font-weight: 600;
  text-transform: uppercase;
  justify-content: space-around;
}

.nav-link {
  color: #12130e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #e0b04b;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown .has-menu {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.dropdown-menu {
  position: absolute;
  top: 140%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(21, 21, 21, 0.95);
  border: 1px solid #943b03;
  border-radius: 8px;
  padding: 10px 14px;
  display: none;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
  color: #f4d3a4;
}

.dropdown-link {
  color: #f4d3a4;
  text-decoration: none;
  display: block;
  padding: 4px 0;
}

.dropdown-link:hover,
.dropdown-link:focus-visible {
  color: #e0b04b;
}

.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown:hover .dropdown-menu {
  display: flex;
}

.login-content {
  position: relative;
}

.login-logo-overlay {
  position: absolute;
  top: clamp(120px, 13vh, 220px);
  left: 70%;
  transform: translateX(-50%);
  width: clamp(320px, 32vw, 455px);
  height: auto;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
}

.bande-login {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max(1200px, 100vw);
  height: auto;
  max-width: none;
  pointer-events: none;
  z-index: 0;
}

.bande-login--top {
  top: 0;
}

.bande-login--below-tab {
  top: var(--bande-login-offset);
}

.double-tab-overlay {
  position: absolute;
  top: var(--double-tab-offset);
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  max-width: none;
  pointer-events: none;
  z-index: 0;
}

.panel {
  border-radius: 10px;
  width: 100%;
  max-width: 370px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.panel.movable {
  position: absolute;
  cursor: move;
  resize: both;
  overflow: auto;
}

.panel.presentation {
  position: absolute;
  top: var(--presentation-top);
  left: 50%;
  transform: translate(calc(-50% + var(--presentation-offset-x)), 0);
  max-width: clamp(420px, 34vw, 432px);
}

.panel.cta {
  position: absolute;
  top: var(--cta-top);
  left: 50%;
  transform: translate(calc(-50% + var(--cta-offset-x)), 0);
}

#login-section {
  position: absolute;
  top: var(--login-top);
  left: 50%;
  transform: translate(calc(-50% + var(--login-offset-x)), 0);
}

#register-section {
  position: absolute;
  top: calc(var(--login-top) - 19px);
  left: 50%;
  transform: translate(calc(-50% + var(--login-offset-x)), 0);
}

#forgot-section {
  position: absolute;
  top: calc(var(--login-top) - 19px);
  left: 50%;
  transform: translate(calc(-50% + var(--login-offset-x)), 0);
}

.panel.presentation h2 {
  margin-bottom: 10px;
  color: #e0b04b;
}

.panel.presentation p {
  line-height: 1.6;
  margin: 50px 0 0;
}

.panel.presentation ul {
  list-style: none;
}

.panel.presentation li {
  margin: 8px 0;
}

.btn-play {
  background-color: transparent;
  color: #1e1e1e;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  font-family: 'MedievalSharp', 'Cinzel', serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.btn-play:hover {
  color: #f3d24d;
  text-shadow: 0 0 8px rgba(243, 210, 77, 0.8), 0 0 16px rgba(243, 210, 77, 0.6);
}

.statue-glow {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.statue-glow::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 200px;
  top: 0;
  background: radial-gradient(circle, rgba(0, 188, 255, 0.4) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.form input[type="email"],
.form input[type="password"],
.form input[type="text"] {
  width: 100%;
  padding: 8px;
  margin: 18px 0;
  border: 1px solid #943b03;
  border-radius: 5px;
  background-color: #3b3b3b;
  color: #f0f0f0;
}

#register-section .form input[type="email"],
#register-section .form input[type="password"],
#register-section .form input[type="text"] {
  margin: 12px 0;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 6px;
}

.form label.remember-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.link-button {
  background: none;
  border: none;
  color: #e0b04b;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  padding: 0;
}

.link-button:hover {
  color: #f3d24d;
}

.form label {
  display: block;
  margin: 10px 0;
  font-size: 0.9rem;
}

.btn-submit {
  background-color: #8b0000;
  color: #f0f0f0;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
}

.btn-submit:hover {
  opacity: 0.9;
}

.btn-register {
  margin-top: 15px;
  background-color: #444;
  color: #e0b04b;
  border: none;
  padding: 8px;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-register:hover {
  opacity: 0.9;
}

.forgot-instruction {
  margin-top: 0;
  margin-bottom: 14px;
  line-height: 1.5;
}

.error-msg {
  color: #ff8c8c;
  margin: 6px 0 0;
  font-size: 0.9rem;
}

.success-msg {
  color: #8ee29b;
  margin: 6px 0 0;
  font-size: 0.9rem;
}

.input-error {
  border-color: #ff8c8c;
  animation: shake 0.35s ease;
}

@keyframes shake {

  10%,
  90% {
    transform: translateX(-1px);
  }

  20%,
  80% {
    transform: translateX(2px);
  }

  30%,
  50%,
  70% {
    transform: translateX(-4px);
  }

  40%,
  60% {
    transform: translateX(4px);
  }
}

.info-container {
  max-width: 900px;
  margin: 60px auto;
  padding: 30px;
  background: rgba(44, 44, 44, 0.85);
  border: 1px solid #4a4a4a;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.info-container h1 {
  margin-bottom: 12px;
  color: #e0b04b;
  text-align: center;
}

.info-container p {
  line-height: 1.6;
  margin-bottom: 16px;
}

.info-section {
  margin-top: 24px;
}

.info-section h2 {
  margin-bottom: 8px;
  color: #f5d48a;
}

.info-section ul {
  padding-left: 20px;
  line-height: 1.6;
}

.info-section li {
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  body.login-bg {
    overflow-x: auto;
  }
}

/* Validation Popup */
.validation-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.validation-content {
  background: rgba(21, 21, 21, 0.95);
  border: 2px solid #943b03;
  border-radius: 10px;
  padding: 30px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 20px rgba(148, 59, 3, 0.5);
  color: #f0f0f0;
}

.validation-content h2 {
  color: #e0b04b;
  margin-bottom: 15px;
  font-family: 'MedievalSharp', serif;
}

.validation-content p {
  margin-bottom: 20px;
  line-height: 1.5;
}

.validation-content button {
  width: auto;
  padding: 8px 20px;
  min-width: 120px;
}