:root {
  --bg: #f4efe5;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #fffdf9;
  --text: #111111;
  --muted: #67635d;
  --border: rgba(17, 17, 17, 0.1);
  --accent: #009b79;
  --accent-soft: rgba(0, 155, 121, 0.12);
  --danger: #b54d3f;
  --danger-soft: rgba(181, 77, 63, 0.12);
  --shadow: 0 28px 70px rgba(17, 17, 17, 0.1);
  --radius-lg: 30px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 155, 121, 0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(127, 114, 202, 0.12), transparent 28%),
    linear-gradient(180deg, #fbfaf6 0%, #f2ece1 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(17, 17, 17, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.16;
}

button,
input {
  font: inherit;
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
}

.login-card {
  width: min(100%, 520px);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1.5rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark,
h1 {
  font-family: "Space Grotesk", sans-serif;
}

.brand-mark {
  font-size: 1.35rem;
  font-weight: 700;
}

.brand-copy,
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.brand-copy,
.eyebrow,
.helper {
  color: var(--muted);
}

h1,
.lead,
.helper,
.status-card {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.lead {
  margin-top: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.login-form label {
  font-size: 0.92rem;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
}

.submit-button {
  padding: 0.95rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.status-card {
  margin-top: 1.1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(17, 17, 17, 0.04);
  line-height: 1.5;
}

.status-card[data-tone="success"] {
  border-color: rgba(0, 155, 121, 0.22);
  background: var(--accent-soft);
}

.status-card[data-tone="error"] {
  border-color: rgba(181, 77, 63, 0.22);
  background: var(--danger-soft);
}

.helper {
  margin-top: 0.8rem;
  line-height: 1.5;
}

code {
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
}

@media (max-width: 640px) {
  .login-shell {
    padding: 1rem;
  }

  .login-card {
    padding: 1.4rem;
  }
}
