:root {
  --bg:         #080b11;
  --surface:    #0e131c;
  --surface-2:  #141b27;
  --line:       #1e2634;
  --ink:        #e8edf5;
  --muted:      #7d8899;
  --faint:      #4a5464;
  --accent:     #34d3a6;
  --accent-dim: #1c7a63;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(58rem 34rem at 50% -14%,
                    rgba(52, 211, 166, .10), transparent 68%),
    var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
}

.shell {
  width: 100%;
  max-width: 24rem;
}

.brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.brand-mark {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto .9rem;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(52, 211, 166, .18));
}

.brand h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -.012em;
}

.brand-sub {
  margin: .35rem 0 0;
  font-size: .85rem;
  color: var(--muted);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, .7),
    inset 0 1px 0 rgba(255, 255, 255, .03);
}

.panel-title {
  margin: 0 0 1.4rem;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.field { margin-bottom: 1.05rem; }

.field label {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: .45rem;
}

.field input {
  width: 100%;
  padding: .68rem .75rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: 400 .92rem/1.4 var(--sans);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field input::placeholder { color: var(--faint); }

.field input:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(52, 211, 166, .16);
}

.btn {
  display: block;
  margin-top: 1.35rem;
  padding: .72rem 1rem;
  background: var(--accent);
  color: #04231b;
  border-radius: 8px;
  font: 600 .9rem/1 var(--sans);
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  transition: filter .15s ease, transform .05s ease;
}

.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.alt {
  margin: .95rem 0 0;
  text-align: center;
  font-size: .8rem;
}

.alt a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

.alt a:hover { color: var(--ink); }

.notice {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .4s ease, opacity .4s ease, margin-top .4s ease;
}

.notice:target {
  max-height: 16rem;
  opacity: 1;
  margin-top: 1.25rem;
}

.notice p {
  margin: 0;
  padding: .8rem .9rem;
  background: var(--surface-2);
  border-left: 2px solid var(--accent-dim);
  border-radius: 6px;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--muted);
}

.notice strong { color: var(--ink); font-weight: 600; }

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 1.5rem 0 0;
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--muted);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: .35; }
  50%      { opacity: 1; }
}

.meta {
  margin: .85rem 0 0;
  text-align: center;
  font: 400 .7rem/1.5 var(--mono);
  letter-spacing: .06em;
  color: var(--faint);
}

.meta .sep { opacity: .5; padding: 0 .15rem; }

@media (max-width: 26rem) {
  body { padding: 1.75rem 1rem; }
  .panel { padding: 1.35rem 1.15rem 1.2rem; }
  .meta { font-size: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .notice:target { max-height: 16rem; }
}
