/* ============================================================
   Hizli Numaralar - Split-Screen Giris Sayfasi (index.php)
   Sadece bu sayfaya ozel, bagimsiz stil dosyasi.
   ============================================================ */

:root {
  --auth-bg: #0a0a0a;
  --auth-surface: #141414;
  --auth-surface-2: #191919;
  --auth-border: rgba(255, 255, 255, 0.09);
  --auth-text: #f5f5f5;
  --auth-text-muted: #9a9a9a;
  --neon: #39ff14;
  --neon-ink: #06140a;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--auth-bg);
  color: var(--auth-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a {
  color: var(--neon);
  text-decoration: none;
}
a:hover {
  color: #7cff5a;
}

.split-screen {
  display: flex;
  min-height: 100vh;
}

/* ------------------------------------------------------------
   Sol Panel: Giris Formu
   ------------------------------------------------------------ */
.auth-panel {
  flex: 0 0 44%;
  max-width: 44%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background-color: var(--auth-bg);
  position: relative;
  z-index: 2;
}

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

.auth-mobile-logo {
  display: none;
  width: 100%;
  max-width: 150px;
  height: auto;
  margin: 0 auto 2rem;
}

.auth-title {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}

.auth-subtitle {
  color: var(--auth-text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
}

.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
.auth-alert.error {
  background-color: rgba(255, 82, 82, 0.1);
  border-color: rgba(255, 82, 82, 0.3);
  color: #ff8585;
}
.auth-alert.success {
  background-color: rgba(57, 255, 20, 0.08);
  border-color: rgba(57, 255, 20, 0.3);
  color: var(--neon);
}

/* Google butonu (marka kurallarina uygun beyaz zemin, tema farketmeksizin) */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #dadce0;
  color: #3c4043;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}
.btn-google:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  color: #3c4043;
}
.btn-google:active {
  transform: translateY(1px);
}
.btn-google svg {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--auth-text-muted);
  font-size: 0.8rem;
  margin: 1.5rem 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--auth-border);
}

.form-group {
  margin-bottom: 1.1rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--auth-text);
}
.form-group input {
  width: 100%;
  background-color: var(--auth-surface);
  border: 1px solid var(--auth-border);
  color: var(--auth-text);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-group input::placeholder {
  color: #6b6b6b;
}
.form-group input:focus {
  border-color: var(--neon);
  background-color: var(--auth-surface-2);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.15), 0 0 16px rgba(57, 255, 20, 0.2);
}

.btn-submit {
  width: 100%;
  background-color: var(--neon);
  color: var(--neon-ink);
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.1s ease, background-color 0.2s ease;
}
.btn-submit:hover {
  background-color: #52ff35;
  box-shadow: 0 0 22px rgba(57, 255, 20, 0.45);
}
.btn-submit:active {
  transform: translateY(1px);
}

.auth-footer-link {
  text-align: center;
  font-size: 0.9rem;
  color: var(--auth-text-muted);
  margin: 1.75rem 0 0;
}

/* --- Giris / Kayit gorunumleri arasi yumusak gecis --- */
.auth-view {
  transition: opacity 0.22s ease, transform 0.22s ease;
  opacity: 1;
  transform: translateX(0);
}
.auth-view.hidden {
  display: none;
}
.auth-view.leaving {
  opacity: 0;
  transform: translateX(-18px);
}
.auth-view.entering {
  opacity: 0;
  transform: translateX(18px);
}

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

/* ------------------------------------------------------------
   Sag Panel: Marka / Vizyon Alani (mesh gradient + isik huzmeleri)
   ------------------------------------------------------------ */
.brand-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0a0a0a;
  background-image:
    radial-gradient(38% 34% at 18% 12%, rgba(57, 255, 20, 0.14) 0%, rgba(57, 255, 20, 0) 70%),
    radial-gradient(42% 38% at 85% 88%, rgba(57, 255, 20, 0.1) 0%, rgba(57, 255, 20, 0) 70%),
    radial-gradient(30% 26% at 90% 15%, rgba(57, 255, 20, 0.07) 0%, rgba(57, 255, 20, 0) 70%);
  padding: 2rem;
}

.brand-panel-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.glow-blob-1 {
  width: 26rem;
  height: 26rem;
  background: rgba(57, 255, 20, 0.22);
  top: -6rem;
  left: -6rem;
}
.glow-blob-2 {
  width: 24rem;
  height: 24rem;
  background: rgba(57, 255, 20, 0.14);
  bottom: -7rem;
  right: -5rem;
}
.glow-blob-3 {
  width: 16rem;
  height: 16rem;
  background: rgba(57, 255, 20, 0.09);
  top: 38%;
  right: 12%;
}

.brand-panel-border {
  position: absolute;
  inset: 0;
  border-left: 1px solid rgba(57, 255, 20, 0.12);
  pointer-events: none;
}

.brand-content {
  text-align: center;
  max-width: 420px;
}

.brand-logo {
  width: 100%;
  max-width: 210px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 1.25rem;
  display: block;
}

.brand-tagline {
  font-weight: 300;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
  color: rgba(245, 245, 245, 0.88);
  margin: 0;
}
.brand-tagline strong {
  font-weight: 600;
  color: var(--neon);
  text-shadow: 0 0 22px rgba(57, 255, 20, 0.35);
}

/* --- Canli Islem Akisi: gercekci telefon mockup'i --- */
.phone-mockup {
  position: relative;
}

/* Yan tuslar (guc + ses) - govdenin disina tasan ince cizgiler */
.phone-btn {
  position: absolute;
  background: linear-gradient(180deg, #2c2c2c, #0d0d0d);
  border-radius: 3px;
  z-index: 1;
}
.phone-btn-power {
  right: -3px;
  top: 118px;
  width: 3px;
  height: 56px;
}
.phone-btn-volume-up {
  left: -3px;
  top: 96px;
  width: 3px;
  height: 38px;
}
.phone-btn-volume-down {
  left: -3px;
  top: 142px;
  width: 3px;
  height: 38px;
}

.phone-frame {
  position: relative;
  width: 280px;
  max-width: 76vw;
  height: 500px;
  max-height: 52vh;
  border-radius: 46px;
  background: linear-gradient(160deg, #232323, #060606 65%);
  padding: 14px;
  box-shadow:
    0 40px 80px -24px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: flex;
}

.phone-camera {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  border-radius: 999px;
  background: #030303;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  z-index: 3;
}

.phone-screen {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(57, 255, 20, 0.05), rgba(57, 255, 20, 0) 35%),
    rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  padding: 2.5rem 0.75rem 2rem;
  display: flex;
  flex-direction: column;
}

.phone-home-indicator {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  z-index: 3;
}

.live-feed-title {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
}

.live-feed-viewport {
  position: relative;
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
}

.live-feed-track {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  animation: liveFeedScroll 20s linear infinite;
}

.phone-mockup:hover .live-feed-track {
  animation-play-state: paused;
}

@keyframes liveFeedScroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.live-feed-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: rgba(20, 20, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.live-feed-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.live-feed-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.live-feed-info strong {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
}
.live-feed-meta {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-feed-code {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .live-feed-track {
    animation: none;
  }
}

/* ------------------------------------------------------------
   Giris animasyonu: elementler asagidan yukari yumusak belirir
   ------------------------------------------------------------ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeInUp 0.75s ease forwards;
}
.fade-up.d1 { animation-delay: 0.05s; }
.fade-up.d2 { animation-delay: 0.15s; }
.fade-up.d3 { animation-delay: 0.25s; }
.fade-up.d4 { animation-delay: 0.35s; }
.fade-up.d5 { animation-delay: 0.45s; }
.fade-up.d6 { animation-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    animation: none;
    opacity: 1;
  }
}

/* ------------------------------------------------------------
   Responsive: mobilde marka paneli gizlenir, form tam genislik olur
   ------------------------------------------------------------ */
@media (max-width: 991.98px) {
  .brand-panel {
    display: none;
  }
  .auth-panel {
    flex: 1 1 100%;
    max-width: 100%;
    min-height: 100vh;
  }
  .auth-mobile-logo {
    display: block;
  }
}

@media (max-width: 420px) {
  .auth-panel {
    padding: 2.25rem 1.25rem;
  }
  .auth-title {
    font-size: 1.6rem;
  }
}
