:root {
  color-scheme: light;
  --accent: #147d73;
  --accent-hover: #0f625a;
  --accent-soft: #eef8f6;
  --body: #17202a;
  --muted: #68717d;
  --border: #e2e6ea;
  --danger: #9d2f2f;
  --danger-soft: #fff2f2;
  --success: #246b46;
  --success-soft: #eef9f2;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #f7f8fa;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--body);
  background: #f7f8fa;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  padding: 1.5rem;
  place-items: center;
}

.login-card {
  width: min(100%, 27rem);
  padding: clamp(1.5rem, 5vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 0.5rem 2rem rgb(23 32 42 / 7%);
}

.brand {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.brand strong {
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--muted);
}

.intro {
  margin: 1.75rem 0 1.4rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.65rem, 6vw, 2rem);
  letter-spacing: -0.02em;
}

.intro > p:last-child {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.status {
  margin: 0 0 1.25rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #efcaca;
  border-radius: 0.55rem;
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.status.success {
  border-color: #cae5d5;
  color: var(--success);
  background: var(--success-soft);
}

.login-form {
  display: grid;
  gap: 0.55rem;
}

label {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  font-weight: 650;
}

input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #cdd3d9;
  border-radius: 0.55rem;
  color: var(--body);
  background: #ffffff;
  font: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgb(20 125 115 / 14%);
}

button {
  min-height: 3rem;
  margin-top: 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 0.55rem;
  color: #ffffff;
  background: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

button:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
}

.lock {
  position: relative;
  width: 0.72rem;
  height: 0.58rem;
  border-radius: 0.12rem;
  background: var(--accent);
}

.lock::before {
  position: absolute;
  bottom: 0.38rem;
  left: 0.14rem;
  width: 0.44rem;
  height: 0.4rem;
  border: 0.12rem solid var(--accent);
  border-bottom: 0;
  border-radius: 0.4rem 0.4rem 0 0;
  content: "";
}

@media (max-width: 30rem) {
  .login-shell {
    padding: 0;
    place-items: stretch;
  }

  .login-card {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  input,
  button {
    transition: none;
  }
}
