/* Giriş / kayıt (5.58): solda marka paneli (koyu, sıcak ışık), sağda kart. Temanın renkleriyle; telefonda tek sütun,
   marka üstte küçük. Kipler: login, register, forgot, reset (#login[data-mode]). */

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); }
.auth[hidden] { display: none; }

/* ---------- Marka paneli ---------- */
.auth-side {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 40px 56px; border-right: 1px solid var(--line);
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    linear-gradient(160deg, color-mix(in srgb, var(--panel) 92%, #000), var(--bg));
}
.auth-glow { position: absolute; inset: 0; pointer-events: none; filter: blur(70px); opacity: 0.55; }
.auth-glow i { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; }
.auth-glow i:first-child { right: -8%; top: 18%; background: color-mix(in srgb, var(--accent) 45%, transparent); animation: au-drift 18s ease-in-out infinite alternate; }
.auth-glow i:last-child { left: 10%; bottom: -14%; background: color-mix(in srgb, var(--n3) 35%, transparent); animation: au-drift 23s ease-in-out infinite alternate-reverse; }
@keyframes au-drift { to { transform: translate(-12%, 10%) scale(1.15); } }
.auth-logo { position: relative; color: var(--fg); font-size: 15px; font-weight: 800; letter-spacing: 0.06em; text-decoration: none; }
.auth-logo b { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
.auth-logo.small { display: none; }
.auth-pitch { position: relative; display: grid; gap: 18px; max-width: 520px; }
.auth-pitch h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -0.01em; color: var(--fg); }
.auth-pitch h1 span { color: var(--accent); }
.auth-pitch p { color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 440px; }
.auth-points { list-style: none; display: grid; gap: 10px; margin-top: 6px; }
.auth-points li { display: flex; align-items: center; gap: 12px; color: var(--fg); font-size: 13px; }
.auth-points img { width: 28px; height: 28px; padding: 4px; border-radius: 9px; background: color-mix(in srgb, var(--fg) 6%, transparent); }
.auth-side-foot { position: relative; color: var(--faint); font-size: 11px; }
.auth-side-foot a { color: var(--muted); }

/* ---------- Kart ---------- */
.auth-main { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 400px; }
.auth .seg { display: flex; gap: 4px; margin-bottom: 26px; padding: 4px; border-radius: 10px; background: var(--raise); }
.auth .seg button { flex: 1; height: 36px; border-radius: 7px; color: var(--muted); font-weight: 600; transition: background 0.15s, color 0.15s; }
.auth .seg button:hover { color: var(--fg); }
.auth .seg button.on { background: var(--panel); color: var(--fg); box-shadow: 0 1px 0 color-mix(in srgb, var(--fg) 6%, transparent), 0 2px 8px -4px rgb(0 0 0 / 0.5); }
.auth[data-mode="forgot"] .seg, .auth[data-mode="reset"] .seg { display: none; }
.auth-form { display: none; }
.auth-form.on { display: grid; gap: 14px; animation: au-in 0.2s ease-out; }
@keyframes au-in { from { opacity: 0; transform: translateY(4px); } }
.auth-form h2 { color: var(--fg); font-size: 22px; font-weight: 800; }
.auth-sub { margin-top: -8px; color: var(--muted); font-size: 13px; }
.fld { display: grid; gap: 6px; }
.fld > span:first-child { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.fld input {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--panel); color: var(--fg); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.fld input::placeholder { color: var(--faint); }
.fld input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.fld input:focus-visible { outline: none; }
.fld small { color: var(--faint); font-size: 11px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 70px; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; height: 30px; padding: 0 10px; border-radius: 7px; transform: translateY(-50%);
  color: var(--muted); font-size: 11px; font-weight: 600;
}
.pw-eye:hover { background: var(--raise); color: var(--fg); }
/* Şifre gücü: 4 parça */
.pw-meter { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.pw-meter b { display: block; width: 0; height: 100%; border-radius: 2px; background: var(--err); transition: width 0.2s, background 0.2s; }
.pw-meter[data-score="1"] b { width: 25%; background: var(--err); }
.pw-meter[data-score="2"] b { width: 50%; background: var(--warn); }
.pw-meter[data-score="3"] b { width: 75%; background: color-mix(in srgb, var(--ok) 70%, var(--warn)); }
.pw-meter[data-score="4"] b { width: 100%; background: var(--ok); }
.auth-link { justify-self: end; margin-top: -6px; color: var(--muted); font-size: 12px; }
.auth-link:hover { color: var(--accent); }
.auth-link.center { justify-self: center; margin-top: 0; }
.auth .submit {
  height: 46px; margin-top: 4px; border-radius: 10px; background: var(--accent); color: var(--accent-fg);
  font-size: 14px; font-weight: 800; letter-spacing: 0.02em; transition: filter 0.15s, transform 0.08s;
}
.auth .submit:hover:not(:disabled) { filter: brightness(1.08); }
.auth .submit:active:not(:disabled) { transform: scale(0.99); }
.auth .submit:disabled { opacity: 0.6; cursor: wait; }
.form-msg { min-height: 18px; color: var(--err); font-size: 12px; line-height: 1.5; }
.form-msg:empty { min-height: 0; margin-top: -14px; }
.form-msg.ok { color: var(--ok); }
.auth-fine { color: var(--faint); font-size: 11px; line-height: 1.5; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-logo.small { display: block; margin-bottom: 22px; text-align: center; }
  .auth-main { align-items: start; padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-glow i, .auth-logo b, .auth-form.on { animation: none; }
}
