:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f6f7fb;
  background: #07090f;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(106, 76, 255, 0.22), transparent 30rem),
    radial-gradient(circle at 90% 10%, rgba(24, 196, 162, 0.14), transparent 28rem),
    #07090f;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 72px; }
.brand { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin-bottom: 30px; }
.mark { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(145deg, #7d62ff, #4934c7); font-size: 25px; font-weight: 800; box-shadow: 0 16px 40px rgba(79, 56, 201, .34); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(28px, 5vw, 44px); letter-spacing: -.04em; }
h2 { margin-bottom: 10px; font-size: 22px; letter-spacing: -.02em; }
.subtitle, .card p { color: #aeb4c6; line-height: 1.6; }
.eyebrow { margin-bottom: 8px !important; color: #8f7cff !important; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.badge { align-self: start; padding: 9px 12px; border: 1px solid #2d3343; border-radius: 999px; background: rgba(18, 22, 32, .78); color: #b8bfd1; font-size: 13px; }
.badge[data-state="active"] { border-color: rgba(40, 211, 163, .45); color: #64e4bf; background: rgba(22, 103, 83, .18); }
.card { padding: 26px; border: 1px solid rgba(139, 150, 182, .17); border-radius: 24px; background: rgba(17, 20, 30, .82); box-shadow: 0 24px 70px rgba(0,0,0,.27); backdrop-filter: blur(18px); }
#loginView, #enrollView { max-width: 620px; margin: 64px auto 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.status-card { background: linear-gradient(145deg, rgba(83, 61, 196, .26), rgba(17, 20, 30, .9) 55%); }
label { display: block; margin: 18px 0 8px; color: #dce0eb; font-size: 14px; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid #313749; border-radius: 14px; padding: 13px 14px; color: #f8f9fc; background: #0c0f17; outline: none; }
textarea { resize: vertical; min-height: 150px; }
input:focus, textarea:focus { border-color: #8069ff; box-shadow: 0 0 0 3px rgba(128,105,255,.15); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.primary, .secondary, .ghost { border-radius: 13px; padding: 12px 16px; border: 1px solid transparent; font-weight: 750; }
.primary { margin-top: 18px; color: white; background: linear-gradient(135deg, #7660f5, #5743d3); box-shadow: 0 10px 26px rgba(85,65,207,.28); }
.primary:disabled { opacity: .42; cursor: not-allowed; }
.secondary { color: #e8e9f0; border-color: #394052; background: #181c27; }
.ghost { color: #aeb4c6; background: transparent; }
.message { min-height: 1.4em; margin-top: 12px !important; font-size: 14px; }
.message[data-kind="error"] { color: #ff8d98; }
.message[data-kind="success"] { color: #65dfba; }
.tasks-card { margin-top: 20px; }
.section-title, .task-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.task-list { display: grid; gap: 12px; margin-top: 18px; }
.task { padding: 18px; border: 1px solid #282e3d; border-radius: 17px; background: #0d1018; }
.task p { margin: 10px 0 0; white-space: pre-wrap; }
.task pre { max-height: 360px; overflow: auto; margin: 14px 0 0; padding: 14px; border-radius: 12px; background: #080a10; color: #dce0eb; white-space: pre-wrap; word-break: break-word; }
.task-status { padding: 5px 9px; border-radius: 999px; background: #24293a; color: #c5cada; font-size: 12px; }
.status-completed { color: #69e0bc; background: rgba(22,112,86,.25); }
.status-failed, .status-blocked_auth { color: #ff9ca5; background: rgba(130,34,47,.24); }
.empty { padding: 20px; text-align: center; }
.hidden { display: none !important; }
@media (max-width: 760px) {
  .shell { width: min(100% - 22px, 680px); padding-top: 24px; }
  .brand { grid-template-columns: auto 1fr; }
  .brand .badge { grid-column: 1 / -1; justify-self: start; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 21px; border-radius: 20px; }
}

