:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font: 14px/1.5 "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: #9ca3af; background: #0a0d12; -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
.split { display: grid; grid-template-columns: 55% 45%; min-height: 100vh; }

.brand-panel {
  position: relative; overflow: hidden; display: flex; align-items: center; padding: 64px;
  background: radial-gradient(900px 500px at 70% 40%, rgba(34, 211, 238, 0.10), transparent 60%),
              radial-gradient(700px 500px at 20% 90%, rgba(59, 130, 246, 0.10), transparent 60%), #0a0d12;
  border-right: 1px solid #141b26;
}
.bg-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.22; }
.bg-lines path { fill: none; stroke: #22d3ee; stroke-width: 1.2; }
.bg-lines path:nth-child(2) { stroke: #3b82f6; opacity: 0.7; }
.bg-lines path:nth-child(3) { stroke: #64748b; opacity: 0.5; }
.brand-inner { position: relative; max-width: 520px; }
.logo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 42px; }
.logo-name { color: #f9fafb; font-size: 24px; font-weight: 750; letter-spacing: -0.02em; }
.logo-sub { font-size: 12.5px; color: #7c8aa0; }
.brand-inner h1 { color: #f9fafb; font-size: 36px; line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 28px; font-weight: 760; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.features li { color: #cbd5e1; font-size: 15px; display: flex; gap: 12px; align-items: center; }
.f-icon { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #22d3ee; background: rgba(34, 211, 238, 0.10); border: 1px solid rgba(34, 211, 238, 0.25); }

.form-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; gap: 18px;
  background: radial-gradient(500px 400px at 50% 45%, rgba(34, 211, 238, 0.07), transparent 70%), #0a0d12; }
.card { width: min(420px, 100%); background: #121821; border: 1px solid #1f2937; border-radius: 16px; padding: 32px 30px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.mobile-logo { display: none; align-items: center; gap: 10px; color: #f9fafb; font-weight: 750; font-size: 18px; margin-bottom: 18px; }
.card h2 { color: #f9fafb; font-size: 24px; margin: 0; letter-spacing: -0.02em; }
.sub { margin: 6px 0 24px; color: #9ca3af; }
label { display: block; color: #9ca3af; font-size: 13px; font-weight: 550; margin: 14px 0 6px; }
input {
  width: 100%; height: 44px; padding: 0 13px; border-radius: 10px; border: 1px solid #263244;
  background: #0d131b; color: #f9fafb; font: inherit; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: #22d3ee; box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18); }
input.invalid { border-color: #ef4444; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.eye { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #7c8aa0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.eye:hover { color: #f9fafb; }
.err { color: #ef4444; font-size: 12.5px; min-height: 0; margin-top: 4px; }
.form-err { margin-top: 14px; }
.hint { font-size: 12.5px; color: #7c8aa0; margin: 6px 0 0; }
.primary {
  width: 100%; height: 46px; margin-top: 22px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(90deg, #22d3ee, #3b82f6); color: #fff; font: inherit; font-size: 15px; font-weight: 750;
  display: flex; align-items: center; justify-content: center; gap: 10px; transition: box-shadow .2s, filter .2s;
}
.primary:hover { box-shadow: 0 0 28px rgba(34, 211, 238, 0.35); }
.primary:disabled { filter: saturate(0.6) brightness(0.85); cursor: wait; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.forgot { text-align: center; margin: 14px 0 0; font-size: 13.5px; }
.forgot a { color: #22d3ee; text-decoration: none; }
.forgot a:hover { text-decoration: underline; }
.hint code { display: block; margin-top: 4px; color: #fbbf24; font-size: 11.5px; }
.ok-msg { margin-top: 14px; color: #22c55e; font-size: 13px; }
.risk { font-size: 12px; color: #6b7280; margin: 22px 0 0; text-align: center; }
.notice { font-size: 13px; background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.3); color: #e5e7eb; padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; }
.notice code { display: block; margin-top: 6px; font-size: 11.5px; color: #fbbf24; word-break: break-all; }
footer { font-size: 12px; color: #4b5563; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .brand-panel { display: none; }
  .mobile-logo { display: flex; }
}
