:root {
  --bg: #0a0c12;
  --panel: #151925;
  --panel-2: #1b2030;
  --border: #252b3d;
  --border-strong: #343b52;
  --text: #e8eaf2;
  --muted: #8a90a6;
  --accent: #f5b82e;
  --success: #34d399;
  --danger: #f87171;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(1000px 480px at 80% -10%, rgba(245, 184, 46, 0.07), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgba(90, 130, 255, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 15px/1.55 "Segoe UI", system-ui, -apple-system, sans-serif;
}

main {
  width: 100%;
  max-width: 420px;
  padding: 32px 30px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.logo {
  display: block;
  height: 30px;
  margin-bottom: 26px;
}

.logo .comb,
.logo .roof {
  stroke: var(--accent);
}

.logo .letters {
  stroke: var(--text);
}

h1 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
}

p {
  margin: 0 0 18px;
  color: var(--muted);
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
}

input:focus {
  outline: none;
  border-color: var(--accent);
}

button {
  height: 42px;
  margin-top: 4px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffd36b, #f5b82e);
  color: #14100a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

.status {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.status:empty {
  display: none;
}

.status.success {
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
}

.status.error {
  background: rgba(248, 113, 113, 0.12);
  color: var(--danger);
}

.status.pending {
  background: var(--panel-2);
  color: var(--muted);
}

[hidden] {
  display: none !important;
}
