/* auth.css — Profesyonel, minimal, sıcak ton */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:     #faf7f2;
  --warm-50:   #fdf6ee;
  --warm-100:  #f5e6d3;
  --warm-200:  #e8c9a8;
  --warm-300:  #d4a574;
  --warm-400:  #c07d45;
  --warm-500:  #a85f2a;
  --warm-600:  #8b4513;
  --text-dark: #1c1410;
  --text-mid:  #5c4a3a;
  --text-soft: #9c8472;
  --border:    #e8ddd2;
  --white:     #ffffff;
  --error:     #c0392b;
  --success:   #27695a;
  --radius-sm: 8px;
  --radius:    14px;
  --shadow-lg: 0 12px 40px rgba(100,60,20,0.16);
}

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.auth-root {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .auth-root { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}

/* ── Left visual panel ── */
.auth-visual {
  background: linear-gradient(160deg, #1e0f06 0%, #4a2008 35%, #8b4513 70%, #c07d45 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
}

.auth-visual::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 25% 15%, rgba(255,200,120,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 85%, rgba(255,120,60,0.12) 0%, transparent 50%);
}

.visual-pattern {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 0, transparent 50%);
  background-size: 20px 20px;
}

.visual-content { position: relative; z-index: 1; }

.visual-tagline {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.visual-tagline em {
  color: #f0c080;
  font-style: italic;
}

.visual-sub {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 32px;
}

.visual-dots { display: flex; gap: 7px; }
.visual-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: all 0.3s;
}
.visual-dots span.active {
  background: #f0c080;
  width: 20px;
  border-radius: 3px;
}

/* ── Right form panel ── */
.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 40px;
  background: var(--white);
  min-height: 100vh;
  overflow-y: auto;
}

@media (max-width: 480px) { .auth-panel { padding: 32px 20px; } }

.auth-inner { width: 100%; max-width: 360px; }

/* ── Brand ── */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.brand-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--warm-400), var(--warm-600));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 3px 10px rgba(139,69,19,0.28);
  flex-shrink: 0;
}

.brand-name {
  font-family: 'Georgia', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

/* ── Heading ── */
.auth-heading { margin-bottom: 26px; }
.auth-heading h1 {
  font-family: 'Georgia', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 5px;
}
.auth-heading p {
  color: var(--text-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ── Alerts ── */
.alert {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.45;
}
.alert-error  { background: #fff5f5; border: 1px solid #fdd; color: var(--error); }
.alert-success{ background: #f0fdf4; border: 1px solid #c6f6d5; color: var(--success); }

/* ── Form fields ── */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  background: var(--warm-50);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  -webkit-appearance: none;
}

.form-group input::placeholder { color: var(--text-soft); }

.form-group input:focus,
.form-group select:focus {
  border-color: var(--warm-400);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(192,125,69,0.13);
}

.hint { font-size: 0.73rem; color: var(--text-soft); margin-top: 4px; display: block; }

/* ── Password wrap ── */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px; }
.pw-toggle {
  position: absolute; right: 0; top: 0;
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: pointer; color: var(--text-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.pw-toggle:hover { color: var(--warm-500); }

/* ── Gender selector ── */
.gender-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gender-opt { display: contents; }
.gender-opt input[type="radio"] { display: none; }
.gender-opt label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--warm-50);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: all 0.15s;
}
.gender-opt label .g-icon { font-size: 1.15rem; line-height: 1; margin-bottom: 1px; }
.gender-opt input:checked + label {
  border-color: var(--warm-400);
  background: var(--warm-100);
  color: var(--warm-600);
  box-shadow: 0 0 0 3px rgba(192,125,69,0.13);
}

/* ── Submit button ── */
.btn-submit {
  display: flex; width: 100%; height: 46px;
  align-items: center; justify-content: center; gap: 7px;
  background: linear-gradient(135deg, var(--warm-400), var(--warm-600));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(139,69,19,0.28);
  margin-top: 8px;
}
.btn-submit:hover {
  opacity: 0.91;
  box-shadow: 0 6px 20px rgba(139,69,19,0.36);
}
.btn-submit:active { transform: scale(0.985); }

/* ── Switch link ── */
.auth-switch {
  margin-top: 26px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft);
}
.auth-switch a {
  color: var(--warm-500);
  font-weight: 600;
  text-decoration: none;
}
.auth-switch a:hover { color: var(--warm-600); text-decoration: underline; }

/* ── Terms note ── */
.terms-note {
  margin-top: 18px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.terms-note a { color: var(--warm-400); text-decoration: none; }
