/*
 * mission.littlerocket.space — Gate Page Styles
 * Design tokens mirror littlerocket.space
 */

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

:root {
  --bg:     #060810;
  --line:   #111820;
  --text:   #8a9ab0;
  --dim:    #506478;
  --bright: #c8d8e8;
  --gold:   #e8a835;
  --mono:   'JetBrains Mono', 'Fira Mono', 'Courier New', monospace;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 300;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Stars ── */
.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) var(--delay, 0s) ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: var(--min, 0.05); }
  to   { opacity: var(--max, 0.4); }
}

/* ── Horizon glow ── */
.horizon {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 30vh;
  background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(232, 168, 53, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Gate layout ── */
.gate {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
}

/* ── Subdomain label ── */
.gate-subdomain {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 168, 53, 0.5);
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.6em;
}

.gate-subdomain::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.55;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.8; }
}

/* ── Domain wordmark ── */
.gate-prompt {
  font-size: 11px;
  font-weight: 400;
  color: rgba(232, 168, 53, 0.6);
  letter-spacing: 0;
  margin-bottom: 4px;
  user-select: none;
}

.gate-domain {
  font-size: clamp(1.7rem, 5vw, 3.2rem);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* ── Password form ── */
.gate-form {
  display: flex;
  align-items: baseline;
  border-bottom: 1px solid rgba(232, 168, 53, 0.3);
  padding-bottom: 3px;
  width: clamp(240px, 35vw, 320px);
  transition: border-color 0.2s;
}

.gate-form:focus-within {
  border-color: rgba(232, 168, 53, 0.65);
}

.gate-form input[type="password"] {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--bright);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 300;
  padding: 5px 0;
  outline: none;
  caret-color: var(--gold);
  letter-spacing: 0.06em;
}

.gate-form input[type="password"]::placeholder {
  color: var(--dim);
}

.gate-form button {
  background: none;
  border: none;
  color: rgba(232, 168, 53, 0.5);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.06em;
  padding: 5px 0 5px 16px;
  cursor: pointer;
  transition: color 0.15s;
  white-space: nowrap;
}

.gate-form button:hover { color: var(--gold); }

/* ── Error ── */
.gate-error {
  margin-top: 0.75rem;
  font-size: 11px;
  font-weight: 300;
  color: rgba(232, 168, 53, 0.55);
  letter-spacing: 0.06em;
  min-height: 16px;
  opacity: 0;
  transition: opacity 0.2s;
}

.gate-error.visible { opacity: 1; }
