:root {
  color-scheme: light;
  --background: #f2f3f4;
  --panel: #ffffff;
  --panel-border: #d9dde1;
  --text: #161b1f;
  --muted: #5f6870;
  --field: #f8fafb;
  --field-border: #c6cdd3;
  --focus: #78920f;
  --button: #283719;
  --button-hover: #34491f;
  --button-text: #ffffff;
  --link: #526d08;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.9), transparent 34rem),
    linear-gradient(155deg, #fafafa 0%, var(--background) 48%, #e5e8eb 100%);
  color: var(--text);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
}

.login-panel {
  display: grid;
  justify-items: center;
  width: min(100%, 390px);
  gap: 22px;
}

.login-logo {
  display: block;
  width: clamp(150px, 30vw, 190px);
  height: clamp(150px, 30vw, 190px);
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(37, 45, 52, 0.14));
}

.login-form {
  display: grid;
  width: 100%;
  min-height: 339px;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: 0 24px 70px rgba(37, 45, 52, 0.14);
}

.login-form h1 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--field-border);
  border-radius: 6px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  outline: none;
  padding: 0 13px;
}

.field input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(120, 146, 15, 0.18);
}

.submit-button {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 6px;
  background: var(--button);
  color: var(--button-text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.submit-button:hover {
  background: var(--button-hover);
}

.submit-button:focus-visible {
  outline: 3px solid rgba(120, 146, 15, 0.28);
  outline-offset: 3px;
}

.signup-line {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.signup-line a {
  color: var(--link);
  font-weight: 750;
  text-decoration: none;
}

.signup-line a:hover,
.signup-line a:focus-visible {
  text-decoration: underline;
}

.signup-message {
  align-content: center;
  text-align: center;
}

.signup-message p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 420px) {
  .login-shell {
    padding: 18px;
  }

  .login-form {
    padding: 18px;
  }
}
