@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@800&family=Barlow:wght@300;400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  color-scheme: dark;
  --bg: #080a09;
  --surface: #0f1210;
  --surface-2: #141714;
  --border: #222622;
  --text: #deded8;
  --muted: #626860;
  --accent: #c8a85a;
  --accent-dim: rgba(200, 168, 90, 0.1);
  --error: #e05a4a;
  --error-dim: rgba(224, 90, 74, 0.1);
  --online: #4cba78;
}

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

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(
    ellipse 90% 70% at 60% 50%,
    rgba(200, 168, 90, 0.03) 0%,
    transparent 65%
  );
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.04) 3px,
    rgba(0, 0, 0, 0.04) 4px
  );
  pointer-events: none;
  z-index: 9;
}

.shell {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
  width: min(100% - 48px, 1100px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 64px 0;
}

/* ── Intro ─────────────────────────────────── */

.intro {
  animation: fadein 0.7s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

h1 {
  margin-bottom: 32px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(56px, 7.5vw, 96px);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
}

h1 span {
  color: var(--accent);
}

.copy {
  max-width: 460px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
}

.intro::after {
  content: '';
  display: block;
  margin-top: 48px;
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, rgba(200, 168, 90, 0.6), transparent);
}

/* ── Panel ─────────────────────────────────── */

.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  animation: slidein 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.panel::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  pointer-events: none;
}

.panel::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  pointer-events: none;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 28px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.panel-header-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--online);
}

.status-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 8px var(--online);
  animation: blink 2.4s ease-in-out infinite;
}

.panel-inner {
  padding: 32px 28px;
}

.brand {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
}

/* ── Form ──────────────────────────────────── */

form {
  display: grid;
  gap: 10px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.3);
  padding: 0 14px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder {
  color: var(--border);
  letter-spacing: 0.1em;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

button {
  height: 44px;
  margin-top: 4px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: #080a09;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-dim);
}

button:active {
  opacity: 0.8;
}

/* ── Messages ──────────────────────────────── */

.message {
  margin-top: 20px;
  padding: 10px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: var(--muted);
  border-left: 2px solid var(--border);
}

.message.error {
  color: var(--error);
  background: var(--error-dim);
  border-left-color: var(--error);
}

/* ── Animations ────────────────────────────── */

@keyframes fadein {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes slidein {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0);    }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Responsive ────────────────────────────── */

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    gap: 32px;
    width: min(100% - 32px, 460px);
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .panel-inner {
    padding: 24px 20px;
  }

  h1 {
    font-size: 52px;
  }
}