:root {
  --brand: #00b341;
  --brand-deep: #006b28;
  --brand-dark: #1f191a;
  --ink: #1f191a;
  --muted: #66737c;
  --line: #dbe5de;
  --error: #b83b32;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgb(0 179 65 / 17%), transparent 30rem),
    linear-gradient(145deg, #f0f5f1 0%, #dae7dd 100%);
}

button,
input {
  font: inherit;
}

button {
  touch-action: manipulation;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
}

.login-card {
  width: min(100%, 430px);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 22px;
  background: rgb(255 255 255 / 96%);
  border-top: 5px solid var(--brand);
  box-shadow: 0 28px 80px rgb(31 25 26 / 19%);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 18px 24px;
  color: white;
  background: var(--brand-dark);
}

.login-brand-copy {
  min-width: 0;
}

.login-brand p,
.login-brand strong {
  margin: 0;
}

.login-brand p,
.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-brand p {
  margin-bottom: 3px;
  color: #74e59c;
}

.login-brand strong {
  font-size: 18px;
}

.login-logo-wrap {
  display: flex;
  width: 124px;
  height: 76px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5px;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 22px rgb(0 0 0 / 24%);
}

.login-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-copy {
  padding: 32px 32px 0;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--brand-deep);
}

.login-copy h1 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 28px;
  letter-spacing: -0.04em;
}

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

form {
  padding: 25px 32px 31px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: #43515a;
  font-size: 12px;
  font-weight: 750;
}

.password-field {
  position: relative;
}

.password-field input {
  width: 100%;
  height: 50px;
  padding: 0 90px 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: #fbfcfc;
  font-size: 16px;
  transition: border-color 150ms, box-shadow 150ms;
}

.password-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(0 179 65 / 14%);
}

.password-field button {
  position: absolute;
  top: 4px;
  right: 4px;
  height: 42px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  color: var(--brand-deep);
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.password-field button:hover,
.password-field button:focus-visible {
  outline: none;
  background: #e4f7eb;
}

.login-message {
  min-height: 20px;
  margin: 8px 0 5px;
  color: var(--error);
  font-size: 11px;
  line-height: 1.4;
}

.login-message.progress {
  color: var(--brand-deep);
}

.submit-button {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 11px;
  color: var(--brand-dark);
  background: var(--brand);
  box-shadow: 0 10px 24px rgb(0 103 38 / 20%);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.submit-button:hover,
.submit-button:focus-visible {
  outline: none;
  background: #18c957;
  box-shadow: 0 0 0 3px rgb(0 179 65 / 16%), 0 10px 24px rgb(31 25 26 / 20%);
}

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

.login-note {
  margin: 0;
  padding: 13px 24px;
  border-top: 1px solid #e8edeb;
  color: #78848b;
  background: #f5f7f6;
  font-size: 10px;
  text-align: center;
}

@media (max-width: 520px) {
  .login-shell {
    align-items: end;
    padding: 0;
  }

  .login-card {
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
  }

  .login-brand {
    gap: 13px;
    padding: 16px 20px;
  }

  .login-logo-wrap {
    width: 104px;
    height: 64px;
  }

  .login-brand strong {
    font-size: 17px;
  }

  .login-copy {
    padding: 27px 24px 0;
  }

  form {
    padding: 22px 24px 27px;
  }
}

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