:root {
  --bg: #14131f;
  --card: #1d1b2e;
  --ink: #f1efe7;
  --muted: #9a96b3;
  --line: rgba(255,255,255,0.08);
  --accent: #ff8a4c;
  --accent-soft: rgba(255,138,76,0.18);
  --danger: #ff6b8a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background:
    radial-gradient(1200px 800px at 20% -10%, rgba(255,138,76,0.10), transparent 60%),
    radial-gradient(1000px 700px at 100% 100%, rgba(127,201,255,0.08), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

/* shared card container */
.card, .hub {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 44px 36px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, #ff8a4c, #ff5c8a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
  color: #fff;
  margin: 0 auto 22px;
  box-shadow: 0 6px 22px rgba(255,92,138,0.35);
}

/* big readable headings */
h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 6px;
}

.sub {
  font-size: 15px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 28px;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--ink);
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="password"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

button {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s, border-color 0.15s;
  font-family: inherit;
}

button.primary {
  background: var(--accent);
  color: #1a0f08;
  margin-top: 4px;
}

button.primary:hover { background: #ff9a64; }
button.primary:active { transform: translateY(1px); }

button.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  width: auto;
  padding: 10px 18px;
}

button.ghost:hover { color: var(--ink); border-color: rgba(255,255,255,0.18); }

.err {
  color: var(--danger);
  font-size: 14px;
  text-align: center;
  margin: 0 0 16px;
  padding: 10px 12px;
  background: rgba(255,107,138,0.10);
  border: 1px solid rgba(255,107,138,0.25);
  border-radius: 10px;
}

.foot {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
}

/* hub page */
.hub header { text-align: center; margin-bottom: 28px; }
.hub header h1 { font-size: 32px; }

.apps { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.apps a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}

.apps a:hover {
  background: rgba(255,138,76,0.06);
  border-color: rgba(255,138,76,0.35);
}

.apps a:active { transform: translateY(1px); }

.apps .name { font-size: 18px; font-weight: 600; }
.apps .hint { font-size: 13px; color: var(--muted); }

.apps .empty {
  padding: 18px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.hub footer { text-align: center; margin-top: 28px; }
