:root {
  color-scheme: dark;
  --bg: #070a12;
  --card: rgba(10, 14, 26, 0.78);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.66);
  --muted-2: rgba(255, 255, 255, 0.52);
  --focus: rgba(125, 211, 252, 0.75);
  --button: #ffffff;
  --button-text: #0b1020;
  --danger: #fb7185;
  --ok: #34d399;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: 
    linear-gradient(rgba(7, 10, 18, 0.9), rgba(7, 10, 18, 0.92)),
    url("/images/icon.png");
  background-size: cover, cover, cover, 620px;
  background-position: center, center, center, 88% 12%;
  background-repeat: no-repeat;
}

.page {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(10px);
  padding: 22px 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.header {
  display: grid;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.logo {
  width: min(340px, 100%);
  height: auto;
}

.tagline {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.form {
  padding-top: 16px;
  display: grid;
  gap: 10px;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.label {
  font-size: 13px;
  color: var(--muted-2);
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 12px 12px;
  font-size: 15px;
  outline: none;
}

.input:focus {
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 0 4px var(--focus);
}

.button {
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 15px;
  background: var(--button);
  color: var(--button-text);
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.fineprint {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted-2);
}

.status {
  margin: 2px 0 0;
  font-size: 14px;
  min-height: 20px;
}

.status[data-kind="error"] {
  color: var(--danger);
}

.status[data-kind="ok"] {
  color: var(--ok);
}

.footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-2);
  font-size: 13px;
}

.mark {
  height: 18px;
  width: auto;
  opacity: 0.9;
}

.footerText {
  letter-spacing: 0.02em;
}

@media (max-width: 420px) {
  .row {
    grid-template-columns: 1fr;
  }
}
