:root {
  color-scheme: light;
  --bg-start: #eef4ff; --bg-end: #f8fafc; --panel: rgba(255,255,255,.92);
  --text: #172033; --muted: #667085; --line: #dce4ef;
  --blue: #2563eb; --blue-dark: #1d4ed8; --green: #067647; --green-dark: #05603a;
  --orange: #b54708; --orange-dark: #93370d; --purple: #6941c6; --purple-dark: #53389e;
  --teal: #087e8b; --teal-dark: #05636e; --danger: #b42318;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 28px 16px;
  background: radial-gradient(circle at 15% 15%,rgba(37,99,235,.14),transparent 32%),
    radial-gradient(circle at 85% 80%,rgba(6,118,71,.12),transparent 30%),
    linear-gradient(145deg,var(--bg-start),var(--bg-end));
  color: var(--text); font-family: Arial,"Malgun Gothic",sans-serif;
}
main {
  width: min(850px,100%); padding: clamp(26px,5vw,48px); border: 1px solid rgba(220,228,239,.9);
  border-radius: 24px; background: var(--panel); box-shadow: 0 24px 70px rgba(31,50,81,.14);
  backdrop-filter: blur(8px);
}
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
h1 { margin: 0; font-size: clamp(28px,5vw,42px); letter-spacing: -.04em; }
.lead { margin: 12px 0 30px; color: var(--muted); font-size: 16px; line-height: 1.65; }
button,input { font: inherit; }
button { min-height: 40px; padding: 8px 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; cursor: pointer; }
button:hover { background: #f7f9fc; }
.login { width: min(430px,100%); margin: 8px auto 0; }
.login label { display: block; margin: 0 0 8px; font-weight: 800; }
.login input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 9px; }
.login .primary { width: 100%; min-height: 48px; margin-top: 14px; color: #fff; border-color: var(--blue); background: var(--blue); font-weight: 800; }
.login .primary:hover { background: var(--blue-dark); }
.message { margin-bottom: 16px; padding: 11px 13px; border: 1px solid #f0b4ae; border-radius: 8px; background: #fff1f0; color: var(--danger); }
.cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.card {
  display: flex; min-height: 210px; flex-direction: column; padding: 24px; border: 1px solid var(--line);
  border-radius: 17px; background: #fff; color: inherit; text-decoration: none;
  transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.card:hover,.card:focus-visible { transform: translateY(-3px); border-color: #aabbd4; box-shadow: 0 16px 35px rgba(31,50,81,.12); outline: none; }
.icon { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 20px; border-radius: 14px; background: #eaf1ff; color: var(--blue); font-size: 24px; font-weight: 800; }
.manual .icon { background: #e8f7ef; color: var(--green); }
.remote-aikey .icon { background: #fff2e8; color: var(--orange); }
.remote-android .icon { background: #f1ebff; color: var(--purple); }
.wide { grid-column: 1/-1; min-height: 170px; }
.pass .icon { background: #e7f8fa; color: var(--teal); }
.card h2 { margin: 0 0 9px; font-size: 22px; }
.card p { margin: 0; color: var(--muted); line-height: 1.55; }
.open { margin-top: auto; padding-top: 22px; color: var(--blue-dark); font-weight: 800; }
.manual .open { color: var(--green-dark); } .remote-aikey .open { color: var(--orange-dark); }
.remote-android .open { color: var(--purple-dark); } .pass .open { color: var(--teal-dark); }
footer { margin-top: 24px; color: #8993a4; font-size: 12px; text-align: center; }
@media (max-width:650px) {
  main { border-radius: 18px; } .top { display: block; } .top form { margin-top: 14px; }
  .cards { grid-template-columns: 1fr; } .card { min-height: 185px; } .wide { grid-column: auto; }
}
