/* Storefront login only; keep the shared account and checkout styles intact. */
.login-ui {
  --login-ink: #352d27;
  --login-muted: #6c645c;
  --login-border: #ded9cf;
  --login-accent: #587046;
  --login-primary: #6c4227;
}
.login-ui .auth-page {
  min-height: 0;
  padding: 40px 20px 56px;
  background: #f5f3ed;
}
.login-ui .auth-page .auth-card {
  width: min(480px, 100%);
  padding: 32px 36px;
  border: 1px solid #e6e1d7;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(53, 45, 39, .06);
  color: var(--login-ink);
}
.login-ui .auth-page .auth-card > span {
  color: var(--login-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
}
.login-ui .auth-page .auth-card h1 {
  margin: 10px 0 12px;
  font-size: 32px;
  line-height: 1.3;
}
.login-ui .auth-page .auth-card .auth-description {
  margin: 0 0 24px;
  color: var(--login-muted);
  font-size: 13px;
  line-height: 1.75;
  text-wrap: pretty;
}
.login-ui .auth-card #loginForm {
  gap: 18px;
}
.login-ui .auth-page .auth-card label {
  color: var(--login-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.login-ui .auth-page .auth-card input {
  display: block;
  min-height: 48px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--login-border);
  border-radius: 10px;
  background: #fff;
  color: var(--login-ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.login-ui .auth-card input::placeholder {
  color: #7c746c;
  opacity: 1;
}
.login-ui .login-password-field { position: relative; }
.login-ui .auth-page .auth-card .login-password-field input {
  height: 52px;
  min-height: 52px;
  padding-right: 56px;
}
.login-ui .auth-page .auth-card .login-password-field input[type="password"] {
  color: #302820;
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .14em;
}
.login-ui .login-password-actions {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: flex;
  margin: 0;
}
.login-ui .login-password-toggle {
  display: inline-flex;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #3e5530;
  font: 600 14px/1.4 var(--sans, sans-serif);
  cursor: pointer;
}
.login-ui .login-password-toggle[hidden] { display: none; }
.login-ui .login-password-toggle:hover { background: #eaf1e2; }
.login-ui .login-password-toggle svg { width: 20px; height: 20px; flex: 0 0 20px; }
.login-ui .login-password-toggle[aria-pressed="false"] .password-toggle-slash { display: none; }
.login-ui .login-password-toggle [data-password-toggle-label] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.login-ui .auth-page .auth-card label small {
  display: block;
  margin-top: 8px;
  color: var(--login-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}
.login-ui .auth-page .auth-card #loginForm > a {
  display: flex;
  min-height: 44px;
  margin: -10px 0 -8px;
  align-items: center;
  justify-content: flex-end;
  color: var(--login-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.login-ui .auth-page .auth-card .btn {
  display: flex;
  min-height: 48px;
  padding: 12px 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--login-primary);
  border-radius: 10px;
  background: var(--login-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  box-shadow: none;
  transition: background .18s ease, border-color .18s ease;
}
.login-ui .auth-page .auth-card .btn:hover { background: #53321d; }
.login-ui .auth-card .btn:disabled { opacity: .6; cursor: wait; }
.login-ui .auth-login-divider { display: none; }
.login-ui .auth-card:has(#lineLogin:not([hidden])) .auth-login-divider {
  display: flex;
  gap: 14px;
  margin: 22px 0 16px;
  align-items: center;
  color: var(--login-muted);
  font-size: 12px;
  line-height: 1.5;
}
.login-ui .auth-login-divider::before,
.login-ui .auth-login-divider::after {
  flex: 1;
  height: 1px;
  background: #e7e3db;
  content: "";
}
.login-ui .auth-page .auth-card #lineLogin {
  border-color: #80ad8c;
  background: #f2faf3;
  color: #185a32;
}
.login-ui .auth-page .auth-card #lineLogin:hover { background: #e3f3e6; }
.login-ui .auth-page .auth-card #lineAuthMessage:not([hidden]) {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid #cbdcc6;
  border-left: 3px solid var(--login-accent);
  border-radius: 10px;
  background: #f4f8f0;
  color: #3f5237;
  font-size: 13px;
  line-height: 1.75;
  text-align: left;
}
.login-ui .auth-page .auth-card > a.auth-register-cta {
  min-height: 48px;
  margin-top: 24px;
  padding: 12px 16px;
  border: 1px solid var(--login-border);
  border-radius: 10px;
  background: #fff;
  color: #4d6240;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: none;
  transform: none;
}
.login-ui .auth-page .auth-card > a.auth-register-cta:hover { background: #f5f8f1; }
.login-ui .auth-card :is(input, button, a):focus-visible {
  outline: 3px solid var(--login-accent);
  outline-offset: 3px;
}
@media (max-width: 550px) {
  .login-ui .auth-page { padding: 24px 16px 40px; }
  .login-ui .auth-page .auth-card { padding: 28px 24px; border-radius: 16px; }
  .login-ui .auth-page .auth-card h1 { font-size: 28px; }
  .login-ui .auth-page .auth-card .auth-description { font-size: 14px; }
  .login-ui .auth-card #loginForm { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-ui .auth-card :is(input, button, a) { transition: none; }
}
