/* ============================================================
   GENZO TITAN MEMBERSHIP — AUTH UI v2.0
   File: assets/css/gm-auth.css
   Screens: Login / Register / Forgot Password / Reset
   - Full-width dark night background
   - Centered auth panel
   - Password eye icon (SVG, no emoji box)
   - Password strength bar
   ============================================================ */

/* ------------------------------------------------------------
   GLOBAL AUTH WRAPPER (FULL-WIDTH NIGHT BACKGROUND)
   ------------------------------------------------------------ */
.gm-auth-page {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 120px); /* header + (olası) footer payı */
  padding: 72px 16px 96px;
  box-sizing: border-box;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  /* Gece siyahı + koyu mavi karışık arka plan */
  background:
    radial-gradient(circle at top center, rgba(24, 63, 122, 0.35), transparent 60%),
    radial-gradient(circle at bottom center, rgba(255, 152, 60, 0.22), transparent 65%),
    linear-gradient(135deg, #020308 0%, #050814 45%, #040308 100%);
}

/* Hafif glow efekti, tüm sayfayı kapsar */
.gm-auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 176, 72, 0.15), transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(255, 102, 51, 0.12), transparent 60%);
  opacity: 0.9;
  z-index: 0;
}

/* İçerik z-index fix */
.gm-auth-page.gm-app,
.gm-auth-page > * {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------
   CENTER LAYOUT (DESKTOP)
   ------------------------------------------------------------ */
@media (min-width: 769px) {
  .gm-auth-page {
    padding-top: 96px;
    padding-bottom: 120px;
  }

  .gm-auth-page > form,
  .gm-auth-page > .gm-auth-card,
  .gm-auth-page > .gm-auth-box,
  .gm-auth-page > div {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ------------------------------------------------------------
   AUTH PANEL / CARD (INNER BOX)
   ------------------------------------------------------------ */
.gm-auth-card,
.gm-auth-box,
.gm-auth-shell,
.gm-auth-page form.gm-auth-form {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 34px 32px 28px;
  border-radius: 24px;
  box-sizing: border-box;

  background:
    radial-gradient(circle at top left, rgba(255, 176, 72, 0.25), transparent 65%),
    radial-gradient(circle at bottom right, rgba(255, 110, 48, 0.21), transparent 70%),
    #050509;
  box-shadow:
    0 0 0 1px rgba(255, 176, 72, 0.28),
    0 22px 70px rgba(0, 0, 0, 0.94);
}

/* Dış halo */
.gm-auth-card::before,
.gm-auth-box::before,
.gm-auth-shell::before,
.gm-auth-page form.gm-auth-form::before {
  content: "";
  position: absolute;
  inset: -14px -18px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top center, rgba(255, 170, 70, 0.18), transparent 70%),
    radial-gradient(circle at bottom center, rgba(255, 110, 40, 0.16), transparent 65%);
  opacity: 0.85;
  z-index: -1;
}

/* ------------------------------------------------------------
   TITLES
   ------------------------------------------------------------ */
.gm-auth-title,
.gm-auth-card h1,
.gm-auth-card h2,
.gm-auth-box h1,
.gm-auth-box h2,
.gm-auth-page form.gm-auth-form > h1,
.gm-auth-page form.gm-auth-form > h2 {
  margin: 0 0 22px;
  text-align: center;
  font-size: 26px;
  line-height: 1.2;
  color: #ffb347;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.gm-auth-subtitle {
  margin: -10px 0 20px;
  font-size: 13px;
  color: #e7ded1;
  opacity: 0.76;
  text-align: center;
}

/* ------------------------------------------------------------
   FORM FIELDS
   ------------------------------------------------------------ */
.gm-auth-field {
  margin-bottom: 18px;
}

.gm-auth-page label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #f3ece2;
}

/* Tüm text / email / password / number / date input’lar */
.gm-auth-page input[type="text"],
.gm-auth-page input[type="email"],
.gm-auth-page input[type="password"],
.gm-auth-page input[type="number"],
.gm-auth-page input[type="date"] {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(2, 2, 5, 0.78);
  color: #f9f9f9;
  font-size: 13px;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.gm-auth-page input[type="text"]::placeholder,
.gm-auth-page input[type="email"]::placeholder,
.gm-auth-page input[type="password"]::placeholder,
.gm-auth-page input[type="number"]::placeholder,
.gm-auth-page input[type="date"]::placeholder {
  color: #a9a099;
  opacity: 0.9;
}

.gm-auth-page input[type="text"]:focus,
.gm-auth-page input[type="email"]:focus,
.gm-auth-page input[type="password"]:focus,
.gm-auth-page input[type="number"]:focus,
.gm-auth-page input[type="date"]:focus {
  border-color: rgba(255, 176, 72, 0.95);
  box-shadow: 0 0 0 1px rgba(255, 176, 72, 0.75);
  background: rgba(6, 6, 12, 0.96);
}

/* Doğum tarihi gibi date input’larının yazısı */
.gm-auth-page input[type="date"] {
  color-scheme: dark;
}

/* ------------------------------------------------------------
   PASSWORD WRAPPER + EYE TOGGLE
   ------------------------------------------------------------ */
.gm-auth-pass-wrap,
.gm-auth-password-wrap,
.gm-auth-field-password,
.gm-auth-page .gm-pass-wrap {
  position: relative;
}

/* Toggle butonu her ihtimale karşı yakala */
.gm-auth-page .gm-pass-toggle,
.gm-auth-page [data-gm-pass-toggle],
.gm-auth-page .gm-auth-eye,
.gm-auth-page button[class*="eye"],
.gm-auth-page button[class*="pass-toggle"] {
  position: absolute;
  right: -10px;          /* dairenin içinde biraz daha sağa dayan */
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 176, 72, 0.9);
  background: radial-gradient(circle at top, rgba(255, 176, 72, 0.3), rgba(26, 18, 14, 0.98));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 176, 72, 0.7);
  outline: none;
  color: transparent;
  font-size: 0;          /* emoji / karakter görünmesin, sadece SVG */
}

/* SVG göz ikonu (data URI) */
.gm-auth-page .gm-pass-toggle::before,
.gm-auth-page [data-gm-pass-toggle]::before,
.gm-auth-page .gm-auth-eye::before,
.gm-auth-page button[class*="eye"]::before,
.gm-auth-page button[class*="pass-toggle"]::before {
  content: "";
  width: 16px;
  height: 16px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  background-image: url("data:image/svg+xml,%3Csvg fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath stroke='%23FFEAD0' stroke-width='1.6' d='M2.5 12s2.7-5.5 9.5-5.5S21.5 12 21.5 12s-2.7 5.5-9.5 5.5S2.5 12 2.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='3.4' stroke='%23FFEAD0' stroke-width='1.6'/%3E%3C/svg%3E");
}

.gm-auth-page .gm-pass-toggle:hover,
.gm-auth-page [data-gm-pass-toggle]:hover,
.gm-auth-page .gm-auth-eye:hover,
.gm-auth-page button[class*="eye"]:hover,
.gm-auth-page button[class*="pass-toggle"]:hover {
  box-shadow: 0 0 18px rgba(255, 196, 104, 1);
}

/* Göz butonu için sağ boşluk */
.gm-auth-page input[type="password"] {
  padding-right: 56px;
}

/* ------------------------------------------------------------
   PASSWORD STRENGTH METER
   ------------------------------------------------------------ */
.gm-pass-strength-wrap,
.gm-auth-strength-wrap {
  margin: 8px 0 10px;
}

.gm-pass-strength-label,
.gm-auth-strength-label {
  font-size: 11px;
  color: #f2e4d6;
  opacity: 0.85;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.gm-pass-strength-label span:last-child,
.gm-auth-strength-label span:last-child {
  font-weight: 600;
}

.gm-pass-strength-bar,
.gm-auth-strength-bar {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.gm-pass-strength-bar-fill,
.gm-auth-strength-bar-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff4b4b 0%, #ffb347 50%, #41ffa4 100%);
  box-shadow: 0 0 12px rgba(255, 176, 72, 0.8);
  transition: width 0.22s ease-out;
}

/* ------------------------------------------------------------
   CHECKBOX ROWS (Kullanım şartları / Gizlilik)
   ------------------------------------------------------------ */
.gm-auth-check-row {
  margin: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #f1e7db;
}

.gm-auth-check-row input[type="checkbox"] {
  margin-top: 2px;
}

/* ------------------------------------------------------------
   PRIMARY BUTTON
   ------------------------------------------------------------ */
.gm-auth-submit,
.gm-auth-page button[type="submit"],
.gm-auth-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
  padding: 11px 18px;
  border-radius: 999px;
  border: none;
  background: radial-gradient(circle at top, #ffb347, #ff6b2b);
  color: #1b0f07;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 0 22px rgba(255, 160, 70, 0.95),
    0 14px 34px rgba(0, 0, 0, 0.9);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease;
}

.gm-auth-submit:hover,
.gm-auth-page button[type="submit"]:hover,
.gm-auth-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 0 26px rgba(255, 188, 108, 1),
    0 18px 40px rgba(0, 0, 0, 0.96);
}

.gm-auth-submit:disabled,
.gm-auth-page button[type="submit"]:disabled,
.gm-auth-btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

/* ------------------------------------------------------------
   FOOTER LINKS (Şifremi Unuttum / Giriş Yap / Hesap Oluştur)
   ------------------------------------------------------------ */
.gm-auth-links,
.gm-auth-footer-links {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #f0e6dc;
}

.gm-auth-links a,
.gm-auth-footer-links a {
  color: #ffb347;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 179, 71, 0.75);
}

.gm-auth-links a:hover,
.gm-auth-footer-links a:hover {
  border-bottom-style: solid;
}

/* ------------------------------------------------------------
   ALERT / ERROR BOXES
   ------------------------------------------------------------ */
.gm-auth-alert {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.gm-auth-alert-error {
  background: rgba(130, 23, 31, 0.93);
  border: 1px solid rgba(255, 95, 110, 0.96);
  color: #ffe5e9;
}

.gm-auth-alert-success {
  background: rgba(12, 90, 50, 0.94);
  border: 1px solid rgba(90, 230, 150, 0.96);
  color: #e7fff2;
}

/* ------------------------------------------------------------
   reCAPTCHA WRAPPER
   ------------------------------------------------------------ */
.gm-auth-recaptcha {
  margin-top: 16px;
  margin-bottom: 8px;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .gm-auth-page {
    min-height: calc(100vh - 100px);
    padding: 40px 12px 70px;
    align-items: flex-start;
  }

  .gm-auth-card,
  .gm-auth-box,
  .gm-auth-shell,
  .gm-auth-page form.gm-auth-form {
    max-width: 100%;
    padding: 26px 20px 22px;
    border-radius: 20px;
  }

  .gm-auth-card::before,
  .gm-auth-box::before,
  .gm-auth-shell::before,
  .gm-auth-page form.gm-auth-form::before {
    inset: -10px;
    border-radius: 26px;
  }

  .gm-auth-title,
  .gm-auth-card h1,
  .gm-auth-card h2 {
    font-size: 22px;
    letter-spacing: 0.1em;
  }
}
