/* TicareX — e-posta doğrulama & şifre sıfırlama (auth mail landing) */

:root {
  --bg: #0f1923;
  --bg-card: #141f2b;
  --bg-input: #0a1219;
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(255, 184, 0, 0.35);
  --gold: #ffb800;
  --gold-dim: #c99200;
  --green: #2ecc71;
  --red: #f85149;
  --text: #e8eef4;
  --text-muted: #8899aa;
  --text-soft: #b8c5d4;
  --radius: 16px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 40px rgba(255, 184, 0, 0.15);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
}

body.auth-page {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding: 24px 16px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

body.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 15% -5%, rgba(255, 184, 0, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 35% at 85% 15%, rgba(46, 204, 113, 0.07), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(20, 31, 43, 0.9), transparent 55%);
}

.auth-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100dvh - 48px);
  justify-content: center;
  gap: 20px;
}

.auth-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  text-align: center;
}

.auth-brand span {
  color: var(--gold);
}

.auth-card {
  width: 100%;
  background: linear-gradient(165deg, rgba(26, 38, 53, 0.95) 0%, rgba(20, 31, 43, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow), var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.85;
}

.auth-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold);
}

.auth-icon svg {
  width: 28px;
  height: 28px;
}

.auth-icon--success {
  background: rgba(46, 204, 113, 0.12);
  border-color: rgba(46, 204, 113, 0.35);
  color: var(--green);
}

.auth-icon--error {
  background: rgba(248, 81, 73, 0.1);
  border-color: rgba(248, 81, 73, 0.3);
  color: var(--red);
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.auth-lead {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.55;
}

.auth-lead:empty,
.auth-lead.is-hidden { display: none; }

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.auth-field input {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--border-gold);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.12);
}

.auth-field input::placeholder {
  color: #556677;
}

.auth-btn {
  width: 100%;
  margin-top: 4px;
  padding: 15px 20px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #0f1923;
  background: linear-gradient(135deg, #ffd24d 0%, var(--gold) 45%, var(--gold-dim) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 184, 0, 0.35);
  transition: transform 0.15s, filter 0.2s, box-shadow 0.2s;
}

.auth-btn:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(255, 184, 0, 0.4);
}

.auth-btn:active:not(:disabled) {
  transform: translateY(0);
}

.auth-btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.auth-status {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  display: none;
}

.auth-status.is-visible {
  display: block;
}

.auth-status.hint {
  background: rgba(136, 153, 170, 0.1);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

.auth-status.ok {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #6ee7a0;
}

.auth-status.err {
  background: rgba(248, 81, 73, 0.08);
  border: 1px solid rgba(248, 81, 73, 0.28);
  color: #ff8a80;
}

.auth-status .auth-status-title {
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.auth-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.auth-footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  color: #ffd24d;
  text-decoration: underline;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto 16px;
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 184, 0, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
}

.auth-badge svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 400px) {
  .auth-card {
    padding: 26px 20px 22px;
  }
  .auth-title { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-btn { transition: none; }
}
