/**
 * AYZ HOME — Auth Sayfaları CSS (FAZ 6.5.4)
 * Login, Register, Forgot Password, Reset Password
 */

/* ── Sayfa Yapısı ─────────────────────────────────────────── */
.auth-page {
  display:    grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h, 68px) - var(--announce-h, 40px));
}

/* ── Sol: Görsel Panel ────────────────────────────────────── */
.auth-page__visual {
  position: relative;
  overflow: hidden;
}

.auth-page__visual-img {
  width:           100%;
  height:          100%;
  object-fit:      cover;
  object-position: center;
  display:         block;
}

.auth-page__visual-overlay {
  position:   absolute;
  inset:      0;
  background: linear-gradient(
    160deg,
    rgba(8,6,5,.72) 0%,
    rgba(8,6,5,.45) 55%,
    rgba(8,6,5,.20) 100%
  );
}

.auth-page__visual-content {
  position:       absolute;
  inset:          0;
  display:        flex;
  flex-direction: column;
  justify-content: space-between;
  padding:        clamp(32px, 5vw, 56px);
}

/* Logo (görsel panel içinde) */
.auth-page__logo {
  display:         inline-flex;
  align-items:     center;
  gap:             10px;
  text-decoration: none;
  color:           #fff;
}

.auth-page__logo-mark {
  width:           40px;
  height:          40px;
  background:      var(--color-accent, #c8956c);
  border-radius:   8px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-family:     var(--font-serif, 'Playfair Display', serif);
  font-size:       14px;
  font-weight:     700;
  color:           #fff;
  flex-shrink:     0;
}

.auth-page__logo-text {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size:   18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* Alıntı */
.auth-page__quote {
  margin: 0;
}

.auth-page__quote p {
  font-family:  var(--font-serif, 'Playfair Display', serif);
  font-size:    clamp(18px, 2.5vw, 26px);
  font-weight:  400;
  font-style:   italic;
  line-height:  1.4;
  color:        rgba(255,255,255,.9);
  margin:       0 0 24px;
}

/* Faydalar listesi */



/* ── Sağ: Form Panel ──────────────────────────────────────── */
.auth-page__form {
  display:         flex;
  align-items:     center;
  justify-content: center;
  padding:         clamp(32px, 5vw, 56px) clamp(24px, 5vw, 72px);
  background:      var(--color-bg, #fafaf9);
  overflow-y:      auto;
}

.auth-form {
  width:     100%;
  max-width: 420px;
}

/* Mobil logo (sadece mobilde görünür) */
.auth-form__mobile-logo {
  display:         none;
  align-items:     center;
  gap:             10px;
  text-decoration: none;
  color:           var(--color-dark, #1c1917);
  font-family:     var(--font-serif, 'Playfair Display', serif);
  font-size:       16px;
  font-weight:     700;
  margin-bottom:   32px;
}

/* Form başlık */
.auth-form__head { margin-bottom: 28px; }

.auth-form__eyebrow {
  display:        flex;
  align-items:    center;
  gap:            12px;
  font-size:      12px;
  font-weight:    700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color:          var(--color-accent, #c8956c);
  margin-bottom:  12px;
}

.auth-form__eyebrow-line {
  display:    block;
  width:      28px;
  height:     1px;
  background: var(--color-accent, #c8956c);
  flex-shrink: 0;
}

.auth-form__title {
  font-family:    var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size:      clamp(28px, 4vw, 36px);
  font-weight:    700;
  line-height:    1.15;
  letter-spacing: -0.5px;
  color:          var(--color-dark, #1c1917);
  margin:         0 0 10px;
}

.auth-form__sub {
  font-size:  14px;
  color:      var(--color-text-muted, #57534e);
  margin:     0;
}

.auth-form__sub a {
  color:           var(--color-accent, #c8956c);
  text-decoration: none;
  font-weight:     500;
  border-bottom:   1px solid transparent;
  transition:      border-color 0.2s;
}
.auth-form__sub a:hover { border-color: var(--color-accent, #c8956c); }

/* Flash mesajlar */
.auth-flash {
  display:       flex;
  align-items:   flex-start;
  gap:           8px;
  padding:       12px 16px;
  border-radius: 8px;
  font-size:     13px;
  line-height:   1.5;
  margin-bottom: 20px;
}

.auth-flash--error   { background: #fee2e2; color: #991b1b; }
.auth-flash--success { background: #d1fae5; color: #065f46; }
.auth-flash svg      { flex-shrink: 0; margin-top: 1px; }

/* Form gövdesi */
.auth-form__body {
  display:        flex;
  flex-direction: column;
  gap:            16px;
}

/* Alan satırı (yan yana) */
.auth-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap:     12px;
}

/* Input alanı */
.auth-field {
  display:        flex;
  flex-direction: column;
  gap:            6px;
}

.auth-field__label {
  font-size:   13px;
  font-weight: 600;
  color:       var(--color-dark, #1c1917);
}

.auth-field__label-row {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
}

.auth-field__forgot {
  font-size:       12px;
  color:           var(--color-accent, #c8956c);
  text-decoration: none;
  transition:      opacity 0.2s;
}
.auth-field__forgot:hover { opacity: 0.75; }

.auth-field__optional {
  font-size:   12px;
  font-weight: 400;
  color:       var(--color-text-muted, #57534e);
}

.auth-field__input {
  height:        48px;
  padding:       0 16px;
  border:        1.5px solid var(--color-border, #e7e5e4);
  border-radius: 8px;
  font-size:     14px;
  color:         var(--color-dark, #1c1917);
  background:    var(--color-surface, #fff);
  width:         100%;
  transition:    border-color 0.18s, box-shadow 0.18s;
  outline:       none;
  font-family:   inherit;
}

.auth-field__input::placeholder { color: var(--color-text-light, #a8a29e); }

.auth-field__input:focus {
  border-color: var(--color-dark, #1c1917);
  box-shadow:   0 0 0 3px rgba(28,25,23,0.07);
}

/* Input wrapper (şifre göster/gizle) */
.auth-field__input-wrap {
  position: relative;
}

.auth-field__input-wrap .auth-field__input {
  padding-right: 44px;
}

.auth-field__eye {
  position:      absolute;
  right:         0;
  top:           0;
  bottom:        0;
  width:         44px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  background:    none;
  border:        none;
  cursor:        pointer;
  color:         var(--color-text-muted, #57534e);
  transition:    color 0.18s;
}
.auth-field__eye:hover { color: var(--color-dark, #1c1917); }

/* Hata durumu */
.auth-field--error .auth-field__input {
  border-color: #dc2626;
}
.auth-field--error .auth-field__input:focus {
  box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}

.auth-field__error {
  font-size: 12px;
  color:     #dc2626;
  margin:    0;
}

/* Checkbox */
.auth-form__row {
  display:     flex;
  align-items: center;
}

.auth-checkbox {
  display:     flex;
  align-items: center;
  gap:         8px;
  cursor:      pointer;
}

.auth-checkbox input[type="checkbox"] { display: none; }

.auth-checkbox__box {
  width:         18px;
  height:        18px;
  border:        1.5px solid var(--color-border, #e7e5e4);
  border-radius: 4px;
  background:    var(--color-surface, #fff);
  flex-shrink:   0;
  position:      relative;
  transition:    border-color 0.18s, background 0.18s;
}

.auth-checkbox input[type="checkbox"]:checked + .auth-checkbox__box {
  background:   var(--color-dark, #1c1917);
  border-color: var(--color-dark, #1c1917);
}

.auth-checkbox input[type="checkbox"]:checked + .auth-checkbox__box::after {
  content:    '';
  position:   absolute;
  top:        3px;
  left:       5px;
  width:      6px;
  height:     10px;
  border:     2px solid #fff;
  border-top:  none;
  border-left: none;
  transform:  rotate(45deg);
}

.auth-checkbox__label {
  font-size: 13px;
  color:     var(--color-text-muted, #57534e);
}

/* Submit butonu */
.auth-form__submit {
  display:       flex;
  align-items:   center;
  justify-content: center;
  gap:           10px;
  width:         100%;
  height:        50px;
  background:    var(--color-dark);
  color:         #fff;
  border:        none;
  border-radius: var(--radius-base);
  font-size:     15px;
  font-weight:   600;
  font-family:   inherit;
  cursor:        pointer;
  transition:    background var(--transition), transform var(--transition);
  margin-top:    4px;
}

.auth-form__submit svg { transition: transform var(--transition); }

.auth-form__submit:hover {
  background: var(--color-accent);
  transform:  translateY(-1px);
}
.auth-form__submit:hover svg { transform: translateX(3px); }
.auth-form__submit:active    { transform: translateY(0); }

/* Ayıraç */
.auth-form__divider {
  display:     flex;
  align-items: center;
  gap:         12px;
  margin:      16px 0 0;
  font-size:   12px;
  color:       var(--color-text-muted, #57534e);
}

.auth-form__divider::before,
.auth-form__divider::after {
  content:    '';
  flex:       1;
  height:     1px;
  background: var(--color-border, #e7e5e4);
}

/* Misafir linki */
.auth-form__guest {
  display:         block;
  text-align:      center;
  font-size:       13px;
  color:           var(--color-text-muted, #57534e);
  text-decoration: none;
  padding:         10px;
  border-radius:   8px;
  transition:      background 0.18s, color 0.18s;
  margin-top:      4px;
}
.auth-form__guest:hover {
  background: var(--color-bg, #fafaf9);
  color:      var(--color-dark, #1c1917);
}

/* KVKK metni */
.auth-form__kvkk {
  font-size:   12px;
  line-height: 1.6;
  color:       var(--color-text-muted, #57534e);
  margin:      0;
}
.auth-form__kvkk a {
  color:           var(--color-accent, #c8956c);
  text-decoration: none;
}
.auth-form__kvkk a:hover { text-decoration: underline; }

/* Geri linki */
.auth-form__back {
  margin-top:  16px;
  text-align:  center;
}
.auth-form__back a {
  display:         inline-flex;
  align-items:     center;
  gap:             6px;
  font-size:       13px;
  color:           var(--color-text-muted, #57534e);
  text-decoration: none;
  transition:      color 0.2s;
}
.auth-form__back a:hover { color: var(--color-dark, #1c1917); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .auth-page {
    grid-template-columns: 1fr;
    min-height:            auto;
  }

  .auth-page__visual {
    height:     40vw;
    max-height: 320px;
    order:      1;
  }

  .auth-page__visual-content { padding: 24px 28px; }

  .auth-page__quote p  { font-size: 16px; }

  .auth-page__form {
    order:   2;
    padding: 40px 24px 56px;
  }

  .auth-form__mobile-logo { display: flex; }

  .auth-page__visual .auth-page__logo { display: none; }
}

@media (max-width: 768px) {
  .auth-page__visual  { height: 48vw; max-height: 260px; }
  .auth-page__form    { padding: 32px 20px 48px; }
  .auth-fields-row    { grid-template-columns: 1fr; gap: 0; }
  .auth-form__title   { font-size: 26px; }
}

@media (max-width: 480px) {
  .auth-page__visual  { display: none; }
  .auth-page__form    { padding: 32px 16px; min-height: 100vh; align-items: flex-start; }
  .auth-form__mobile-logo { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-form__submit,
  .auth-form__submit svg { transition: none; }
}
/* İl / ilçe seçim kutusu (Adreslerim) */
select.auth-field__select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23857e77' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
select.auth-field__select:disabled { opacity: .55; cursor: not-allowed; }
select.auth-field__select.is-placeholder { color: var(--color-text-light); }

/* ══════════════════════════════════════════════════════════
   2026-10 — Modern giriş / üye ol (kart düzeni)
   ══════════════════════════════════════════════════════════ */
.auth-shell {
  min-height: calc(100vh - var(--header-h, 78px) - var(--announce-h, 38px));
  display: flex; align-items: center; justify-content: center;
  padding: 48px 24px 72px;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(200,149,108,.14), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(160,104,57,.10), transparent 60%),
    var(--color-bg);
}
.auth-card {
  width: 100%; max-width: 1120px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(40, 28, 18, .12), 0 2px 6px rgba(40, 28, 18, .04);
  min-height: 640px;
}

/* Görsel panel */
.auth-visual { position: relative; overflow: hidden; background: #2a211a; }
.auth-visual__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.auth-visual__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,15,11,.05) 0%, rgba(20,15,11,.25) 45%, rgba(20,15,11,.86) 100%); }
.auth-visual__content { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 44px; color: #fff; }
.auth-visual__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-accent-light, #d2a27a); margin-bottom: 14px;
}
.auth-visual__eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; }
.auth-visual__quote {
  font-family: var(--font-serif); font-style: italic; font-weight: 600;
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; margin: 0 0 24px; max-width: 440px;
  text-wrap: balance;
}
.auth-visual__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.auth-visual__perks li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,.88); }
.auth-visual__perk-icon {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  color: var(--color-accent-light, #d2a27a); backdrop-filter: blur(4px);
}

/* Form paneli */
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px 56px; }
.auth-panel .auth-form { width: 100%; max-width: 420px; margin: 0; }

.auth-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; margin-bottom: 30px;
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 14px;
}
.auth-switch__tab {
  text-align: center; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--color-text-muted); text-decoration: none;
  transition: background .2s, color .2s, box-shadow .2s;
}
.auth-switch__tab:hover { color: var(--color-text); }
.auth-switch__tab.is-active { background: var(--color-surface); color: var(--color-text); box-shadow: 0 2px 8px rgba(0,0,0,.07); }

.auth-panel .auth-form__head { margin-bottom: 26px; }
.auth-panel .auth-form__title { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -.01em; }
.auth-panel .auth-form__sub { font-size: 14.5px; line-height: 1.55; color: var(--color-text-muted); margin: 0; }

/* Alanlar */
.auth-panel .auth-form__body { gap: 18px; }
.auth-field__control { position: relative; }
.auth-field__icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: var(--color-text-light); display: inline-flex; pointer-events: none; transition: color .2s;
}
.auth-field__control:focus-within .auth-field__icon { color: var(--color-accent); }
.auth-panel .auth-field__input {
  height: 52px; border-radius: 12px; font-size: 15px;
  border: 1.5px solid var(--color-border); background: var(--color-surface);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-panel .auth-field__control .auth-field__input { padding-left: 46px; }
.auth-panel .auth-field__input:hover { border-color: var(--color-border-dark); }
.auth-panel .auth-field__input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(160,104,57,.12); outline: none; }
.auth-panel .auth-field__input-wrap .auth-field__input { padding-right: 48px; }
.auth-panel .auth-field__eye { right: 6px; width: 40px; height: 40px; border-radius: 10px; }
.auth-panel .auth-field__eye:hover { background: var(--color-bg); }
.auth-panel .auth-field__label { font-size: 13px; font-weight: 600; color: var(--color-text); }
.auth-field__optional {
  font-size: 12px; font-weight: 600; color: var(--color-text-light);
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 999px; padding: 1px 8px; margin-left: 4px;
}
.auth-field__hint { font-size: 12px; color: var(--color-text-light); margin: 6px 0 0; }
.auth-panel .auth-field__forgot { font-size: 13px; font-weight: 600; color: var(--color-accent); }

/* Şifre gücü */
.auth-strength { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.auth-strength__bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 112px; flex-shrink: 0; }
.auth-strength__bar i { height: 4px; border-radius: 4px; background: var(--color-border); transition: background .25s; }
.auth-strength__text { font-size: 12px; color: var(--color-text-light); }
.auth-strength[data-score="0"] i:nth-child(-n+1) { background: #dc2626; }
.auth-strength[data-score="1"] i:nth-child(-n+1) { background: #ea580c; }
.auth-strength[data-score="2"] i:nth-child(-n+2) { background: #d97706; }
.auth-strength[data-score="3"] i:nth-child(-n+3) { background: #16a34a; }
.auth-strength[data-score="4"] i { background: #15803d; }
.auth-field__match { font-size: 12px; font-weight: 600; margin: 6px 0 0; }
.auth-field__match.is-ok { color: #15803d; }
.auth-field__match.is-bad { color: #b91c1c; }

/* Düğmeler */
.auth-panel .auth-form__submit {
  height: 54px; border-radius: 12px; font-size: 15.5px; letter-spacing: .01em; margin-top: 4px;
  background: var(--color-dark); box-shadow: 0 10px 24px rgba(26,22,18,.18);
}
.auth-panel .auth-form__submit:hover { background: var(--color-accent-dark); box-shadow: 0 12px 28px rgba(132,82,43,.28); }
.auth-panel .auth-form__divider { margin: 22px 0; }
.auth-panel .auth-form__guest {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; border-radius: 12px; border: 1.5px solid var(--color-border);
  font-size: 14.5px; font-weight: 600; color: var(--color-text); text-decoration: none; background: var(--color-surface);
  transition: border-color .2s, background .2s;
}
.auth-panel .auth-form__guest:hover { border-color: var(--color-text); background: var(--color-bg); }
.auth-panel .auth-form__kvkk { font-size: 12.5px; line-height: 1.6; color: var(--color-text-muted); margin: 2px 0 0; }
.auth-trust {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 22px 0 0; font-size: 12.5px; color: var(--color-text-light); text-align: center;
}
.auth-trust svg { color: #15803d; flex-shrink: 0; }

/* Duyarlı */
@media (max-width: 1024px) {
  .auth-card { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
  .auth-panel { padding: 40px 36px; }
  .auth-visual__content { padding: 32px; }
}
@media (max-width: 860px) {
  .auth-shell { padding: 20px 16px 48px; align-items: flex-start; }
  .auth-card { grid-template-columns: 1fr; min-height: 0; border-radius: 22px; }
  .auth-visual { height: 200px; }
  .auth-visual__perks { display: none; }
  .auth-visual__quote { font-size: 22px; margin: 0; }
  .auth-visual__content { padding: 22px 24px; }
  .auth-panel { padding: 28px 22px 32px; }
}
@media (max-width: 480px) {
  .auth-visual { height: 150px; }
  .auth-visual__eyebrow { display: none; }
  .auth-fields-row { grid-template-columns: 1fr; }
}
.auth-visual__shade { background: linear-gradient(180deg, rgba(20,15,11,.05) 0%, rgba(20,15,11,.38) 42%, rgba(20,15,11,.9) 100%); }
.auth-visual__eyebrow { text-shadow: 0 1px 8px rgba(0,0,0,.35); }

/* ══ UX-MAGAZA (2026-10-12) ═════════════════════════════════════════════
   Hata durumu: .auth-panel .auth-field__input kuralı (aynı özgüllük, sonra gelir) kırmızı çerçeveyi eziyordu →
   hatalı alanın çerçevesi görünmüyordu, yalnız alttaki yazı kırmızıydı. Renk mağaza hata rengiyle (token) aynı. */
.auth-panel .auth-field--error .auth-field__input,
.auth-field--error .auth-field__input { border-color: var(--color-error, #b91c1c); }
.auth-panel .auth-field--error .auth-field__input:focus { border-color: var(--color-error, #b91c1c); box-shadow: 0 0 0 4px rgba(185,28,28,.12); }
.auth-field__error { color: var(--color-error, #b91c1c); }
.auth-field--error .auth-field__icon { color: var(--color-error, #b91c1c); }
/* Telefonda Ad / Soyad alt alta: aralarında boşluk yoktu ("Ad alanı zorunludur." ile "Soyad" yapışıktı) */
@media (max-width: 768px) { .auth-fields-row { gap: 18px; } }
/* Gönderim sırasında kilitli düğme */
.auth-form__submit[aria-busy="true"] { opacity: .7; cursor: progress; }
/* KOL-ISIM (2026-10-16): "CONCEPT AYZ HOME" — üstte küçük, harf aralıklı "CONCEPT"; "AH" işareti aynı */
.auth-page__logo-words { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.auth-page__logo-concept {
  font-family: var(--font-sans, 'Inter', sans-serif); font-size: 8.5px; font-weight: 600; line-height: 1;
  letter-spacing: .5em; margin-right: -.5em; padding-left: 1px; white-space: nowrap; opacity: .82;
}
.auth-page__logo-words > span:last-child { white-space: nowrap; line-height: 1.05; }
/* "Beni hatırla" vb.: kutu klavyeyle de seçilebilsin (display:none odaklanamıyordu) ve dokunma alanı ≥ 44 px */
.auth-checkbox { min-height: 44px; position: relative; }
.auth-checkbox input[type="checkbox"] { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.auth-checkbox input[type="checkbox"]:focus-visible + .auth-checkbox__box { outline: 2px solid var(--color-dark, #1c1917); outline-offset: 2px; }