:root {
  --bg0: #0f1419;
  --bg1: #1a2332;
  --accent: #e8a54b;
  --accent-dim: #c4893a;
  --text: #eef2f7;
  --muted: #8b9bb0;
  --danger: #e06c75;
  --card: rgba(26, 35, 50, 0.92);
  --border: rgba(232, 165, 75, 0.25);
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(232, 165, 75, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(80, 120, 180, 0.15), transparent 45%),
    linear-gradient(160deg, var(--bg0), var(--bg1) 55%, #121820);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gate {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px 28px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg0);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
}

.lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.host {
  display: block;
  margin: 0 0 24px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 0.85rem;
  color: var(--accent);
  word-break: break-all;
}

label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(139, 155, 176, 0.35);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  margin-bottom: 16px;
}

input[type="password"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 165, 75, 0.2);
}

button {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg0);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

button:hover {
  background: var(--accent-dim);
}

.error {
  display: none;
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(224, 108, 117, 0.15);
  border: 1px solid rgba(224, 108, 117, 0.4);
  color: var(--danger);
  font-size: 0.9rem;
}

.error.show {
  display: block;
}

.foot {
  margin: 20px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
