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

:root {
  --primary: #c8a66a;
  --primary-dark: #b28a46;
  --white: #ffffff;
  --line: rgba(22, 32, 51, 0.12);
  --muted: #667085;
  --shadow: 0 32px 80px rgba(0,0,0,0.45);
}

html, body {
  margin: 0; padding: 0;
  font-family: "Inter", sans-serif;
  min-height: 100%;
}

body {
  min-height: 100vh;
  /* Orijinal görseldeki koyu mavi-siyah gradient arka plan */
  background:
    radial-gradient(ellipse at 10% 80%, rgba(200,166,106,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 10%, rgba(60,80,140,0.18) 0%, transparent 50%),
    linear-gradient(145deg, #060e1c 0%, #0c1628 40%, #0f1d38 100%);
}

/* ===== SAYFA — TAM ORTALAMA ===== */
.auth-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Arka plan dekoratif şekiller */
.auth-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.auth-bg-shape-1 {
  width: 350px; height: 350px;
  background: rgba(200,166,106,0.13);
  top: -60px; left: -100px;
}
.auth-bg-shape-2 {
  width: 400px; height: 400px;
  background: rgba(40,70,160,0.15);
  right: -120px; bottom: -100px;
}

.auth-wrapper {
  width: 100%;
  max-width: 1100px;
  position: relative;
  z-index: 1;
}

/* ===== KART ===== */
.auth-card {
  width: 100%;
  display: flex;
  flex-direction: row;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(4px);
}

/* ===== SOL: FORM PANELİ ===== */
.auth-panel {
  flex: 1;
  min-width: 0;
  background: rgba(245,246,248,0.97);
  display: flex;
  flex-direction: column;
}

.panel-inner {
  flex: 1;
  overflow-y: auto;
  padding: 44px 40px;
}

.panel-inner::-webkit-scrollbar { width: 5px; }
.panel-inner::-webkit-scrollbar-thumb {
  background: rgba(15,23,42,0.12); border-radius: 10px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(200,166,106,0.15);
  color: #8a6427;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.panel-inner h2 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 800;
  color: #0f1728;
  line-height: 1.15;
}

.panel-desc {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== SAĞ: LOGO PANELİ (koyu, orijinal görsel gibi) ===== */
.auth-side {
  width: 360px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  /* Orijinal görseldeki koyu sağ panel rengi */
  background: linear-gradient(160deg, #0a1525 0%, #071020 100%);
}

/* Hafif overlay */
.side-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,14,28,0.2) 0%, rgba(6,14,28,0.6) 100%);
  z-index: 1;
}

/* side-content kullanılmıyor ama var, gizle */
.side-content { display: none; }

/* ===== LOGO KARTLARI — ortada dikey ===== */
.side-logos {
  position: absolute; inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 32px 28px;
  pointer-events: none;
}

/* Altın ışıma */
.side-logos::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,166,106,0.18) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  z-index: 0;
  filter: blur(24px);
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,100% { opacity:0.6; transform:translate(-50%,-50%) scale(1); }
  50%      { opacity:1;   transform:translate(-50%,-50%) scale(1.08); }
}

/* İnce ayırıcı çizgi */
.side-logos::after {
  content: '';
  position: absolute;
  left: 18%; right: 18%; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,166,106,0.3), transparent);
  z-index: 1;
}

.side-logo-card {
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  border-radius: 18px;
  background: rgba(238,240,244,0.90);
  border: 1px solid rgba(255,255,255,0.60);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.75);
  width: 100%;
  max-width: 220px;
  pointer-events: all;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.side-logo-card:hover {
  transform: translateY(-4px);
  background: rgba(250,251,253,0.96);
  box-shadow: 0 14px 42px rgba(0,0,0,0.5), 0 0 0 1px rgba(200,166,106,0.45), inset 0 1px 0 rgba(255,255,255,0.85);
  border-color: rgba(200,166,106,0.55);
}

.side-logo {
  display: block;
  width: 100%; height: auto;
  max-height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.10));
  transition: filter 0.3s ease;
  pointer-events: none;
}

.side-logo-card:hover .side-logo {
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.18));
}

/* ===== FORM GRID ===== */
.auth-form { width: 100%; }

.auth-form--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.input-group { display: flex; flex-direction: column; }
.input-group.full { grid-column: 1 / -1; }

.input-group label {
  font-size: 13px; font-weight: 700;
  color: #334155; margin-bottom: 6px;
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.95);
  padding: 13px 15px;
  font-size: 14px; color: #0f1728;
  font-family: inherit;
  outline: none;
  transition: 0.22s ease;
}

.input-group textarea { resize: vertical; min-height: 95px; }

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  border-color: rgba(200,166,106,0.8);
  box-shadow: 0 0 0 3px rgba(200,166,106,0.12);
  background: #fff;
}

.input-group input::placeholder,
.input-group textarea::placeholder { color: #98a2b3; }

.input-group select optgroup { font-weight: 700; color: #334155; }

/* ===== BUTONLAR ===== */
.btn {
  width: 100%; border: none;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: 0.22s ease;
  margin-top: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(178,138,70,0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(178,138,70,0.38);
}

/* ===== KVKK ===== */
.kvkk-group { margin-top: 2px; }

.kvkk-wrap {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; font-size: 13px; color: #334155;
  line-height: 1.6; padding: 12px 14px;
  background: rgba(200,166,106,0.06);
  border: 1px solid rgba(200,166,106,0.22);
  border-radius: 12px; transition: background 0.2s;
}

.kvkk-wrap:hover { background: rgba(200,166,106,0.10); }

.kvkk-wrap input[type="checkbox"] {
  width: 17px; height: 17px; min-width: 17px;
  margin-top: 2px; accent-color: var(--primary-dark);
  cursor: pointer; border: none; background: transparent;
  padding: 0; box-shadow: none;
}

.kvkk-wrap input[type="checkbox"]:focus { outline: none; box-shadow: none; }
.kvkk-wrap strong { color: #7b5a25; font-weight: 700; }
.req { color: #dc2626; margin-left: 2px; }
.checkbox-wrap { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; }

/* ===== TEŞEKKÜR EKRANI ===== */
.thankyou-panel { display: flex; }

.ty-wrapper {
  display: flex; flex-direction: column;
  width: 100%; max-width: 520px;
  margin: 0 auto; padding: 44px 40px 36px;
  animation: tyFadeIn 0.5s ease both;
}

@keyframes tyFadeIn {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}

.ty-top-line {
  width: 48px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #c8a66a, #b28a46);
  margin-bottom: 36px;
}

.ty-hero { display: flex; align-items: center; gap: 28px; margin-bottom: 32px; }
.ty-check-wrap { position: relative; flex-shrink: 0; }

.ty-check-svg {
  width: 72px; height: 72px;
  filter: drop-shadow(0 6px 20px rgba(178,138,70,0.4));
  animation: tyPop 0.55s cubic-bezier(0.34,1.56,0.64,1) 0.1s both;
}

@keyframes tyPop {
  from { transform:scale(0.5); opacity:0; }
  to   { transform:scale(1);   opacity:1; }
}

.ty-check-path {
  stroke-dasharray: 50; stroke-dashoffset: 50;
  animation: tyDraw 0.45s ease 0.55s forwards;
}

@keyframes tyDraw { to { stroke-dashoffset: 0; } }

.ty-pulse-ring {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid rgba(200,166,106,0.3);
  animation: tyPulse 2s ease-in-out 1s infinite;
}

@keyframes tyPulse {
  0%   { transform:scale(1);    opacity:0.6; }
  50%  { transform:scale(1.12); opacity:0.2; }
  100% { transform:scale(1);    opacity:0.6; }
}

.ty-hero-text { flex: 1; }

.ty-status-dot {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; color: #7a5c1e;
  letter-spacing: 0.3px; margin-bottom: 10px;
}

.ty-status-dot span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #c8a66a;
  box-shadow: 0 0 0 3px rgba(200,166,106,0.25);
  display: inline-block;
}

.ty-title {
  font-size: 36px; font-weight: 800; color: #0f1728;
  line-height: 1.1; margin: 0 0 8px; letter-spacing: -0.5px;
}

.ty-subtitle { font-size: 14px; color: #667085; margin: 0; line-height: 1.5; }

.ty-cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.ty-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  background: rgba(200,166,106,0.06);
  border: 1px solid rgba(200,166,106,0.18);
  border-radius: 14px;
  animation: tySlide 0.4s ease both;
}

.ty-card:nth-child(1) { animation-delay: 0.3s; }
.ty-card:nth-child(2) { animation-delay: 0.42s; }

@keyframes tySlide {
  from { opacity:0; transform:translateX(-10px); }
  to   { opacity:1; transform:translateX(0); }
}

.ty-card-icon {
  font-size: 18px; flex-shrink: 0;
  width: 34px; height: 34px;
  background: rgba(200,166,106,0.12); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}

.ty-card-body { flex: 1; }
.ty-card-title { font-size: 13px; font-weight: 700; color: #0f1728; margin-bottom: 3px; }
.ty-card-desc { font-size: 12px; color: #667085; line-height: 1.6; }

.ty-footer { animation: tyFadeIn 0.4s ease 0.55s both; }

.ty-new-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px;
  background: linear-gradient(135deg, #c8a66a, #b28a46);
  color: #fff; font-size: 13px; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(178,138,70,0.28);
  transition: 0.22s ease;
}

.ty-new-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(178,138,70,0.38);
}

/* ===== RESPONSIVE: TABLET/MOBİL ===== */
@media (max-width: 860px) {
  .auth-page { padding: 16px; align-items: flex-start; }

  .auth-card {
    flex-direction: column;
    border-radius: 22px;
  }

  /* Sağ panel mobilde: SADECE logo satırı, boşluk yok */
  .auth-side {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    order: -1;
    background: linear-gradient(160deg, #0a1525 0%, #071020 100%);
  }

  .side-overlay { display: none; }

  /* Logolar: relative, yatay, sadece kendi yüksekliği */
  .side-logos {
    position: relative !important;
    inset: auto !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 14px;
    padding: 16px 20px;
    width: 100%;
    min-height: 0 !important;
    height: auto;
  }

  .side-logos::before,
  .side-logos::after { display: none !important; }

  .side-logo-card {
    max-width: 145px;
    padding: 11px 14px;
    border-radius: 14px;
  }

  .side-logo { max-height: 55px; }

  .auth-panel { flex: none; width: 100%; }

  .panel-inner { padding: 28px 22px; }

  .panel-inner h2 { font-size: 26px; }
}

@media (max-width: 480px) {
  .auth-page { padding: 10px; }
  .auth-card { border-radius: 18px; }

  .side-logos { gap: 10px; padding: 14px; }

  .side-logo-card {
    max-width: 128px; padding: 10px 12px; border-radius: 12px;
  }

  .side-logo { max-height: 48px; }

  .panel-inner { padding: 22px 16px; }
  .panel-inner h2 { font-size: 22px; }
  .brand-badge { font-size: 11px; padding: 8px 12px; }

  .auth-form--grid { grid-template-columns: 1fr; gap: 11px; }
}
