/* ================================================================
   auth.css — EmlakTakip Pro  |  Sliding Auth Layout
   login.php + register.php tarafından paylaşılır
   ================================================================ */

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

body {
  font-family: 'DM Sans', sans-serif;
  background: #f0f4f9;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ── Ana Container ──────────────────────────────────────── */
.auth-wrap {
  position: relative;
  display: flex;
  width: 960px;
  max-width: 100%;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.14);
  overflow: hidden;
  min-height: 620px;
}

/* ── Form Panelleri ─────────────────────────────────────── */
.auth-panel {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  overflow-y: auto;
  max-height: calc(100vh - 48px);
  position: relative;
  z-index: 1;
}

.login-panel  { order: 1; }
.register-panel { order: 2; }

/* ── Overlay (Kayan Lacivert Panel) ────────────────────── */
.auth-overlay {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 50%;
  background: linear-gradient(160deg, #1a3a5c 0%, #1a56db 100%);
  z-index: 10;
  overflow: hidden;
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  align-items: stretch;
}

/* Register modu: overlay sola kayar */
.register-mode .auth-overlay {
  transform: translateX(-100%);
}

/* ── Overlay İç İçerik ──────────────────────────────────── */
.ov-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 40px;
  color: #fff;
  position: relative;
  z-index: 2;
}

.ov-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ov-logo-icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.ov-logo-name { font-size: 16px; font-weight: 700; }

.ov-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 0;
  position: relative;
}

/* İçerik geçişleri */
.ov-for-login,
.ov-for-register {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.ov-for-register         { opacity: 0; pointer-events: none; }
.register-mode .ov-for-login    { opacity: 0; pointer-events: none; }
.register-mode .ov-for-register { opacity: 1; pointer-events: auto; transition-delay: 0.25s; }

.ov-title {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}
.ov-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin-bottom: 24px;
}

.ov-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.ov-feat     { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.78); }
.ov-feat-dot { width: 6px; height: 6px; border-radius: 50%; background: #93c5fd; flex-shrink: 0; }

.ov-cta-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}
.ov-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
  align-self: flex-start;
}
.ov-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.55);
}

.ov-bottom { font-size: 11px; color: rgba(255,255,255,0.28); }

/* ── Şehir Animasyonu ───────────────────────────────────── */
.ll-city {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.ll-bld {
  position: absolute;
  bottom: 0;
  background: rgba(255,255,255,0.07);
  border-radius: 3px 3px 0 0;
}
.ll-bld::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 10px 12px;
  background-position: 5px 8px;
}
.ll-bld::after {
  content: '';
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 10px;
  background: rgba(255,255,255,0.13);
  border-radius: 2px;
}
.b1 { width:34px; height:120px; left:6%;  animation: cityFloat 9s  ease-in-out infinite; }
.b2 { width:22px; height:75px;  left:14%; animation: cityFloat 7s  ease-in-out infinite 1.5s; }
.b3 { width:46px; height:170px; left:25%; animation: cityFloat 11s ease-in-out infinite 0.8s; }
.b4 { width:18px; height:55px;  left:36%; animation: cityFloat 6s  ease-in-out infinite 2s; }
.b5 { width:40px; height:140px; left:47%; animation: cityFloat 10s ease-in-out infinite 0.3s; }
.b6 { width:28px; height:95px;  left:60%; animation: cityFloat 8s  ease-in-out infinite 1.2s; }
.b7 { width:50px; height:185px; left:70%; animation: cityFloat 13s ease-in-out infinite 0.6s; }
.b8 { width:20px; height:65px;  left:82%; animation: cityFloat 7s  ease-in-out infinite 1.8s; }
.b9 { width:32px; height:110px; left:88%; animation: cityFloat 9s  ease-in-out infinite 2.5s; }

@keyframes cityFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ── Panel Başlığı ──────────────────────────────────────── */
.ap-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}
.ap-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #1a3a5c, #1a56db);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: #fff;
}
.ap-logo-name { font-size: 15px; font-weight: 700; color: #0f2137; }

.ap-title { font-size: 22px; font-weight: 700; color: #0f2137; margin-bottom: 6px; }
.ap-sub   { font-size: 13px; color: #64748b; margin-bottom: 28px; }

/* ── Form Elemanları ────────────────────────────────────── */
.form-group  { margin-bottom: 16px; }
.form-label  {
  font-size: 11px; font-weight: 600; color: #374151;
  display: block; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.input-wrap  { position: relative; }
.input-icon  {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: #94a3b8; font-size: 15px; pointer-events: none;
}
.form-control {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px 10px 38px;
  font-size: 13px; color: #0f2137;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-control.no-icon { padding-left: 14px; }
.form-control:focus {
  border-color: #1a56db;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.eye-btn {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; color: #94a3b8; font-size: 15px; padding: 0;
}
.eye-btn:hover { color: #1a56db; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn-submit {
  width: 100%;
  background: #1a56db; color: #fff;
  border: none; border-radius: 10px;
  padding: 12px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 4px;
}
.btn-submit:hover { background: #1348b8; }

.alert-err {
  background: #fef2f2; border: 1.5px solid #fecaca;
  border-radius: 10px; padding: 11px 14px;
  color: #e02424; font-size: 13px;
  margin-bottom: 18px;
  display: flex; align-items: flex-start; gap: 8px;
}
.alert-err ul { margin: 5px 0 0 2px; padding-left: 16px; }
.alert-err li { margin-bottom: 2px; }

.ap-divider { height: 1px; background: #f1f5f9; margin: 20px 0; }
.ap-links   { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.ap-link    { font-size: 13px; color: #64748b; text-decoration: none; }
.ap-link:hover   { color: #1a56db; }
.ap-link.primary { color: #1a56db; font-weight: 500; }

/* ── Kayıt Form Bölüm Etiketleri ───────────────────────── */
.sec-label {
  font-size: 11px; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 14px 0 10px;
  border-top: 1px solid #f1f5f9;
  margin-top: 4px;
  display: block;
}
.sec-label.first { border-top: none; padding-top: 0; }

/* ── Şifre Gücü ─────────────────────────────────────────── */
.strength-bar  { height: 3px; background: #f1f5f9; border-radius: 2px; overflow: hidden; margin-top: 5px; }
.strength-fill { height: 100%; border-radius: 2px; transition: all 0.3s; }
.field-hint    { font-size: 11px; color: #94a3b8; margin-top: 4px; }

/* ── Kayıt Başarı ───────────────────────────────────────── */
.reg-success { text-align: center; padding: 12px 0; }
.reg-success-icon {
  width: 60px; height: 60px;
  background: #f0fdf4; border: 2px solid #bbf7d0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #16a34a;
  margin: 0 auto 16px;
}
.reg-success-title { font-size: 19px; font-weight: 700; color: #0f2137; margin-bottom: 8px; }
.reg-success-body  { font-size: 13px; color: #64748b; line-height: 1.6; margin-bottom: 18px; }
.reg-steps { background: #f8fafc; border-radius: 10px; padding: 12px 14px; text-align: left; margin-bottom: 18px; }
.reg-step  {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 0; border-bottom: 1px solid #f1f5f9;
}
.reg-step:last-child { border-bottom: none; }
.reg-step-num  {
  width: 20px; height: 20px; border-radius: 50%;
  background: #1a56db; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.reg-step-text { font-size: 12px; color: #374151; padding-top: 2px; }

/* ── SMS Toggle ─────────────────────────────────────────── */
.sms-toggle-wrap { margin-bottom: 10px; }
.sms-toggle-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #475569; cursor: pointer;
}
.sms-toggle-hint { font-size: 11px; color: #94a3b8; margin-top: 4px; line-height: 1.5; }

/* ── Mobil ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  body { padding: 0; align-items: flex-start; }
  .auth-wrap   { border-radius: 0; flex-direction: column; min-height: 100vh; }
  .auth-overlay { display: none; }
  .auth-panel  { flex: none; max-width: 100%; width: 100%; padding: 40px 24px; max-height: none; }

  /* Hangi panel gösterilecek */
  .login-panel                    { display: flex; }
  .register-panel                 { display: none; }
  .register-mode .login-panel     { display: none; }
  .register-mode .register-panel  { display: flex; }

  /* Mobilde register paneli nereye gidecek butonu */
  .mobile-switch { display: block; text-align: center; margin-top: 20px; font-size: 13px; color: #64748b; }
  .mobile-switch a { color: #1a56db; font-weight: 500; text-decoration: none; }

  .form-row-2 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) { .mobile-switch { display: none; } }
