:root {
  color-scheme: dark;
  --bg: #0b0d0e;
  --panel: #141819;
  --line: #2a3132;
  --text: #f2f1ec;
  --muted: #8f9a9a;
  --accent: #ffb26b;
  --error: #ff6f61;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(255, 178, 107, .12), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login {
  width: min(100%, 360px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

.mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 14px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .06em;
}

h1 {
  margin: 18px 0 4px;
  font-size: 26px;
  letter-spacing: -.03em;
}

.sub {
  margin: 0 0 24px;
  color: var(--muted);
}

label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

input[type="password"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0e1112;
  color: var(--text);
  padding: 0 14px;
  font-size: 17px;
  outline: none;
}

input[type="password"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 178, 107, .14);
}

button {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #17120c;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

button:active { transform: translateY(1px); }

.error {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--error);
  font-size: 13px;
}

@media (max-width: 480px) {
  .login { padding: 22px; border-radius: 16px; }
  h1 { font-size: 23px; }
}
