:root {
  color-scheme: light;
  font: 16px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18291e;
  background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: grid; place-items: center; padding: 32px; }
.login-layout {
  width: min(940px, 100%);
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
  background: #fff;
  border: 1px solid #dce4dc;
  border-radius: 20px;
  overflow: hidden;
}
.tea-photo { position: relative; min-height: 100%; background: #eaf0e6; }
.tea-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 54% center; }
.login-panel { padding: clamp(30px, 4.4vw, 64px); align-self: center; min-width: 0; }
.store-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.025em; }
.store-brand img { border-radius: 7px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 4.3vw, 54px); font-weight: 400; line-height: 1.08; letter-spacing: -.035em; margin: 34px 0 8px; }
.intro, .switch-mode { color: #516158; }
.intro { margin: 0 0 26px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
form { display: grid; }
label { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
input, button { font: inherit; }
input { width: 100%; height: 46px; border: 1px solid #bac7bc; color: inherit; border-radius: 8px; padding: 0 12px; background: white; }
input + label { margin-top: 16px; }
input:focus { outline: 2px solid #48805b; outline-offset: 1px; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 2px solid #27623d; outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .65; }
.primary, .google { width: 100%; min-height: 46px; padding: 9px 14px; border-radius: 8px; font-weight: 600; }
.primary { margin-top: 22px; background: #245737; color: white; border: 1px solid #245737; }
.google { display: flex; align-items: center; justify-content: center; gap: 10px; color: #23362a; background: #fff; border: 1px solid #c9d2ca; }
.divider { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: #626e64; font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #dde4de; }
.switch-mode { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 5px; margin: 14px 0 0; font-size: 14px; }
.switch-mode button, #login-retry { border: 0; padding: 5px 0; background: none; color: #245737; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; min-height: 38px; }
#login-status { margin: 10px 0 0; font-size: 14px; color: #62412f; }
#login-status:empty { display: none; }
@media (hover:hover) {
  .primary:enabled:hover { background: #183e28; }
  .google:enabled:hover { background: #f5f7f5; }
}
@media (max-width: 680px) {
  body { display: block; padding: env(safe-area-inset-top) 0 max(16px, env(safe-area-inset-bottom)); }
  .login-layout { max-width: 480px; margin: auto; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .tea-photo { min-height: 0; height: clamp(88px, 18svh, 150px); }
  .tea-photo img { object-position: center 54%; }
  .login-panel { padding: 22px clamp(20px, 6vw, 34px); }
  .store-brand img { width: 29px; height: 29px; }
  h1 { margin-top: 18px; }
  .intro { margin-bottom: 18px; }
}
@media (max-height: 480px) and (orientation: landscape) { body { padding: 12px; } .login-panel { padding-block: 20px; } h1 { margin-top: 14px; } }
