:root {
  color-scheme: light;
  font: 100%/1.55 system-ui, "Microsoft YaHei", sans-serif;
  color: #4c2e1c;
  background: #faecd0;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
main {
  width: min(100%, 26rem);
  border: 3px solid #8a5229;
  border-radius: .85rem;
  box-shadow: 0 5px 0 #8a522933, inset 0 0 0 2px #fff9e7;
  background: #fff3d7;
  padding: clamp(1.35rem, 5vw, 2.15rem);
}
.brand { margin: 0 0 .25rem; color: #744a2a; font-size: .9rem; font-weight: 700; }
h1 { font-size: 1.85rem; line-height: 1.2; margin: 0 0 1.5rem; }
form { display: grid; gap: .55rem; }
label { font-weight: 650; }
.username-caption { display: flex; align-items: baseline; flex-wrap: wrap; }
.username-caption span { color: #6e492e; font-size: .9rem; }
.username-caption button {
  border: 0; border-radius: 0; padding: 0; min-height: 0; margin: 0; background: transparent;
  color: #613716; text-decoration: underline; text-underline-offset: .18em;
}
.username-caption button:hover { background: transparent; color: #3c1c08; }
input, button { font: inherit; min-height: 2.8rem; border-radius: .45rem; }
input { min-width: 0; border: 1px solid #a58258; background: #fffaf0; padding: .55rem .7rem; margin-bottom: .35rem; }
button { border: 1px solid #6a3e21; background: #724626; color: #fff8e7; margin-top: .4rem; cursor: pointer; font-weight: 750; }
button:hover { background: #533019; }
:focus-visible { outline: 3px solid #946117; outline-offset: 2px; }
.error { color: #912f22; margin: 0; font-size: .9rem; }
dialog { width: min(22rem, 100% - 2rem); background: #fff3d7; border: 2px solid #8a5229; border-radius: .65rem; padding: 1.25rem; color: inherit; }
dialog::backdrop { background: #42261166; }
dialog p { margin: 0; }
dialog button { padding: 0 .85rem; justify-self: end; }
.copy-field { position: fixed; left: -9999px; top: 0; }
.customer-login { color: #20433a; background: #e3efe9; }
.customer-login main { border-color: #437266; background: #f6fbf7; box-shadow: 0 5px 0 #43726633; }
.customer-login .brand { color: #416c60; }
.customer-login input { background: #fff; border-color: #73998b; }
.customer-login button { border-color: #254f45; background: #2d5e51; color: #fff; }
.customer-login button:hover { background: #20483e; }
.customer-login :focus-visible { outline-color: #327664; }
