/* TGD - giriş / panel: site ile uyumlu açık, sıcak tema */
/* breakpoints.css — mobile (<768) / tablet (768–1023) / desktop (≥1024) */
:root {
  --cream: #faf7f2;
  --surface: #ffffff;
  --stroke: rgba(28, 25, 23, 0.1);
  --stroke-strong: rgba(28, 25, 23, 0.14);
  --text: #1c1917;
  --muted: #78716c;
  --coral: #e07a5f;
  --sage: #3d8b7a;
  --sage-soft: rgba(61, 139, 122, 0.14);
  --accent: #3d8b7a;
  --accent-2: #e07a5f;
  --danger: #dc2626;
  --ok: #15803d;
  --radius: 18px;
  --shadow: 0 16px 48px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 28px 70px rgba(28, 25, 23, 0.12);
  --sky: #6b9ac4;
  --ink-soft: #44403c;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(107, 154, 196, 0.2), transparent 55%),
    radial-gradient(700px 400px at 95% 5%, rgba(224, 122, 95, 0.12), transparent 50%),
    linear-gradient(165deg, #f5f0e8, var(--cream));
  line-height: 1.55;
}

a {
  color: var(--sage);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  color: var(--coral);
  text-decoration: underline;
}

.tgd-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.tgd-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

/* Giriş / kayıt - site logosu */
.tgd-brand--auth {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.tgd-brand--auth .tgd-brand-logo {
  display: block;
  height: clamp(1.85rem, 5vw, 2.5rem);
  width: auto;
  max-width: min(240px, 100%);
  object-fit: contain;
}

/* Giriş paneli: logo ortada ve ~2× büyük; alanlar tek sütun */
.tgd-auth-split-form--login .tgd-brand--auth {
  align-items: center;
  width: 100%;
  margin-bottom: 1rem;
}

.tgd-auth-split-form--login .tgd-brand--auth .tgd-brand-logo {
  height: clamp(3.6rem, 11vw, 5.2rem);
  max-width: min(520px, 100%);
  margin-inline: auto;
}

.tgd-brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.45rem;
  color: var(--text);
}

.tgd-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.85rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.tgd-card h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.tgd-card .lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.tgd-field {
  margin-bottom: 1rem;
}

.tgd-field label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.tgd-field input {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--stroke-strong);
  background: #fff;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tgd-field input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--sage-soft);
}

.tgd-field select {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--stroke-strong);
  background: #fff;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tgd-field select:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--sage-soft);
}

.tgd-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tgd-fieldset-plain {
  border: none;
  margin: 0 0 1rem;
  padding: 0;
}

.tgd-field-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.tgd-member-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tgd-radio-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 2px solid var(--stroke-strong);
  background: #fff;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.tgd-radio-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.tgd-radio-pill input:focus-visible + span {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
  border-radius: 4px;
}

.tgd-radio-pill:has(input:checked) {
  border-color: var(--sage);
  background: var(--sage-soft);
  color: var(--sage);
}

.tgd-radio-pill:hover {
  border-color: var(--coral);
}

.tgd-auth-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.8rem;
  align-items: start;
}

.tgd-auth-form-grid--nested {
  width: 100%;
}

.tgd-auth-span-2 {
  grid-column: 1 / -1;
}

.tgd-auth-form-submit {
  margin-top: 0.25rem;
}

/* Kayıt formu - dikey ritim (başlık, rol satırı, gönder) */
.tgd-auth-split-form--register {
  --tgd-reg-space: clamp(0.72rem, 2.3vw, 1.08rem);
  --tgd-reg-space-lg: clamp(0.95rem, 3vw, 1.32rem);
}

.tgd-auth-split-form--register .tgd-auth-form-grid > fieldset.tgd-fieldset-plain {
  margin-bottom: var(--tgd-reg-space-lg);
}

.tgd-auth-split-form--register .tgd-auth-form-submit {
  margin-top: var(--tgd-reg-space-lg);
  margin-bottom: var(--tgd-reg-space);
  padding-top: clamp(0.92rem, 2.4vw, 1.12rem);
  padding-bottom: clamp(0.92rem, 2.4vw, 1.12rem);
}

@media (max-width: 767px) {
  .tgd-auth-form-grid {
    grid-template-columns: 1fr;
  }

  .tgd-auth-span-2 {
    grid-column: 1;
  }
}

.tgd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.82rem 1rem;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--sage), #2d6a5d);
  box-shadow: 0 10px 32px rgba(61, 139, 122, 0.28);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.tgd-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.tgd-btn:active {
  transform: translateY(0);
}

.tgd-footer-links {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.tgd-alert {
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid var(--stroke);
}

.tgd-alert-error {
  color: #991b1b;
  background: rgba(254, 226, 226, 0.9);
  border-color: rgba(220, 38, 38, 0.2);
}

.tgd-alert-ok {
  color: #166534;
  background: rgba(220, 252, 231, 0.9);
  border-color: rgba(21, 128, 61, 0.2);
}

.tgd-dash {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.tgd-dash-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tgd-dash-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.tgd-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--sage);
  border: 1px solid rgba(61, 139, 122, 0.25);
  background: var(--sage-soft);
  font-weight: 700;
}

.tgd-panel {
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(28, 25, 23, 0.06);
}

.tgd-panel h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.tgd-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tgd-link-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong);
  color: var(--text);
  font-size: 0.9rem;
  background: #fff;
  font-weight: 600;
}

.tgd-link-btn:hover {
  text-decoration: none;
  border-color: var(--sage);
  color: var(--sage);
}

/* Giriş / kayıt - iki yarım kart (split), site renkleri */
.tgd-shell--auth {
  padding: 2rem 1rem 3rem;
}

.tgd-auth-split-card {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--stroke-strong);
  box-shadow: var(--shadow-lg);
}

.tgd-auth-split-viewport {
  overflow: hidden;
}

.tgd-auth-split-track {
  display: flex;
  width: 200%;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
}

.tgd-auth-split-track.is-register {
  transform: translateX(-50%);
}

.tgd-auth-split-slide {
  width: 50%;
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
  min-height: min(420px, 88vh);
}

.tgd-auth-split-form {
  flex: 1;
  width: 50%;
  padding: 1.5rem 1.45rem 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
  box-sizing: border-box;
}

.tgd-auth-split-form .tgd-brand {
  margin-bottom: 0.75rem;
}

.tgd-auth-split-form .tgd-field {
  margin-bottom: 0;
}

.tgd-auth-split-form--login .tgd-field {
  margin-bottom: 0.65rem;
}

.tgd-auth-split-form--login .tgd-field:last-of-type {
  margin-bottom: 0.35rem;
}

.tgd-auth-split-form .tgd-field label {
  font-size: 0.76rem;
  margin-bottom: 0.28rem;
}

.tgd-auth-split-form .tgd-field input,
.tgd-auth-split-form .tgd-field select {
  padding: 0.52rem 0.72rem;
  font-size: 0.9rem;
  border-radius: 10px;
}

.tgd-auth-split-form .tgd-fieldset-plain {
  margin-bottom: 0;
  min-width: 0;
}

.tgd-auth-split-form--register .tgd-brand--auth {
  align-items: center;
  width: 100%;
  margin-bottom: var(--tgd-reg-space, 0.72rem);
}

.tgd-auth-split-form--register .tgd-brand--auth .tgd-brand-logo {
  height: clamp(2.35rem, 6.5vw, 3.35rem);
  max-width: min(300px, 100%);
  margin-inline: auto;
}

.tgd-auth-split-form--register h1 {
  text-align: center;
  margin: 0;
  padding: var(--tgd-reg-space-lg) 0 var(--tgd-reg-space);
}

.tgd-field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}

.tgd-auth-split-form .tgd-field-label {
  margin-bottom: 0.35rem;
  font-size: 0.76rem;
}

.tgd-auth-split-form .tgd-radio-pill {
  padding: 0.42rem 0.8rem;
  font-size: 0.82rem;
}

.tgd-auth-split-form h1 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 2.2vw, 1.6rem);
  letter-spacing: -0.02em;
}

.tgd-auth-split-form .lead {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.tgd-auth-split-promo {
  flex: 1;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  color: #fff;
  box-sizing: border-box;
}

.tgd-auth-split-promo--a {
  background: linear-gradient(145deg, #1f5c52 0%, var(--sage) 42%, #c96a52 100%);
}

.tgd-auth-split-promo--b {
  background: linear-gradient(210deg, var(--coral) 0%, #8b7ab8 48%, #2d6a5d 100%);
}

.tgd-auth-split-promo-inner {
  max-width: 320px;
}

.tgd-auth-promo-lead {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.96;
}

.tgd-auth-split-promo h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  margin: 0 0 0.85rem;
  line-height: 1.15;
  font-weight: 700;
}

.tgd-auth-split-promo p {
  margin: 0 0 1.65rem;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.94;
}

.tgd-auth-split-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 2.25rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.tgd-auth-split-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.tgd-btn--auth {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  background: linear-gradient(105deg, var(--sage) 0%, var(--sky) 45%, var(--coral) 100%);
  box-shadow: 0 10px 32px rgba(61, 139, 122, 0.22), 0 4px 14px rgba(224, 122, 95, 0.15);
}

.tgd-btn--auth:hover {
  filter: brightness(1.04);
}

.tgd-auth-back {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}

.tgd-auth-back a {
  color: var(--sage);
  font-weight: 600;
}

.tgd-auth-back a:hover {
  color: var(--coral);
}

@media (max-width: 1023px) {
  .tgd-auth-split-track {
    width: 100%;
    flex-direction: column;
    transform: none !important;
  }

  .tgd-auth-split-slide {
    width: 100%;
    min-height: 0;
    flex-direction: column;
  }

  .tgd-auth-split-track:not(.is-register) .tgd-auth-split-slide:last-child {
    display: none;
  }

  .tgd-auth-split-track.is-register .tgd-auth-split-slide:first-child {
    display: none;
  }

  .tgd-auth-split-form,
  .tgd-auth-split-promo {
    width: 100%;
    flex: none;
  }

  .tgd-auth-split-form {
    padding: 1.35rem 1.15rem 1.5rem;
  }

  .tgd-auth-split-promo {
    padding: 1.75rem 1.25rem;
  }

  /* Kayıt slaydında DOM sırası promo|form - mobilde önce form */
  .tgd-auth-split-track.is-register .tgd-auth-split-slide:last-child .tgd-auth-split-form {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tgd-auth-split-track {
    transition: none;
  }
}
