:root {
  --bg: #080c0a;
  --panel: #111a16;
  --line: rgba(255, 255, 255, 0.1);
  --text: #eef3ef;
  --muted: #93a49b;
  --accent: #e8c26a;
  --accent-2: #c9a24a;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 50% -10%, #14352a 0%, transparent 60%),
    radial-gradient(700px 500px at 100% 110%, #102a22 0%, transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.6;
}

.gate {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: clamp(26px, 6vw, 42px);
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lock {
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: radial-gradient(120% 120% at 40% 20%, rgba(232, 194, 106, 0.18), rgba(232, 194, 106, 0.04));
  border: 1px solid rgba(232, 194, 106, 0.28);
  box-shadow: 0 0 40px rgba(232, 194, 106, 0.08);
}
.lock svg { width: 28px; height: 28px; }

.eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--accent);
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(25px, 6vw, 31px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.sub {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

form { text-align: left; }

label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.row { position: relative; display: flex; }

input {
  width: 100%;
  padding: 14px 52px 14px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 8, 6, 0.6);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder { color: rgba(255, 255, 255, 0.32); }
input:focus {
  border-color: rgba(232, 194, 106, 0.75);
  box-shadow: 0 0 0 3px rgba(232, 194, 106, 0.13);
}

.eye {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.eye:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.eye svg { width: 18px; height: 18px; }

.primary {
  width: 100%;
  margin-top: 14px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, #f0d089, var(--accent-2));
  color: #221a08;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(201, 162, 74, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.12s, filter 0.15s;
}
.primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.primary:active { transform: translateY(0) scale(0.995); }
.primary:disabled { opacity: 0.75; cursor: progress; transform: none; }

.error {
  min-height: 18px;
  margin: 10px 0 0;
  font-size: 13px;
  color: #ff9aa2;
}

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

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
