/* =====================================================================
   Giris / kayit / sifre sifirlama / giris dogrulama (auth.tpl)
   ee-ui "Dark castle" tasarimi. Ortak degerler, form alanlari ve
   dugmeler ee-ui.css'te; burada yalnizca bu sayfalarin yerlesimi var.
   Degisince page_assets.php'deki ee-auth.css surumunu artir.
   ===================================================================== */

body.ee-auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Masaustunde form sagda, gorsel solda; dar ekranda form ustte. */
.ee-auth {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--ee-container);
  margin: 0 auto;
  padding: 32px var(--ee-gutter) 40px;
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 24px;
}

/* ---------- Form karti ---------- */

.ee-auth__card {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 28px;
  background: var(--ee-surface);
  border: 1px solid var(--ee-line-ticker);
  box-shadow: var(--ee-shadow-panel);
}

.ee-auth__inner {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.ee-auth__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ee-auth__head-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Basliktaki ikon kutusu yalniz telefonda (asagida). */
.ee-auth__badge { display: none; }

.ee-auth__title {
  margin: 0;
  font-family: var(--ee-font-display);
  font-weight: 400;
  font-size: clamp(32px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: 0.3px;
  color: var(--ee-display);
  text-wrap: balance;
}

.ee-auth__sub {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ee-text-muted);
}

.ee-auth__sub strong {
  color: var(--ee-text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.ee-auth__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Tasarimda gonder dugmesi ustteki alandan biraz ayrik duruyor. */
.ee-auth__submit { margin-top: 6px; }

.ee-auth__switch {
  margin: 0;
  text-align: center;
  font-size: 16px;
  color: var(--ee-text-muted);
}

.ee-auth__switch a {
  color: var(--ee-accent);
  font-weight: 800;
  text-decoration: none;
}

/* ---------- Adim gostergesi ---------- */

.ee-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ee-progress__bars {
  display: flex;
  gap: 6px;
}

.ee-progress__bar {
  display: block;
  width: 34px;
  height: 6px;
  border-radius: 3px;
  background: var(--ee-input-line);
}

.ee-progress__bar.is-done { background: var(--ee-accent); }

.ee-progress__label {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ee-text-faint);
}

/* ---------- Gorsel panel ---------- */

.ee-auth__art {
  flex: 1.4 1 520px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 48vw, 680px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 32px;
  background: radial-gradient(120% 90% at 70% 15%, #1a2b4d 0%, #0f1830 48%, var(--ee-bg) 100%);
  border: 1px solid var(--ee-line-ticker);
}

.ee-auth__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 10% 16%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.2px 1.2px at 24% 40%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.7px 1.7px at 44% 10%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.1px 1.1px at 63% 24%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.6px 1.6px at 82% 9%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.2px 1.2px at 92% 38%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.4px 1.4px at 7% 66%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.3px 1.3px at 94% 74%, rgba(255, 255, 255, 0.45), transparent);
}

.ee-auth__glow {
  position: absolute;
  left: 12%;
  top: 14%;
  width: 76%;
  height: 70%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(126, 214, 132, 0.16), rgba(64, 150, 220, 0.07) 60%, rgba(10, 15, 28, 0) 100%);
}

/* Sifre sifirlamada isik altin tonunda. */
.ee-auth__art--gold .ee-auth__glow {
  background: radial-gradient(closest-side, rgba(255, 197, 61, 0.13), rgba(64, 150, 220, 0.07) 60%, rgba(10, 15, 28, 0) 100%);
}

.ee-auth__tags {
  position: relative;
  padding: 4px 0 0 4px;
}

.ee-auth__img {
  position: relative;
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  animation: ee-float-sm 7s ease-in-out infinite;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.45));
}

@keyframes ee-float-sm {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.ee-auth__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 480px;
}

.ee-auth__copy--wide {
  gap: 14px;
  max-width: 500px;
}

.ee-auth__art-title {
  margin: 0;
  font-family: var(--ee-font-display);
  font-weight: 400;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: 0.3px;
  color: var(--ee-display);
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}

.ee-auth__art-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ee-text-lead);
}

.ee-auth__perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--ee-text-lead);
  font-size: 15px;
  font-weight: 700;
}

.ee-auth__perks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ee-auth__perks svg { color: var(--ee-green); }

/* ---------- Telefon duzeni (991px ve alti) ---------- */
/* Kullanici (2026-11-07) eski tasarimin telefon duzenini istedi: baslik tek
   satir (logo + dil adi), gorsel kart yok, kartin basinda ikon kutusu,
   "Sifreni mi unuttun?" alanin altinda, "Ana sayfaya don" kartin altinda.
   Genis ekranda bunlar gizli; masaustu duzeni degismedi. */

.ee-lang--auth .ee-lang__name,
.ee-auth__forgot--narrow,
.ee-auth__back { display: none; }

@media (min-width: 992px) {
  .ee-auth { flex-wrap: nowrap; }
}

@media (max-width: 991.98px) {
  body.ee-auth-page { --ee-gutter: 16px; }

  /* Baslik: logo + dil secici tek satirda; uzun dil adi kisalir. */
  .ee-header--auth .ee-header__inner {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .ee-header--auth .ee-header__actions {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    min-width: 0;
  }

  .ee-header--auth .ee-nav__link--back { display: none; }
  .ee-header--auth .ee-lang { min-width: 0; }
  .ee-header--auth .ee-lang__btn { max-width: 100%; }
  .ee-lang--auth .ee-lang__code { display: none; }

  .ee-lang--auth .ee-lang__name {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ee-auth {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px var(--ee-gutter) 32px;
  }

  .ee-auth__art { display: none; }

  .ee-auth__card {
    flex: none;
    width: 100%;
    max-width: 520px;
    padding: 28px 20px;
    border-radius: 24px;
  }

  .ee-auth__inner { gap: 22px; }

  .ee-auth__head { gap: 14px; }
  .ee-auth__head-text { gap: 4px; }

  .ee-auth__badge {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--ee-raised);
    border: 1px solid var(--ee-line-badge);
    color: var(--ee-accent);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
  }

  .ee-auth__title { font-size: 26px; }
  .ee-auth__sub { font-size: 15px; }

  .ee-auth__forgot--wide { display: none; }

  .ee-auth__forgot--narrow {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 4px;
  }

  .ee-auth__back {
    display: flex;
    justify-content: center;
    margin: 0;
  }

  .ee-auth__back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    color: var(--ee-text-muted);
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
  }

  .ee-auth__back a:hover { color: var(--ee-accent); }
}

/* Kucuk telefonda (360 ve alti) logo biraz kuculur, dil adina yer kalir. */
@media (max-width: 374.98px) {
  .ee-header--auth .ee-brand__mark { width: 40px; height: 40px; }
  .ee-header--auth .ee-brand__name { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .ee-auth__img { animation: none; }
}
