/*
 * Connexion / inscription - polish LOGUETOWN.
 */

.auth-page-container,
.modern-auth-container {
  min-height: calc(100svh - var(--gl-nav-h, 76px));
  padding: calc(var(--gl-nav-h, 76px) + 3rem) 1rem 4rem;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 10%, rgba(212, 160, 23, 0.10), transparent 30rem),
    radial-gradient(circle at 84% 22%, rgba(192, 57, 43, 0.06), transparent 28rem),
    linear-gradient(180deg, #050a1a 0%, #0a1424 48%, #050a1a 100%);
  color: #e8e0d0;
  font-family: Rajdhani, system-ui, sans-serif;
}

[data-theme="light"] .auth-page-container,
[data-theme="light"] .modern-auth-container {
  background:
    radial-gradient(circle at 18% 10%, rgba(168, 111, 18, 0.12), transparent 30rem),
    radial-gradient(circle at 84% 22%, rgba(192, 57, 43, 0.04), transparent 28rem),
    linear-gradient(180deg, #f5efe3 0%, #fffaf0 48%, #f5efe3 100%);
  color: #17202a;
}

.auth-card {
  width: min(440px, 100%);
  padding: 1.6rem;
  background:
    linear-gradient(rgba(212, 160, 23, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 160, 23, 0.025) 1px, transparent 1px),
    rgba(8, 18, 36, 0.90);
  background-size: 34px 34px, 34px 34px, 100% 100%;
  border: 1px solid rgba(212, 160, 23, 0.22);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
}

.auth-brand-logo {
  display: flex;
  justify-content: center;
  margin: 0 0 1.15rem;
}

[data-theme="light"] .auth-card {
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 0 22px 60px rgba(23, 32, 42, 0.10);
}

.auth-card-title,
.auth-header h1 {
  margin: 0;
  color: transparent;
  background: linear-gradient(135deg, #fff8e1 0%, #f0c842 30%, #d4a017 58%, #fff8e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: "Cinzel Decorative", Cinzel, serif;
  font-size: clamp(2.5rem, 8vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

[data-theme="light"] .auth-card-title,
[data-theme="light"] .auth-header h1 {
  background: linear-gradient(135deg, #27313c 0%, #a86f12 48%, #17202a 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.auth-card-subtitle,
.auth-header p,
.auth-footer-link,
.auth-footer {
  color: rgba(232, 224, 208, 0.68);
}

[data-theme="light"] .auth-card-subtitle,
[data-theme="light"] .auth-header p,
[data-theme="light"] .auth-footer-link,
[data-theme="light"] .auth-footer {
  color: rgba(23, 32, 42, 0.68);
}

.auth-form,
.modern-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.auth-form label,
.modern-form label {
  color: #d4a017;
  font-family: Cinzel, serif;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-form input,
.modern-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(212, 160, 23, 0.20);
  border-radius: 8px;
  background: rgba(5, 10, 26, 0.42);
  color: inherit;
  font-family: Rajdhani, system-ui, sans-serif;
  font-size: 1rem;
}

[data-theme="light"] .auth-form input,
[data-theme="light"] .modern-form input {
  background: rgba(255, 255, 255, 0.78);
}

.btn-primary,
.modern-btn.primary {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #f0c842, #b8860b);
  color: #050a1a;
  font-family: Cinzel, serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  clip-path: polygon(7px 0%, 100% 0%, calc(100% - 7px) 100%, 0% 100%);
}

.auth-footer-link a,
.auth-footer a {
  color: #d4a017;
}
.auth-hp {
  height: 0 !important;
  left: -9999px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  width: 0 !important;
}

@media (max-width: 768px) {
  .auth-page-container,
  .modern-auth-container {
    padding: calc(var(--gl-nav-h, 76px) + 1.5rem) 12px calc(3rem + env(safe-area-inset-bottom, 0px));
  }
  .auth-card {
    width: 100%;
    max-width: 100%;
    padding: 1.25rem;
    box-sizing: border-box;
  }
  .auth-card-title,
  .auth-header h1 {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }
  .auth-form input,
  .auth-form button,
  .auth-form .btn {
    width: 100%;
    min-height: 44px;
    font-size: 16px;
    box-sizing: border-box;
  }
}

@media (max-width: 360px) {
  .auth-page-container,
  .modern-auth-container {
    padding-left: 8px;
    padding-right: 8px;
  }
}
