@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

/* ── AUTH — Tam Siyah & Beyaz iOS Teması ── */
:root {
  --bg:    #000000;
  --bg2:   #0a0a0a;
  --white: #FFFFFF;
  --w90:   rgba(255,255,255,0.90);
  --w60:   rgba(255,255,255,0.60);
  --w30:   rgba(255,255,255,0.30);
  --w12:   rgba(255,255,255,0.12);
  --w07:   rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.10);
  --red:   #FF3B30;
  --green: #34C759;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, 'Inter', BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--w90);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 55%);
}

/* ── SPLASH ── */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  animation: splashFade 0.4s ease 1.4s forwards;
}
@keyframes splashFade { to { opacity: 0; pointer-events: none; visibility: hidden; } }

.splash-brand {
  font-size: 4.5rem; font-weight: 900; letter-spacing: 4px; color: #fff;
  font-family: 'Space Mono', monospace;
  animation: splashBrand 0.7s cubic-bezier(.22,1,.36,1) 0.2s both;
  text-shadow: 0 0 60px rgba(255,255,255,0.25);
}
@keyframes splashBrand {
  from { opacity: 0; transform: scale(0.85); letter-spacing: 16px; }
  to   { opacity: 1; transform: scale(1);    letter-spacing: 4px; }
}

.splash-line {
  width: 50px; height: 1px; background: rgba(255,255,255,0.22); margin-top: 28px;
  animation: splashLine 0.5s ease 0.9s both;
}
@keyframes splashLine { from { width: 0; opacity: 0; } to { width: 50px; opacity: 1; } }

/* Dekoratif elementler (lag azaltma için kapalı) */
.scanline { display: none; }
.corner   { display: none; }

/* ── LANG SWITCHER ── */
.lang-wrap { position: fixed; top: 18px; right: 18px; z-index: 100; }
.lang-btn {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  color: var(--w60); padding: 7px 13px; border-radius: 10px;
  font-size: .78rem; cursor: pointer; display: flex; align-items: center; gap: 7px;
  font-family: inherit; transition: all .2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.12); color: var(--w90); }
.arr { font-size: .6rem; opacity: .5; }
.lang-menu {
  position: absolute; top: calc(100% + 7px); right: 0;
  background: rgba(10,10,10,0.98); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 13px; padding: 6px; min-width: 145px;
  box-shadow: 0 20px 50px rgba(0,0,0,.85);
  display: none;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.lang-menu.show { display: block; animation: fadeUp .18s ease; }
@keyframes fadeUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
.lang-menu a {
  display: block; padding: 9px 13px; border-radius: 9px;
  color: var(--w60); font-size: .82rem; text-decoration: none; transition: all .15s;
}
.lang-menu a:hover { background: rgba(255,255,255,0.08); color: var(--w90); }
.lang-menu a.cur { background: rgba(255,255,255,0.1); color: #fff; font-weight: 600; }

/* ── MAIN WRAP ── */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px 60px; position: relative; z-index: 10;
}
.auth-box { width: 100%; max-width: 390px; }

/* ── LOGO ── */
.logo {
  text-align: center; margin-bottom: 32px;
  animation: logoIn .6s cubic-bezier(.22,1,.36,1) both;
}
@keyframes logoIn { from{opacity:0;transform:translateY(-18px)} to{opacity:1;transform:none} }
.logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 18px;
  background: #ffffff; color: #000; font-size: 1.6rem;
  margin-bottom: 14px;
  box-shadow: 0 8px 32px rgba(255,255,255,0.14);
}
.logo h1 {
  font-weight: 900; letter-spacing: 4px; color: #fff; text-transform: uppercase;
}
.logo p { font-size: .6rem; color: var(--w30); letter-spacing: 3px; text-transform: uppercase; margin-top: 5px; }

/* ── AUTH CARD ── */
.auth-card {
  background: rgba(10,10,10,0.92); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px; padding: 32px 28px;
  box-shadow: 0 40px 80px rgba(0,0,0,.8);
  position: relative; overflow: hidden;
  animation: cardup .45s cubic-bezier(.22,1,.36,1) both;
}
@keyframes cardup { from{opacity:0;transform:translateY(20px) scale(.97)} to{opacity:1;transform:none} }
.auth-card::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
}

.card-title { font-weight: 700; font-size: 1.3rem; color: #fff; margin-bottom: 4px; }
.card-sub { font-size: .72rem; color: var(--w30); margin-bottom: 24px; }

/* ── ALERTS ── */
.alert {
  padding: 12px 14px; border-radius: 12px; margin-bottom: 16px;
  font-size: .82rem; display: flex; align-items: center; gap: 8px;
  animation: risein .28s ease both;
}
@keyframes risein { from{opacity:0;transform:translateY(-5px)} to{opacity:1;transform:none} }
.alert-error   { background: rgba(255,59,48,0.10);  border: 1px solid rgba(255,59,48,0.28);  color: #FF6B63; }
.alert-success { background: rgba(52,199,89,0.10);  border: 1px solid rgba(52,199,89,0.28);  color: #4CD966; }

/* ── FORM ── */
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: .6rem; font-weight: 700;
  color: var(--w30); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px;
}
.input-wrap { position: relative; }
.input-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); font-size: .9rem;
  opacity: .3; pointer-events: none;
}
.input-wrap input {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12); color: #fff;
  padding: 14px 14px 14px 42px; border-radius: 13px;
  font-size: 1rem; outline: none; transition: all .22s;
  -webkit-appearance: none; appearance: none; font-family: inherit;
}
.input-wrap input:focus {
  border-color: rgba(255,255,255,0.45);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.08);
}
.input-wrap input::placeholder { color: rgba(255,255,255,0.2); }

/* ── BUTTON ── */
.btn-main {
  width: 100%; padding: 16px;
  background: #ffffff; color: #000000;
  border: none; border-radius: 14px;
  font-family: inherit; font-weight: 800; font-size: .95rem;
  letter-spacing: 1.5px; cursor: pointer; margin-top: 6px;
  transition: all .25s; min-height: 52px;
  text-transform: uppercase;
  box-shadow: 0 6px 24px rgba(255,255,255,0.14);
  -webkit-tap-highlight-color: transparent;
}
.btn-main:hover  { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(255,255,255,0.22); }
.btn-main:active { transform: scale(.98); }

/* ── FOOTER ── */
.auth-footer { text-align: center; margin-top: 20px; font-size: .85rem; color: var(--w30); }
.auth-footer a { color: #fff; text-decoration: none; font-weight: 600; transition: opacity .15s; }
.auth-footer a:hover { opacity: .7; }

/* ── MOBILE ── */
@media (max-width: 480px) {
  .auth-wrap { padding: 20px 14px 50px; align-items: flex-start; padding-top: 70px; }
  .auth-card { padding: 24px 18px; border-radius: 20px; }
  .logo { margin-bottom: 24px; }
  .input-wrap input { font-size: .95rem; padding: 15px 14px 15px 42px; }
  .btn-main { padding: 17px; font-size: .9rem; min-height: 54px; }
  .splash-brand { font-size: 3.2rem; }
}
