:root {
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  color: #253d36;
  background: #f5f6ef;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: max(28px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 100%;
  max-width: 430px;
  padding: 32px;
  border: 1px solid #e2e7dc;
  border-radius: 28px;
  background: #fffef9;
  box-shadow: 0 12px 36px #253d3608;
}

header { text-align: center; }
.garden-mark { margin-bottom: 10px; font-size: 42px; line-height: 1.2; }
.brand { margin: 0 0 12px; color: #27664f; font-size: 11px; font-weight: 800; letter-spacing: 2px; }
h1 { margin: 0 0 10px; font-size: 25px; line-height: 1.4; letter-spacing: -1px; }
.intro { margin: 0 0 28px; color: #68766d; font-size: 14px; line-height: 1.6; }
.field { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; }

input, button { width: 100%; min-height: 52px; border-radius: 14px; font: inherit; touch-action: manipulation; }
input { border: 1px solid #cdd8ce; padding: 12px 15px; background: #fff; color: #253d36; font-size: 18px; }
input:focus-visible, button:focus-visible { outline: 3px solid #e7a73c; outline-offset: 3px; }
input[aria-invalid="true"] { border-color: #ae4938; }
.hint { margin: 7px 1px 0; color: #68766d; font-size: 12px; line-height: 1.6; }
.login-error { margin: 0 0 16px; padding: 12px 14px; border: 1px solid #efd4c9; border-radius: 12px; background: #fff3ed; color: #923a2c; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
button { border: 0; padding: 14px 18px; background: #27664f; color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; }
button:active:not(:disabled) { background: #205540; }
button:disabled { opacity: .65; cursor: default; }
.footer-note { margin: 22px 0 0; text-align: center; color: #68766d; font-size: 12px; line-height: 1.6; }

@media (max-width: 380px) {
  body { padding-left: 14px; padding-right: 14px; }
  .login-card { padding: 26px 22px; border-radius: 22px; }
  h1 { font-size: 23px; }
}

@media (max-height: 650px) {
  body { align-items: flex-start; }
  .login-card { padding-top: 24px; padding-bottom: 24px; }
  .garden-mark { font-size: 32px; }
  .intro { margin-bottom: 22px; }
}
