:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --forest: #173f31;
  --forest-soft: #235843;
  --ink: #26332d;
  --muted: #738078;
  --line: #dfe7e2;
  --mint: #d8eee1;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(205, 235, 218, 0.75), transparent 34%),
    linear-gradient(145deg, #f7faf8 0%, #eef4f0 100%);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

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

.login-card {
  width: min(100%, 420px);
  padding: 38px;
  border: 1px solid rgba(34, 76, 57, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(24, 62, 47, 0.13);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  font-size: 18px;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: var(--mint);
  font-size: 22px;
}

.brand small {
  color: #829188;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.login-heading {
  margin: 42px 0 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #7f8d85;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0 0 9px;
  color: #1e3028;
  font-size: 34px;
  font-weight: 760;
  letter-spacing: -0.045em;
}

.login-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin: 0 0 7px;
  color: #495850;
  font-size: 12px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 46px;
  margin: 0 0 19px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #fbfcfb;
  color: var(--ink);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

input:focus {
  border-color: #78aa8d;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(77, 145, 108, 0.12);
}

button {
  display: flex;
  height: 47px;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--forest);
  color: #f7fbf8;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition: background 140ms ease, transform 140ms ease;
}

button:hover:not(:disabled) {
  background: var(--forest-soft);
  transform: translateY(-1px);
}

button:focus-visible {
  outline: 3px solid rgba(45, 118, 84, 0.3);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.notice {
  margin: 0 0 18px;
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.45;
}

.notice--error {
  border: 1px solid #efd2d2;
  background: #fff5f5;
  color: #8b4444;
}

.notice--success {
  border: 1px solid #cce5d4;
  background: #f2faf4;
  color: #3e6e4d;
}

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 24px 0 0;
  color: #8a9790;
  font-size: 10px;
}

.security-note span {
  color: #55a474;
  font-size: 8px;
}

@media (max-width: 520px) {
  .login-shell {
    align-items: start;
    padding: 18px 12px;
  }

  .login-card {
    margin-top: max(18px, env(safe-area-inset-top));
    padding: 28px 22px;
    border-radius: 17px;
  }

  .login-heading {
    margin: 34px 0 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
