/* Stage 4B: login screen. Deliberately self-contained and minimal - it shows
   ONLY the app name and the credential form, never any property data, and it
   loads no external font / CDN. Mobile-first: 16px inputs (no iOS auto-zoom) and
   >=44px tap targets. */

.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f5f7;
  padding: 24px;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
           max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  box-sizing: border-box;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(15, 30, 40, 0.12);
  padding: 32px 28px;
  box-sizing: border-box;
}

.login-brand {
  text-align: center;
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  color: #0f9f9a;
}

.login-subtitle {
  text-align: center;
  margin: 0 0 24px;
  font-size: 14px;
  color: #5a6b73;
}

.login-error {
  background: #fdecec;
  border: 1px solid #f2b8b5;
  color: #a02020;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 15px;
}

.login-field {
  margin-bottom: 18px;
}

.login-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #33454d;
}

.login-field input {
  width: 100%;
  box-sizing: border-box;
  font-size: 16px; /* >=16px stops iOS Safari zooming on focus */
  line-height: 1.4;
  padding: 12px 14px;
  min-height: 44px;
  border: 1px solid #c7d2d8;
  border-radius: 8px;
  background: #fff;
  color: #1a2b32;
}

.login-field input:focus {
  outline: 2px solid #0f9f9a;
  outline-offset: 1px;
  border-color: #0f9f9a;
}

.login-submit {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #0f9f9a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.login-submit:hover {
  background: #0c8c88;
}

/* MEMBER-AUTH-FOUNDATION v1 — the rest of the pre-authentication family.

   新規登録 / パスワードを忘れた方 / パスワード設定 / オーナー初期設定 all use
   the .login-card shell above, so the four screens a person meets before they
   have an account look like one product rather than four bolted-on forms. */

.login-notice {
  background: #effaf9;
  border: 1px solid #bfe6e4;
  color: #0b6f6b;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.6;
}

.login-lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.75;
  color: #46585f;
}

.login-field-note {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #5a6b73;
}

.login-help {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
}

.login-help a {
  color: #0f9f9a;
  text-decoration: underline;
  /* a link people tap on a phone needs a real target, not a 14px line */
  display: inline-block;
  padding: 8px 4px;
  min-height: 24px;
}

.login-divider {
  border: 0;
  border-top: 1px solid #e2e9ec;
  margin: 22px 0 18px;
}

.login-secondary {
  text-align: center;
}

.login-secondary-lead {
  margin: 0 0 12px;
  font-size: 14px;
  color: #5a6b73;
}

.login-secondary-action {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #0f9f9a;
  background: #fff;
  border: 1px solid #0f9f9a;
  border-radius: 8px;
  text-decoration: none;
}

.login-secondary-action:hover {
  background: #effaf9;
}

/* the login id handed to a new member: shown once on the page and mailed too */
.login-callout {
  background: #effaf9;
  border: 1px solid #bfe6e4;
  border-radius: 10px;
  padding: 16px;
  margin: 0 0 18px;
}

.login-callout-label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #0b6f6b;
}

.login-callout-value {
  margin: 0 0 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0b6f6b;
  overflow-wrap: anywhere;
  user-select: all;
}

.login-callout-note {
  margin: 0;
  font-size: 13px;
  color: #46585f;
}
