/* Kodend Panel — giriş ekranları */
:root {
  --ink: #10142B; --muted: #697090; --faint: #9CA2BC; --line: #E3E6EF; --bg: #FFFFFF; --soft: #F5F6FA;
  --accent: #2F49D1; --accent-2: #233AB0; --brand: #CB2228;
  --ok: #0F7B55; --err: #C42B2B; --info: #0B66C3;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #E9EBF7; --muted: #9399BC; --faint: #6A7097; --line: #262C4C; --bg: #0E1226; --soft: #151A35; --accent: #8C9CFF; --accent-2: #A8B4FF; --ok: #4ADE9B; --err: #F87171; --info: #6CB4FF; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.auth { display: grid; grid-template-columns: minmax(380px, 520px) minmax(0, 1fr); min-height: 100vh; }

/* Form tarafı */
.auth-panel { display: flex; flex-direction: column; padding: 28px clamp(24px, 4vw, 56px); }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand span:last-child { display: flex; flex-direction: column; }
.auth-brand b { font-weight: 700; }
.auth-brand small { color: var(--faint); font-size: 12.5px; }
.auth-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font: 800 18px "Bricolage Grotesque", sans-serif; background: linear-gradient(135deg, var(--brand), #7C3AED 70%, #2F49D1); box-shadow: 0 8px 20px -8px rgba(124,58,237,.6); }
.auth-body { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 380px; margin: 0 auto; padding: 32px 0; }
.auth-body h1 { margin: 0; font: 800 32px/1.1 "Bricolage Grotesque", sans-serif; letter-spacing: -.025em; }
.auth-lead { margin: 10px 0 28px; color: var(--muted); }
.auth-form { display: flex; flex-direction: column; gap: 8px; }
.auth-form label { font-size: 13px; font-weight: 600; color: var(--ink); }
.auth-form input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font-weight: 500; font-size: 15px; font-family: inherit; margin-bottom: 10px; transition: border-color .15s, box-shadow .15s; }
.auth-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.auth-form button[type="submit"] { height: 50px; margin-top: 8px; border: 0; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 15px; font-family: inherit; cursor: pointer; transition: transform .1s, opacity .15s; }
.auth-form button[type="submit"]:hover { opacity: .92; }
.auth-form button[type="submit"]:active { transform: translateY(1px); }
.auth-row { display: flex; justify-content: space-between; align-items: baseline; }
.auth-row a { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.auth-row a:hover { text-decoration: underline; }
.auth-lead a { color: var(--accent); font-weight: 700; text-decoration: none; }
.auth-lead a:hover { text-decoration: underline; }
.auth-pass { position: relative; }
.auth-pass input { padding-right: 76px; }
.auth-eye { position: absolute; right: 8px; top: 7px; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--soft); color: var(--muted); font-weight: 600; font-size: 12.5px; font-family: inherit; cursor: pointer; }
.auth-eye:hover { color: var(--ink); }
.auth-code { font-family: "JetBrains Mono", monospace !important; font-size: 22px !important; letter-spacing: .5em; text-align: center; height: 56px !important; }
.auth-alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-bottom: 20px; border: 1px solid transparent; }
.auth-alert.is-err { background: color-mix(in srgb, var(--err) 10%, transparent); color: var(--err); border-color: color-mix(in srgb, var(--err) 25%, transparent); }
.auth-alert.is-info { background: color-mix(in srgb, var(--info) 10%, transparent); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.auth-alert.is-ok { background: color-mix(in srgb, var(--ok) 10%, transparent); color: var(--ok); }
.mono { font-family: "JetBrains Mono", monospace; letter-spacing: .15em; }
.auth-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--faint); }
.auth-foot a { color: var(--muted); text-decoration: none; font-weight: 600; }
.auth-foot a:hover { color: var(--ink); }

/* Görsel taraf */
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 48px; padding: 48px; color: #E9EBF7; background: #0B1030; }
.auth-art-glow { position: absolute; inset: 0; background: radial-gradient(600px 380px at 80% 10%, rgba(124,58,237,.55), transparent 60%), radial-gradient(520px 360px at 10% 90%, rgba(203,34,40,.45), transparent 60%), radial-gradient(500px 300px at 50% 50%, rgba(47,73,209,.4), transparent 60%); }
.auth-art-glow::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000, transparent 75%); }
.auth-cards { position: relative; width: min(520px, 100%); height: 330px; }
.ac { position: absolute; border-radius: 18px; padding: 16px 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); display: flex; gap: 12px; align-items: center; }
.ac small { display: block; color: #A9AED6; font-size: 12px; }
.ac b { font-weight: 700; color: #fff; }
.ac-rev { left: 0; top: 20px; width: 300px; flex-direction: column; align-items: flex-start; gap: 4px; animation: float 7s ease-in-out infinite; }
.ac-rev b { font: 800 32px/1.1 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; }
.ac-rev svg { width: 100%; height: 50px; margin-top: 6px; }
.ac-rev path { fill: none; stroke: #8C9CFF; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-dasharray: 400; animation: draw 2.4s ease-out both; }
.ac-order { right: 0; top: 0; animation: float 6s -2s ease-in-out infinite; }
.ac-dot { width: 12px; height: 12px; border-radius: 50%; background: #4ADE9B; box-shadow: 0 0 0 0 rgba(74,222,155,.6); animation: ping 2s infinite; }
.ac-stock { right: 20px; top: 150px; animation: float 8s -4s ease-in-out infinite; }
.ac-ring { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #FFB547; animation: spin 1.6s linear infinite; }
.ac-task { left: 40px; bottom: 0; width: 280px; flex-direction: column; align-items: stretch; gap: 8px; animation: float 7.5s -1s ease-in-out infinite; }
.ac-task ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.ac-task li { display: flex; gap: 8px; align-items: center; }
.ac-task i { width: 8px; height: 8px; border-radius: 50%; background: #FF8A8C; }
.ac-task li:nth-child(2) i { background: #FFB547; }
.ac-task li:nth-child(3) i { background: #8C9CFF; }
.auth-art-copy { position: relative; text-align: center; max-width: 440px; }
.auth-art-copy h2 { margin: 0 0 10px; font: 800 30px/1.15 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; color: #fff; }
.auth-art-copy p { margin: 0; color: #A9AED6; }
.auth-art-copy kbd { font: 600 11px "JetBrains Mono", monospace; padding: 2px 6px; border-radius: 5px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes draw { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(74,222,155,.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(74,222,155,0); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { display: none; }
  .auth-panel { padding: 22px 16px; }
}
@media (prefers-reduced-motion: reduce) { .ac, .ac-rev path, .ac-dot, .ac-ring { animation: none !important; } }
