/* Jungle auth — institutional dark terminal */

:root {
  --bg: #090c0b;
  --surface: #101612;
  --surface-2: #151c18;
  --border: #1e2a23;
  --border-strong: #26352c;
  --text: #e7ece8;
  --muted: #849289;
  --gold: #c9a227;
  --gold-dim: rgba(201, 162, 39, 0.12);
  --buy: #2f9e62;
  --sell: #d6453a;
  --sell-dim: rgba(214, 69, 58, 0.12);
  --radius: 2px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Manrope", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(201, 162, 39, 0.03) 0%, transparent 32%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 47px,
      rgba(30, 42, 35, 0.32) 47px,
      rgba(30, 42, 35, 0.32) 48px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 47px,
      rgba(30, 42, 35, 0.2) 47px,
      rgba(30, 42, 35, 0.2) 48px
    ),
    var(--bg);
}

.auth-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(16, 22, 18, 0.5), transparent 65%);
}

.auth-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.65rem 1.5rem 1.4rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  animation: rise 0.35s ease-out both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.auth-kicker {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.72rem;
}

h1 {
  margin: 0.4rem 0 0.2rem;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.auth-sub,
.auth-hint {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0 0 1.1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

input {
  font: inherit;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text);
  padding: 0.58rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.22);
}

.auth-btn {
  width: 100%;
  margin-top: 0.3rem;
  border: 1px solid var(--gold);
  padding: 0.68rem 1rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--bg);
  background: var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.auth-btn:hover {
  background: #d4ad2e;
  border-color: #d4ad2e;
}

.auth-btn:active {
  transform: translateY(1px);
}

.auth-msg {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  color: var(--muted);
}

.auth-msg.err {
  border-color: rgba(214, 69, 58, 0.4);
  color: var(--sell);
  background: var(--sell-dim);
}

.auth-msg.ok {
  border-color: rgba(47, 158, 98, 0.35);
  color: var(--buy);
  background: rgba(47, 158, 98, 0.1);
}

.auth-links {
  margin: 1rem 0 0;
  font-size: 0.82rem;
}

.auth-links a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.auth-links a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--mono);
  font-size: 0.72rem;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.08rem 0.28rem;
  border-radius: var(--radius);
  color: var(--text);
}
