:root {
  --bg: #0b0c1a;
  --panel: #15172b;
  --panel-2: #1d2040;
  --line: #2a2e55;
  --text: #f1f2ff;
  --muted: #9aa0c8;
  --accent: #7c5cff;
  --good: #2fd27a;
  --bad: #ff4d5e;
  --warn: #ffc53d;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
a { color: #b9a8ff; }
h1, h2, h3 { margin: 0; font-weight: 750; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

button, .btn {
  font: inherit;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .06s, background .15s, opacity .15s;
}
button:hover:not(:disabled), .btn:hover { background: #262a52; }
button:active:not(:disabled) { transform: scale(.97); }
button:disabled { opacity: .4; cursor: not-allowed; }
button.primary { background: var(--accent); border-color: var(--accent); }
button.primary:hover:not(:disabled) { background: #6a48ff; }
button.good { background: var(--good); border-color: var(--good); color: #062612; }
button.good:hover:not(:disabled) { background: #27bd6c; }
button.bad { background: var(--bad); border-color: var(--bad); color: #2b0308; }
button.bad:hover:not(:disabled) { background: #e8404f; }
button.small { padding: 4px 10px; font-size: 13px; border-radius: 8px; }

input[type=text], input[type=password] {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  outline: none;
}
input:focus { border-color: var(--accent); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.center-page {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card-form {
  width: min(380px, 100%);
  display: grid;
  gap: 14px;
}
.error { color: var(--bad); min-height: 1.2em; font-size: 14px; }

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }

.slide-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #000;
}

.placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-10px); } 40%,80% { transform: translateX(10px); } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,197,61,.6); } 50% { box-shadow: 0 0 0 22px rgba(255,197,61,0); } }
