/* ════════════════════════════════════════════
   RUNESOLVE — LOGIN  (MatDash tarzı: ortada kart + geometrik fon)
════════════════════════════════════════════ */

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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #11142d;
}

/* ── ARKA PLAN (geometrik mor-mavi) ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  position: relative;
  overflow: hidden;
  background: #4b32c3;
  background:
     radial-gradient(900px 600px at 12% 18%, rgba(124,92,246,.55), transparent 60%),
     radial-gradient(800px 600px at 88% 82%, rgba(236,72,153,.30), transparent 60%),
     linear-gradient(135deg, #3a1f9e 0%, #5b3fd6 45%, #2b1f74 100%);
}
/* fasetli geometrik şekiller */
.login-page::before,
.login-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: .5;
}
.login-page::before {
  width: 720px; height: 720px; top: -240px; left: -160px;
  background: linear-gradient(135deg, rgba(255,255,255,.10), transparent 60%);
  transform: rotate(28deg); border-radius: 60px;
}
.login-page::after {
  width: 640px; height: 640px; bottom: -260px; right: -120px;
  background: linear-gradient(135deg, rgba(236,72,153,.18), transparent 60%);
  transform: rotate(20deg); border-radius: 60px;
}

/* Dekoratif rune'ler — gizli (fon yeterince dolu) */
.bg-runes { display: none; }

/* ── KART ── */
.login-card {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  max-width: 920px;
  min-height: 540px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(10,8,40,.45);
  overflow: hidden;
}

/* ── SOL: FORM ── */
.login-form-panel {
  flex: 1 1 52%;
  padding: 46px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-logo { margin: 0 0 22px; }
.card-logo img, .card-logo svg { height: 38px; width: auto; display: block; }

.card-title {
  font-size: 26px;
  font-weight: 800;
  color: #11142d;
  letter-spacing: -.4px;
  margin-bottom: 6px;
}
.card-sub { font-size: 13.5px; color: #8b90a7; margin-bottom: 26px; }
.tenant-slug { color: #5b3fd6; font-weight: 700; font-size: 12.5px; }

/* Error */
.alert-error {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-radius: 10px;
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  font-size: 12.5px; font-weight: 500; margin-bottom: 18px;
}
.alert-error svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 700; color: #3b3f54;
  margin-bottom: 7px;
}
.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 13px; width: 16px; height: 16px; stroke: #aab; pointer-events: none; }
.input-wrap input {
  width: 100%; padding: 12px 14px 12px 40px;
  border-radius: 10px; border: 1.5px solid #e6e8f0; background: #fff;
  color: #11142d; font-size: 14px; font-family: inherit; outline: none;
  transition: border-color .14s, box-shadow .14s;
}
.input-wrap input::placeholder { color: #b6bacb; }
.input-wrap input:focus { border-color: #5b3fd6; box-shadow: 0 0 0 3px rgba(91,63,214,.13); }
.eye-btn { position: absolute; right: 11px; background: none; border: none; cursor: pointer; padding: 4px; color: #aab; display: flex; }
.eye-btn svg { width: 17px; height: 17px; stroke: currentColor; }
.eye-btn:hover { color: #5b3fd6; }

.form-bottom { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 22px; }
.remember-me { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #6b7090; cursor: pointer; font-weight: 500; }
.remember-me input[type="checkbox"] { accent-color: #5b3fd6; width: 15px; height: 15px; }
.forgot-link { font-size: 12.5px; color: #5b3fd6; text-decoration: none; font-weight: 600; }
.forgot-link:hover { text-decoration: underline; }

.login-btn {
  width: 100%; padding: 13px; border-radius: 11px; border: none;
  background: linear-gradient(135deg, #2bb0fb 0%, #0e88d4 100%);
  color: #fff; font-size: 14.5px; font-weight: 700; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 8px 22px rgba(34,165,241,.35); transition: filter .14s, transform .1s;
}
.login-btn:hover { filter: brightness(1.06); }
.login-btn:active { transform: translateY(1px); }
.login-btn:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
.btn-arrow { width: 17px; height: 17px; }
.btn-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SAĞ: TANITIM ── */
.login-brand {
  flex: 1 1 48%;
  background: linear-gradient(160deg, #f3f1ff 0%, #eaf4ff 100%);
  padding: 46px 42px;
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid #eef0f6;
}
.brand-content { width: 100%; }
.brand-logo { display: none; }
.brand-illus { width: 100%; max-width: 240px; margin: 0 auto 26px; display: block; }
.brand-name { font-size: 20px; font-weight: 800; color: #11142d; text-align: center; margin-bottom: 6px; }
.brand-tagline { font-size: 13px; color: #6b7090; text-align: center; margin-bottom: 26px; line-height: 1.5; }
.brand-features { display: flex; flex-direction: column; gap: 12px; }
.brand-feature { display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 600; color: #3b3f54; background: #fff; border: 1px solid #ececff; border-radius: 11px; padding: 11px 14px; }
.brand-feature svg { width: 17px; height: 17px; stroke: #5b3fd6; flex-shrink: 0; }
.brand-powered { font-size: 11px; color: #9aa0b8; text-align: center; margin-top: 22px; }
.brand-powered span { color: #5b3fd6; font-weight: 800; }

/* ── DİL SEÇİCİ ── */
.lang-switcher { position: absolute; top: 22px; right: 26px; display: flex; gap: 5px; z-index: 3; }
.lang-btn { padding: 5px 11px; border-radius: 7px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all .13s; backdrop-filter: blur(4px); }
.lang-btn:hover { background: rgba(255,255,255,.22); }
.lang-btn.active { background: #fff; border-color: #fff; color: #5b3fd6; }

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .login-brand { display: none; }
  .login-card { max-width: 440px; }
  .login-form-panel { flex-basis: 100%; padding: 40px 32px; }
}
@media (max-width: 460px) {
  .login-page { padding: 14px; }
  .login-form-panel { padding: 32px 22px; }
}
