:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  color: #e9efed;
  background: #0c1112;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  display: grid;
  min-height: 100svh;
  margin: 0;
  padding: 36px 20px;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 35%, #1a342a38, transparent 58%),
    radial-gradient(ellipse at 85% 95%, #172c3330, transparent 45%),
    #0c1112;
}

.access-shell { width: min(100%, 420px); }

.access-card {
  padding: 38px;
  border: 1px solid #ffffff12;
  border-radius: 22px;
  background: linear-gradient(155deg, #1a2321, #131a19 70%);
  box-shadow: 0 24px 80px #00000038, inset 0 1px #ffffff05;
}

.access-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 27px;
  place-items: center;
  border: 1px solid #a9e6c926;
  border-radius: 15px;
  background: linear-gradient(135deg, #a9e6c916, #a9e6c906);
  color: #b4ecd1;
}

svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.access-mark svg { width: 25px; height: 25px; }

h1 {
  margin: 0;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.card-heading { margin-bottom: 28px; }

label {
  display: block;
  margin-bottom: 10px;
  color: #bdc9c3;
  font-size: 12px;
  font-weight: 500;
}

.key-field { position: relative; }

.key-field svg {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #788b82;
  pointer-events: none;
}

input[type="password"] {
  width: 100%;
  height: 51px;
  padding: 0 15px 0 44px;
  border: 1px solid #ffffff16;
  border-radius: 10px;
  background: #0d1412;
  color: #e9efed;
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

input::placeholder { color: #61736a; font-size: 13px; }
input[type="password"]:focus { border-color: #a9e6c969; box-shadow: 0 0 0 3px #a9e6c90a; }
input[aria-invalid="true"] { border-color: #d8938566; }

button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 49px;
  margin-top: 17px;
  border: 1px solid #d2f6e04d;
  border-radius: 10px;
  background: #b4ecd1;
  color: #132b20;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}

button svg { width: 17px; height: 17px; }
button:hover { background: #c8f4de; }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 2px solid #c8f4de; outline-offset: 4px; }

.access-error { margin: 12px 0 0; color: #efb5a9; font-size: 12px; line-height: 1.5; }

@media (max-width: 420px) {
  .access-card { padding: 28px 25px; }
  h1 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  input[type="password"], button { transition: none; }
}
