:root {
  --ink: #f3f4f1;
  --muted: #989b99;
  --surface: #292b2a;
  --line: #4c4e4d;
  --yellow: #ffc400;
  --yellow-hover: #ffd238;
  --error: #ff8b72;
  --font: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 196, 0, 0.12), transparent 27rem),
    radial-gradient(circle at 12% 92%, rgba(255, 196, 0, 0.06), transparent 24rem),
    #202220;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.login-shell {
  display: grid;
  min-height: 100vh;
  padding: 32px 20px;
  place-content: center;
}

.login-card {
  width: min(100%, 440px);
  padding: clamp(28px, 6vw, 48px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(41, 43, 42, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 52px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 760;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 40px;
  height: 40px;
  color: #171817;
  background: var(--yellow);
  border-radius: 6px;
  place-items: center;
  transform: rotate(-3deg);
}

.brand svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 24px;
  height: 2px;
  background: currentColor;
}

h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 8vw, 46px);
  line-height: 1;
  letter-spacing: -0.055em;
}

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

.field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: #c7cac8;
  font-size: 12px;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: #222423;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.12);
}

.password-control { position: relative; }
.password-control input { padding-right: 88px; }

.password-control button {
  position: absolute;
  top: 50%;
  right: 12px;
  padding: 6px;
  color: var(--yellow);
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transform: translateY(-50%);
}

.form-error {
  min-height: 19px;
  margin: 12px 0 5px;
  color: var(--error);
  font-size: 12px;
  line-height: 1.45;
}

.submit-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #171817;
  border: 0;
  border-radius: 6px;
  background: var(--yellow);
  font-weight: 800;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.submit-button:hover { background: var(--yellow-hover); }
.submit-button:active { transform: translateY(1px); }
.submit-button:disabled { cursor: wait; opacity: 0.65; }
.submit-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  color: #777b78;
  font-size: 11px;
}

.security-note span { color: #60a774; font-size: 8px; }

@media (max-width: 520px) {
  .login-shell { padding: 16px; }
  .login-card { padding: 28px 22px; }
  .brand { margin-bottom: 40px; }
}
