/**
 * PegaiPOS — Auth / signup / forgot / sözleşme (Landing OS materials)
 * Consumes DS tokens; pairs with pegaipos-landing.css via dsAuthStylesheetTags().
 */

body.auth-body {
  font-family: var(--font-body);
  color: var(--text);
  min-height: 100vh;
  background: transparent;
  -webkit-font-smoothing: antialiased;
}
body.auth-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--glass-mesh);
  background-attachment: fixed;
  pointer-events: none;
}
body.auth-body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--lp-mesh);
}

/* Soft ambient wash (token mesh — no hardcoded blur orbs) */
.auth-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--lp-mesh);
  opacity: 0.85;
}
.auth-glow--a,
.auth-glow--b,
.auth-glow--c { display: none; }

.auth-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.auth-left {
  width: 500px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 3.5rem;
  background: var(--glass-surface);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
  border-right: 1px solid var(--glass-border-outer);
  position: relative;
  z-index: 1;
}
.auth-left-inner {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.auth-mobile-brand {
  display: none;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 420px;
}
.auth-mobile-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.auth-mobile-brand-mark {
  width: 36px;
  height: 36px;
  background: var(--tint);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}
.auth-mobile-brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  flex: 1;
}
.auth-mobile-brand-home {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--tint);
  text-decoration: none;
  white-space: nowrap;
}
.auth-mobile-brand-home:hover { color: var(--tint-hover); }

.auth-form-card {
  width: 100%;
  background: var(--glass-surface);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
  border: 1px solid var(--glass-border-outer);
  border-radius: var(--radius-xl);
  padding: 2rem 2rem 1.75rem;
  box-shadow: var(--glass-shadow);
}

.auth-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -1rem 0 1.5rem;
}
.auth-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--radius-full);
  background: var(--glass-elevated);
  border: 1px solid var(--glass-border-outer);
  backdrop-filter: var(--glass-filter-sm);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--glass-shadow-sm);
}
.auth-trust-chip svg {
  color: var(--green);
  flex-shrink: 0;
}

.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
  background: transparent;
}
.auth-floating-badge {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--glass-surface);
  border: 1px solid var(--glass-border-outer);
  backdrop-filter: var(--glass-filter-md);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--glass-shadow-sm);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}
.auth-floating-badge:hover {
  background: var(--glass-surface-hover);
  color: var(--text);
  box-shadow: var(--glass-shadow-hover);
}
.auth-footer--compact { margin-top: 0.8rem; }
.form-meta:has(.forgot-link:only-child) { justify-content: flex-end; }
.auth-floating-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--green);
  animation: auth-pulse-dot var(--duration-pulse) infinite;
}
@keyframes auth-pulse-dot {
  0%, 100% { box-shadow: var(--shadow-focus); }
  50% { box-shadow: var(--shadow-md); }
}
.right-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.2rem;
  width: 100%;
  max-width: 500px;
}

.brand-hero { display: flex; flex-direction: column; gap: 0.6rem; }
.brand-logo-row { display: block; margin-bottom: 0.4rem; }
.brand-hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
}
.brand-hero-mark {
  width: 80px;
  height: 80px;
  background: var(--tint);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.brand-hero-name {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.05em;
}
.brand-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 380px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.feature-icon-wrap {
  width: 40px;
  height: 40px;
  background: var(--tint-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.05rem;
  color: var(--tint);
}
.feature-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.feature-text span {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.stats-row {
  display: flex;
  gap: 0;
  width: 100%;
  background: var(--glass-surface);
  backdrop-filter: var(--glass-filter-md);
  border: 1px solid var(--glass-border-outer);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow-sm);
}
.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  padding: 1rem 0.5rem;
  border-right: 1px solid var(--glass-border-outer);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--tint);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}
.auth-sub {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.tab-switch {
  display: flex;
  background: var(--fill-tertiary);
  border-radius: var(--radius-md);
  padding: 3px;
  margin-bottom: 1.8rem;
  gap: 3px;
}
.tab-switch-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.5rem 0.4rem;
  border: none;
  border-radius: calc(var(--radius-md) - 2px);
  background: transparent;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.tab-switch-btn:hover { color: var(--text-secondary); }
.tab-switch-btn.active {
  background: var(--glass-elevated);
  color: var(--tint);
  box-shadow: var(--glass-shadow-sm);
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }
.tab-pane[hidden] { display: none !important; }
.form-inline-error {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--danger);
}

.form-group { margin-bottom: 1.05rem; position: relative; }
.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.42rem;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 0.9rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.form-input {
  width: 100%;
  padding: 0.82rem 1rem 0.82rem 2.6rem;
  border: 1px solid var(--glass-border-outer);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--glass-surface);
  backdrop-filter: var(--glass-filter-sm);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input::placeholder { color: var(--text-tertiary); }
.form-input:focus {
  border-color: var(--tint);
  box-shadow: var(--shadow-focus);
}
.form-input.has-eye { padding-right: 3rem; }
.input-eye {
  position: absolute;
  right: 0.85rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}
.input-eye:hover { color: var(--tint); }

.form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.83rem;
}
.remember-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.remember-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--tint);
  cursor: pointer;
}
.forgot-link {
  color: var(--tint);
  text-decoration: none;
  font-weight: 600;
}
.forgot-link:hover { color: var(--tint-hover); }

.btn-submit {
  width: 100%;
  padding: 0.9rem 1.25rem;
  min-height: 3.25rem;
  background: var(--fill-primary);
  color: var(--on-fill-primary);
  border: none;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-md);
}
.btn-submit:hover {
  background: var(--fill-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-submit:active { transform: scale(0.98); }

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--glass-border-outer);
  border-radius: var(--radius-md);
  background: var(--glass-surface);
  backdrop-filter: var(--glass-filter-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  margin-bottom: 1.6rem;
  box-sizing: border-box;
}
button.btn-google {
  appearance: none;
  -webkit-appearance: none;
}
.btn-google:hover {
  border-color: var(--tint);
  background: var(--glass-surface-hover);
}

.kurye-info-not {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  background: var(--tint-soft);
  border: 1px solid var(--glass-border-outer);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  font-size: 0.79rem;
  color: var(--tint);
  line-height: 1.55;
  margin-bottom: 1.2rem;
}
.kurye-info-not svg { flex-shrink: 0; margin-top: 0.1rem; }

.auth-footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: 1.2rem;
}
.auth-footer a {
  color: var(--tint);
  font-weight: 600;
  text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

.terms-footer {
  margin-top: 1.8rem;
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-tertiary);
  line-height: 1.65;
}
.terms-footer a {
  color: var(--tint);
  text-decoration: none;
  font-weight: 500;
}
.terms-footer a:hover { text-decoration: underline; }

.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.auth-alert.err {
  background: var(--red-soft);
  border: 1px solid var(--danger);
  color: var(--danger);
}
.auth-alert.ok {
  background: var(--success-50);
  border: 1px solid var(--success);
  color: var(--success);
}
.auth-alert--warn {
  background: var(--warning-50);
  border: 1px solid var(--warning);
  color: var(--warning-600);
}

/* ── E-posta doğrulama (verify.php) ── */
.auth-body--verify {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}
.auth-verify-wrap {
  width: 100%;
  max-width: 440px;
}
.auth-verify-brand { margin-bottom: 1.25rem; justify-content: center; }
.auth-verify-card { text-align: center; }
.auth-verify-icon {
  width: 64px; height: 64px; margin: 0 auto 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  color: var(--tint);
  display: flex; align-items: center; justify-content: center;
}
.auth-verify-title { margin-bottom: 0.35rem; }
.auth-verify-sub { margin-bottom: 1.5rem; }
.auth-verify-sub strong { color: var(--text); font-weight: 600; }
.auth-verify-form { text-align: left; }
.otp-row {
  display: flex; gap: 0.5rem; justify-content: center;
  margin-bottom: 1.25rem;
}
.otp-input {
  width: 46px; height: 54px; text-align: center;
  font-size: 1.35rem; font-weight: 700;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  font-family: inherit;
  -webkit-appearance: none; appearance: none;
}
.otp-input:focus {
  border-color: var(--tint);
  box-shadow: var(--shadow-focus);
}
.otp-input.filled {
  border-color: var(--tint);
  background: var(--accent-soft);
}
.otp-input.shake {
  animation: otpShake var(--duration-slow) var(--ease-standard);
  border-color: var(--danger);
  background: var(--danger-50);
}
@keyframes otpShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  60% { transform: translateX(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .otp-input.shake { animation: none; border-color: var(--danger); }
}
.auth-verify-resend {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}
.auth-verify-countdown {
  font-weight: 700;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.auth-verify-resend-link {
  color: var(--tint);
  font-weight: 600;
  text-decoration: none;
}
.auth-verify-resend-link:hover { text-decoration: underline; }
button.auth-verify-resend-link {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}
.auth-verify-back { margin-top: 1.25rem; }
.auth-form-spacer { margin-bottom: 1.5rem; }

@media (max-width: 480px) {
  .otp-input { width: 40px; height: 48px; font-size: 1.15rem; }
}

/* ── Sözleşme sayfası ── */
.auth-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-chrome);
  backdrop-filter: var(--glass-filter-chrome);
  -webkit-backdrop-filter: var(--glass-filter-chrome);
  border-bottom: 1px solid var(--glass-border-outer);
  box-shadow: var(--glass-shadow-sm);
}
.auth-topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}
.auth-topbar-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.auth-topbar-mark {
  width: 32px;
  height: 32px;
  background: var(--tint);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-topbar-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.auth-topbar-back {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--tint);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.auth-topbar-back:hover { color: var(--tint-hover); }

.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.legal-card {
  background: var(--glass-surface);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
  border: 1px solid var(--glass-border-outer);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  box-shadow: var(--glass-shadow);
}
.legal-card h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.legal-updated {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 1.75rem;
}
.legal-content {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.75rem 0 0.65rem;
}
.legal-content p { margin-bottom: 0.85rem; }
.legal-content ul,
.legal-content ol {
  margin: 0 0 0.85rem 1.25rem;
}
.legal-content li { margin-bottom: 0.35rem; }

/* ── Kayıt sayfası ek stiller ── */
.auth-left.signup-panel {
  width: 560px;
  padding: 3rem 3.5rem 3rem 4.5rem;
  overflow-y: auto;
}
.auth-left.signup-panel .auth-left-inner {
  max-width: 420px;
  padding: 1rem 0;
}

.kayit-kapali-banner {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border-outer);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  backdrop-filter: var(--glass-filter-sm);
}
.kayit-kapali-banner svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--text-tertiary);
}
.kayit-kapali-banner-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.kayit-kapali-banner-text span {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.google-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--tint-soft);
  border: 1px solid var(--glass-border-outer);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1.4rem;
}
.google-banner img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
}
.google-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.google-banner-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.google-banner-text span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.btn-google.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-google-wrap {
  position: relative;
  margin-bottom: 1.3rem;
}
.btn-google-wrap .soon-badge {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  transform: translateY(-50%);
  background: var(--fill-tertiary);
  color: var(--text-tertiary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-2xl);
  pointer-events: none;
}
.btn-google-wrap .btn-google { margin-bottom: 0; }

.divider-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.3rem;
  color: var(--text-tertiary);
  font-size: 0.82rem;
}
.divider-or::before,
.divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border-outer);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.form-label .opt {
  font-weight: 400;
  color: var(--text-tertiary);
  font-size: 0.78rem;
}

.form-disabled .form-input,
.form-disabled .btn-google,
.form-disabled textarea {
  opacity: 0.45;
  pointer-events: none;
}
.form-disabled .btn-submit {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.form-disabled .terms-row {
  opacity: 0.45;
  pointer-events: none;
}

.pwd-strength {
  margin-top: 0.4rem;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.pwd-bar {
  height: 3px;
  flex: 1;
  border-radius: var(--radius-xs);
  background: var(--fill-tertiary);
  transition: background var(--transition-base);
}
.pwd-bar.weak { background: var(--danger); }
.pwd-bar.medium { background: var(--orange); }
.pwd-bar.strong { background: var(--green); }
.pwd-text {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-left: 0.25rem;
  white-space: nowrap;
}
.pwd-text.weak { color: var(--danger); }
.pwd-text.medium { color: var(--warning); }
.pwd-text.strong { color: var(--success); }

.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.6rem 0 1.2rem;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  line-height: 1.55;
}
.terms-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--tint);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.terms-row a {
  color: var(--tint);
  text-decoration: none;
}
.terms-row a:hover { text-decoration: underline; }

/* ── Sözleşme (sozlesme.php) ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-chrome);
  backdrop-filter: var(--glass-filter-chrome);
  -webkit-backdrop-filter: var(--glass-filter-chrome);
  border-bottom: 1px solid var(--glass-border-outer);
  box-shadow: var(--glass-shadow-sm);
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}
.topbar-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.topbar-mark {
  width: 32px;
  height: 32px;
  background: var(--tint);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.topbar-back {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tint);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--glass-border-outer);
  border-radius: var(--radius-md);
  background: var(--tint-soft);
  transition: background var(--transition-fast);
  cursor: pointer;
  font-family: inherit;
}
.topbar-back:hover { background: var(--accent-soft); }

.page-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border-outer);
}
.page-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.page-meta {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.sozlesme-icerik {
  line-height: 1.8;
  background: var(--glass-surface);
  backdrop-filter: var(--glass-filter);
  border: 1px solid var(--glass-border-outer);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  box-shadow: var(--glass-shadow-sm);
}
.sozlesme-icerik h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.6rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--tint);
}
.sozlesme-icerik h2:first-child { margin-top: 0; }
.sozlesme-icerik p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.sozlesme-icerik ul,
.sozlesme-icerik ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.sozlesme-icerik li {
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}
.sozlesme-icerik strong { color: var(--text); }
.sozlesme-icerik a { color: var(--tint); }

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--glass-chrome);
  backdrop-filter: var(--glass-filter-md);
  border-top: 1px solid var(--glass-border-outer);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glass-shadow);
}
.btn-close {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--tint);
  color: var(--on-fill-primary);
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), transform var(--transition-fast);
  box-shadow: var(--shadow-md);
}
.btn-close:hover {
  background: var(--tint-hover);
  transform: translateY(-1px);
}

/* ── Şifre sıfırlama (forgot-password.php) ── */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.8rem;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
  position: relative;
}
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--glass-border-outer);
  z-index: 0;
}
.step-item.done:not(:last-child)::after { background: var(--tint); }
.step-dot {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 2px solid var(--glass-border-outer);
  background: var(--glass-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-tertiary);
  position: relative;
  z-index: 1;
  transition: all var(--transition-base);
}
.step-item.active .step-dot,
.step-item.done .step-dot {
  border-color: var(--tint);
  background: var(--tint);
  color: var(--on-fill-primary);
}
.step-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  font-weight: 500;
  white-space: nowrap;
}
.step-item.active .step-label,
.step-item.done .step-label {
  color: var(--tint);
  font-weight: 600;
}
.otp-wrap {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.6rem;
}
.otp-input {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  border: 2px solid var(--glass-border-outer);
  border-radius: var(--radius-md);
  outline: none;
  font-family: inherit;
  color: var(--text);
  background: var(--glass-surface);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  caret-color: var(--tint);
}
.otp-input:focus {
  border-color: var(--tint);
  box-shadow: var(--shadow-focus);
}
.otp-input.filled {
  border-color: var(--tint);
  background: var(--tint-soft);
}
.resend-row {
  text-align: center;
  font-size: 0.83rem;
  color: var(--text-tertiary);
  margin-bottom: 1.4rem;
}
.resend-row a {
  color: var(--tint);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.resend-row a:hover { text-decoration: underline; }
.resend-row .resend-btn {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  color: var(--tint);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.resend-row .resend-btn:hover { text-decoration: underline; }
.resend-row .countdown { font-weight: 600; color: var(--tint); }
.success-icon {
  width: 72px;
  height: 72px;
  background: var(--green-soft);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
}
.success-icon svg { color: var(--green); }
.auth-email-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: -1rem 0 1.5rem;
  text-align: center;
}
.auth-success-wrap {
  text-align: center;
  padding: 1rem 0;
}
.auth-success-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
  line-height: 1.6;
}
.btn-submit.btn-link {
  text-decoration: none;
  display: flex;
}

@media (max-width: 900px) {
  .auth-right { display: none; }
  .auth-left,
  .auth-left.signup-panel {
    width: 100%;
    border-right: none;
    padding: 1.25rem 1rem 2.5rem;
    justify-content: flex-start;
    padding-top: 1.5rem;
  }
  .auth-left-inner { margin-left: 0; max-width: 100%; }
  .auth-mobile-brand { display: flex; }
  .auth-form-card {
    padding: 1.5rem 1.25rem 1.35rem;
    border-radius: var(--radius-lg);
  }
  .auth-trust-chips { margin-top: -0.5rem; }
}

@media (max-width: 600px) {
  .topbar { padding: 0.8rem 1rem; }
  .page-wrap { padding: 2rem 1rem 5rem; }
  .page-title { font-size: 1.5rem; }
  .form-row-2 { grid-template-columns: 1fr; }
  .auth-left,
  .auth-left.signup-panel { padding: 1rem 0.85rem 2rem; }
  .auth-form-card { padding: 1.25rem 1rem 1.15rem; }
  .auth-title { font-size: 1.5rem; }
}

@media (max-width: 400px) {
  .otp-input { width: 42px; height: 52px; font-size: 1.2rem; }
  .otp-wrap { gap: 0.35rem; }
}


/* OS quiet: mute vanity stat strip on auth panels */
.auth-right .stats-row { display: none; }


.auth-os-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
  position: relative;
  z-index: 1;
}
.auth-body--os .auth-title {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  font-weight: var(--font-extrabold);
}
.auth-body--os .auth-form-card {
  border-radius: var(--radius-2xl);
}
.auth-body--os .tab-switch-btn.active {
  background: var(--fill-primary);
  color: var(--on-fill-primary);
  box-shadow: var(--shadow-md);
}
