:root {
  color: #17231f;
  background: #f3f6f4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #f3f6f4;
}

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

.login-card {
  width: min(430px, 100%);
  padding: 44px;
  border: 1px solid #dce4df;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(18, 45, 36, 0.08);
  animation: card-in 320ms cubic-bezier(.22, .8, .3, 1) both;
}

.brand-lockup {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-bottom: 38px;
  text-align: center;
}

.brand-lockup img {
  width: 132px;
  height: 132px;
  object-fit: contain;
}

.brand-lockup strong {
  margin-top: 14px;
  color: #173e32;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: .1em;
}

.brand-lockup > span {
  margin-top: 10px;
  padding: 6px 11px;
  border: 1px solid #eadcbf;
  border-radius: 999px;
  background: #fcf8f0;
  color: #85672f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

label {
  display: block;
  margin: 18px 0;
}

label > span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 650;
}

input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid #cdd8d2;
  border-radius: 11px;
  background: #fff;
  color: inherit;
  font: 16px inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
  border-color: #2b6c58;
  box-shadow: 0 0 0 4px rgba(43, 108, 88, .11);
}

.remember-session {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 16px 0 2px;
  cursor: pointer;
}

.remember-session input {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  padding: 0;
  accent-color: #173e32;
}

.remember-session > span {
  margin: 0;
}

.remember-session strong,
.remember-session small {
  display: block;
}

.remember-session strong {
  font-size: 13px;
}

.remember-session small {
  margin-top: 2px;
  color: #6f7d76;
  font-size: 11px;
  font-weight: 500;
}

button {
  display: flex;
  width: 100%;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  border: 0;
  border-radius: 11px;
  background: #173e32;
  color: #fff;
  font: 700 15px inherit;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  background: #205444;
  box-shadow: 0 9px 22px rgba(23, 62, 50, .16);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: .6;
  cursor: wait;
}

.error {
  margin-top: 14px;
  padding: 12px;
  border-radius: 9px;
  background: #fff0ed;
  color: #96392d;
  font-size: 13px;
}

@keyframes card-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 520px) {
  html,
  body {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .login-shell {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
  }

  .login-card { padding: 20px 25px; border-radius: 18px; }
  .brand-lockup { margin-bottom: 16px; }
  .brand-lockup img { width: 172px; height: 172px; }
  .brand-lockup strong { margin-top: 8px; }
  .brand-lockup > span { margin-top: 6px; padding-block: 5px; }
  label { margin: 10px 0; }
  .remember-session { margin: 12px 0 0; }
  label > span { margin-bottom: 6px; }
  input { height: 48px; }
  button { height: 48px; margin-top: 14px; }
}

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