:root {
  color-scheme: light;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-900: #1c1917;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--stone-100);
  color: var(--stone-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "liga" 1, "kern" 1;
}

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

.login-panel {
  width: min(100%, 25rem);
}

.login-heading {
  margin-bottom: 1.35rem;
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--stone-500);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--stone-900);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

@media (min-width: 40rem) {
  h1 {
    font-size: 2.7rem;
  }
}

.login-heading p:not(.kicker) {
  margin: 0.85rem 0 0;
  color: var(--stone-600);
  font-size: 1rem;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--stone-200);
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.05);
}

label {
  display: grid;
  gap: 0.45rem;
}

label span {
  color: #44403c;
  font-size: 0.86rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid var(--stone-300);
  border-radius: 0.85rem;
  background: #ffffff;
  color: var(--stone-900);
  font: inherit;
  outline: none;
  padding: 0.65rem 0.85rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus {
  border-color: var(--stone-900);
  box-shadow: 0 0 0 1px var(--stone-900);
}

button {
  min-height: 2.95rem;
  border: 1px solid var(--stone-900);
  border-radius: 0.85rem;
  background: var(--stone-900);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  transition: background-color 150ms ease, transform 150ms ease;
}

button:hover,
button:focus {
  background: #292524;
}

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

.message {
  margin-bottom: 1rem;
  border-radius: 1rem;
  padding: 0.8rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.4;
}

.message-error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.credit {
  margin: 0.8rem 0 0;
  color: #a8a29e;
  font-size: 0.68rem;
  line-height: 1.2;
  text-align: center;
}

.credit a {
  color: var(--stone-500);
  text-decoration: none;
}

.credit a:hover {
  color: var(--stone-900);
  text-decoration: underline;
}
