:root { color-scheme: light; --text: #0f172a; --text-2: #475569; --muted: #8a94a6; --surface: #ffffff; --surface-2: #f5f7fa; --border: #dde2ea; --accent: #2a78d6; --accent-ink: #1c5cab; --accent-soft: #e3eefb; --good: #0b8a0b; --good-bg: #e4f5e4; --bad: #c62f2f; --bad-bg: #fde1e1; --warn: #9a6400; --warn-bg: #fff1cc; }
@media (prefers-color-scheme: dark) { :root { color-scheme: dark; --text: #eef0f4; --text-2: #b8bfcc; --muted: #7d8696; --surface: #181b21; --surface-2: #1f232b; --border: #2f3542; --accent: #4b93ec; --accent-ink: #9cc4f5; --accent-soft: #1c2a40; --good: #4cc44c; --good-bg: #173a17; --bad: #f06a6a; --bad-bg: #411c1c; --warn: #f2b72a; --warn-bg: #3a2d0a; } }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: #0b1220; display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
body.wide { align-items: flex-start; padding-top: 40px; }
.bg { position: fixed; inset: 0; z-index: -2; background: radial-gradient(1200px 600px at 10% 10%, #1e3a8a 0%, transparent 60%), radial-gradient(900px 500px at 90% 20%, #6d28d9 0%, transparent 55%), radial-gradient(900px 700px at 50% 100%, #0e7490 0%, transparent 55%), #0b1220; }
.blob { position: fixed; z-index: -1; width: 420px; height: 420px; border-radius: 50%; filter: blur(70px); opacity: .45; animation: float 14s ease-in-out infinite alternate; }
.blob.a { background: #2a78d6; top: -120px; left: -80px; }
.blob.b { background: #6250d6; bottom: -140px; right: -60px; animation-delay: -6s; }
@keyframes float { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.15); } }
.card { position: relative; width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 34px 34px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: in .5s ease; }
body.wide .card { max-width: 980px; padding: 28px 30px; }
@keyframes in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.logo { width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(135deg, #2a78d6, #6250d6); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; margin-bottom: 18px; box-shadow: 0 10px 24px rgba(42,120,214,.35); }
.head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.head .logo { margin: 0; width: 48px; height: 48px; font-size: 16px; }
.head h1 { margin: 0; font-size: 22px; }
.head .sp { flex: 1; }
h1 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.02em; }
h2 { font-size: 17px; margin: 26px 0 10px; }
p.sub { margin: 0 0 24px; color: var(--text-2); font-size: 15px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
input, select { width: 100%; font: inherit; font-size: 16px; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: 12px; background: transparent; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(42,120,214,.18); }
textarea { width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; background: transparent; color: var(--text); min-height: 80px; }
.btn, button { font: inherit; font-size: 16px; font-weight: 700; padding: 13px 18px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; cursor: pointer; transition: background .15s, transform .1s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover, button:hover { background: var(--accent-ink); }
.btn:active, button:active { transform: scale(.99); }
.btn.full, button.full { width: 100%; margin-top: 22px; }
.btn.ghost, button.ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover, button.ghost:hover { background: var(--accent-soft); }
.btn.danger, button.danger { background: var(--bad-bg); color: var(--bad); }
.btn.small, button.small { padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.msg { border-radius: 10px; padding: 11px 13px; font-weight: 600; font-size: 14px; margin: 14px 0; }
.msg.err { background: var(--bad-bg); color: var(--bad); }
.msg.ok { background: var(--good-bg); color: var(--good); }
.msg.info { background: var(--accent-soft); color: var(--accent-ink); }
.foot { margin-top: 20px; color: var(--text-2); font-size: 13px; text-align: center; }
.pw { position: relative; }
.pw .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: auto; margin: 0; padding: 6px 10px; font-size: 13px; background: transparent; color: var(--text-2); font-weight: 600; }
.pw .eye:hover { background: var(--surface-2); color: var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--text-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.tag.admin { background: var(--accent-soft); color: var(--accent-ink); }
.tag.user { background: var(--surface-2); color: var(--text-2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } .card { padding: 24px 20px; } }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
.box { border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; background: var(--surface-2); }
.box h2 { margin-top: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.linkbox { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--surface-2); border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; word-break: break-all; }
.muted { color: var(--muted); }
details summary { cursor: pointer; font-weight: 600; }
