* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid #367d5b; outline-offset: 3px; }
.account-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #e8f1e6; color: #204c35; padding: 8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left)); font: 600 12px/1.5 system-ui; border-bottom: 1px solid #d4e2d1; }
.account-bar > span { min-width: 0; flex: 1 1 170px; overflow-wrap: anywhere; }
.account-bar a, .account-bar button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 12px; font: inherit; color: #204c35; background: white; border: 1px solid #c7d8c3; border-radius: 8px; text-decoration: none; cursor: pointer; }
.account-bar .account-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.account-note { font-weight: 400; }
.account-users { width: 100%; border-collapse: collapse; margin-top: 20px; }
.account-users td, .account-users th { padding: 12px; border-bottom: 1px solid #e5ebe1; text-align: left; font-size: 13px; }
.invite-output { display: block; width: 100%; padding: 14px; border-radius: 8px; background: #eff5eb; font: 14px/1.6 system-ui; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 12px; }
.login-body { margin: 0; min-height: 100vh; min-height: 100dvh; display: grid; align-items: start; justify-items: center; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: #f4f6ef; font: 16px/1.5 system-ui; color: #213a2e; }
.login-card { min-width: 0; width: 100%; max-width: 480px; padding: 22px 18px; background: white; border: 1px solid #e0e7da; border-radius: 18px; box-shadow: 0 15px 45px #1434200c; }
.login-card h1 { font-size: 26px; line-height: 1.2; margin: 12px 0; letter-spacing: -.035em; }
.login-card p { line-height: 1.6; color: #58675c; font-size: 14px; }
.login-card label { display: block; margin: 16px 0 6px; font-size: 14px; font-weight: 600; }
.login-card input { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #cfdac9; border-radius: 9px; font: 16px system-ui; background: white; color: inherit; }
.login-card input:focus { outline: 2px solid #367d5b; outline-offset: 1px; }
.login-card button { min-height: 48px; padding: 12px 16px; border: 0; border-radius: 9px; background: #246342; color: white; font: 600 14px/1.5 system-ui; cursor: pointer; }
.login-card form button { width: 100%; margin-top: 18px; }
.login-card button:disabled { opacity: .6; cursor: wait; }
.page-error { padding: 20px; color: #9d3030; font: 14px system-ui; }
@media (min-width: 600px) { .login-body { place-items: center; padding: 30px; } .login-card { padding: 30px; border-radius: 22px; } .login-card h1 { font-size: 28px; } .account-bar { padding-right: 20px; padding-left: 20px; } }

.site-footer {
  width: min(calc(100% - 2.5rem), 76rem);
  margin-inline: auto;
  padding-block: 1.3rem max(1.3rem, env(safe-area-inset-bottom));
  border-top: 1px solid #cbd5c5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  color: #394e42;
  font: .88rem/1.45 Inter, "Segoe UI", system-ui, sans-serif;
}
.site-footer .wordmark { font-size: 1.15rem; color: #172e25; font-weight: 900; letter-spacing: -.07em; text-decoration: none; }
.site-footer p { display: flex; align-items: center; gap: .55rem; margin: 0; }
.age-badge { flex: none; padding: .12rem .42rem; border: 1px solid #9bab96; border-radius: .35rem; color: #254f39; font-weight: 750; font-size: .81rem; }

.auth-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.auth-panel {
  width: min(calc(100% - 2.5rem), 30rem);
  margin: clamp(1.9rem, 6vh, 4rem) auto;
  padding: clamp(1.25rem, 4.5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: #fff;
}
.auth-panel h1 { margin: 0; font-size: clamp(1.85rem, 6vw, 2.6rem); line-height: 1.13; letter-spacing: -.052em; }
.auth-description, .auth-switch { margin-top: 1rem; font-size: .95rem; color: var(--body); }
.auth-description:empty, .form-error:empty { display: none; }
.auth-panel form { display: grid; gap: 1rem; margin-top: 1.4rem; }
.form-field { display: grid; gap: .35rem; }
.form-field label { font-weight: 650; font-size: .94rem; }
.form-field input {
  width: 100%; min-width: 0; min-height: 48px; padding: .67rem .8rem;
  border: 1px solid #93a597; border-radius: .55rem;
  background: white; color: var(--ink); font: inherit; line-height: 1.4;
}
.form-field input:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.form-field input[aria-invalid="true"] { border-color: #a23c37; }
.field-hint { color: var(--body); font-size: .85rem; }
.password-entry { position: relative; }
.password-entry:has(.password-toggle:not([hidden])) input { padding-right: 4.4rem; }
.auth-panel button { font: inherit; cursor: pointer; }
.password-toggle {
  position: absolute; right: .15rem; top: 50%; transform: translateY(-50%); min-height: 44px; min-width: 52px;
  border: 0; border-radius: .4rem; background: transparent; color: var(--green);
}
.auth-panel .password-toggle { font-size: .88rem; font-weight: 700; }
.password-toggle:hover { background: #eaf1e5; }
.auth-panel .auth-submit {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 48px; padding: .7rem 1rem; margin-top: .1rem;
  color: white; background: var(--green); border: 0; border-radius: .55rem; font-weight: 710;
}
.auth-panel .auth-submit:hover { background: #053d29; }
.auth-panel button:disabled { opacity: .62; cursor: wait; }
.form-error { color: #a23c37; font-size: .92rem; overflow-wrap: anywhere; }
#message:not(:empty) { margin-top: .8rem; }
.auth-switch { text-align: center; }
.auth-switch a { color: var(--green); font-weight: 650; text-underline-offset: 3px; }
.auth-page .site-footer { margin-top: auto; }
#testAccounts { margin-top: 1.5rem; }
.test-logins { display: grid; gap: .5rem; margin-top: .8rem; }
.test-logins button { min-height: 44px; padding: .5rem .8rem; background: #edf4e5; color: #234730; border-radius: .5rem; border: 0; text-align: left; }
@media (min-width: 640px) { .site-footer { width: min(calc(100% - 5rem), 76rem); } }
