/* Sign-in page only (linked from login.html). Moved out of an inline <style>
   block so the Content-Security-Policy can drop style-src 'unsafe-inline'. */
html, body {
  min-height: 100vh;
  margin: 0;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a2a1f url('/branding/hero-bg.webp') center center / cover no-repeat;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 35, 20, 0.55) 0%, rgba(15, 35, 20, 0.72) 100%);
}
.login-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 36px 32px;
  width: 100%;
  max-width: 360px;
}
.login-logo {
  display: block;
  width: 140px;
  margin: 0 auto 8px;
}
.login-welcome {
  text-align: center;
  margin-bottom: 26px;
}
.login-welcome h1 {
  font-size: 19px;
  margin: 4px 0 2px;
  color: #1e3a29;
}
.login-welcome p {
  font-size: 13px;
  color: #6b756f;
  margin: 0;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-form label {
  font-size: 12px;
  font-weight: 600;
  color: #4a5550;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.login-form input {
  font-size: 13px;
  padding: 9px 11px;
  border: 1px solid #dce3de;
  border-radius: 8px;
  background: #f7f9f7;
  color: #1b2420;
}
.login-form input:focus {
  outline: 2px solid #2f7a4f;
  outline-offset: -1px;
}
.login-error {
  color: #c0392b;
  font-size: 13px;
  min-height: 16px;
}
.login-newpw-note {
  font-size: 12px;
  color: #4a5550;
  margin: -6px 0 0;
  line-height: 1.4;
}
.login-link {
  text-align: center;
  font-size: 12px;
  color: #2f7a4f;
  text-decoration: none;
  margin-top: 2px;
}
.login-link:hover {
  text-decoration: underline;
}
.login-success {
  color: #1c6b4a;
  font-size: 13px;
  min-height: 16px;
}
.login-form button {
  margin-top: 4px;
  border: none;
  background: #2f7a4f;
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
}
.login-form button:hover {
  background: #22603c;
}
.mfa-qr {
  display: block;
  margin: 4px auto;
  background: #fff;
  border-radius: 8px;
}
.mfa-secret {
  word-break: break-all;
  font-size: 12px;
}

/* "Text me a code": phone field plus the carrier-required disclosure (toll-free verification). */
.mfa-sms-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mfa-consent a {
  color: #22603c;
}
/* Separate, unticked SMS consent checkbox (carriers deny pre-checked or bundled consent). */
.login-form .mfa-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: #4a5550;
  cursor: pointer;
}
.login-form .mfa-consent input {
  padding: 0;
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  accent-color: #2f7a4f;
}
