:root {
  --bg: #dcecf6;
  --panel: rgba(255, 255, 255, .68);
  --panel-soft: rgba(242, 249, 253, .72);
  --navy: #0b2941;
  --navy-2: #163a55;
  --text: #0b2941;
  --muted: #5f7689;
  --line: rgba(255, 255, 255, .78);
  --line-soft: rgba(113, 151, 177, .24);
  --brand: #2f86e8;
  --brand-strong: #12354f;
  --brand-soft: rgba(220, 239, 251, .82);
  --bad: #bd4a49;
  --shadow: 0 20px 54px rgba(24, 75, 108, .13), inset 0 1px 0 rgba(255, 255, 255, .78);
  --control-height: 52px;
  --control-radius: 999px;
  --control-border: rgba(113, 151, 177, .34);
  --control-bg: rgba(255, 255, 255, .58);
  --control-bg-hover: rgba(255, 255, 255, .78);
  --control-shadow: inset 0 1px 0 rgba(255, 255, 255, .76);
}

html, body { min-height: 100%; }
body {
  background: var(--bg) url("customer-ice-glass-bg-cab496d4c37c.webp") center top / cover fixed no-repeat;
  color: var(--text);
  font-family: "Segoe UI Variable Display", "Segoe UI Variable Text", Aptos, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .006em;
}

a { color: var(--brand-strong); }
a:hover { color: var(--navy-2); }
h1, h2, h3 { color: var(--text); font-weight: 450; letter-spacing: -.035em; }

.public-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 30px;
  padding: 44px 28px 34px;
  background: transparent;
}
.public-header {
  position: relative;
  z-index: 5;
  width: min(1168px, 100%);
  height: 78px;
  margin: 0 auto;
  padding: 0 18px 0 30px;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 999px;
  background: rgba(248, 252, 255, .54);
  box-shadow: var(--shadow);
  backdrop-filter: blur(30px) saturate(135%);
  -webkit-backdrop-filter: blur(30px) saturate(135%);
}
.public-header .brand-link {
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 0;
  color: var(--text);
}
.public-header .wordmark {
  color: var(--text);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -.045em;
}
.public-header .wordmark > span { color: var(--brand); }
.public-header .wordmark-image {
  flex: 0 0 auto;
  display: inline-flex;
  line-height: 0;
}
.public-header .wordmark-image img {
  display: block;
  width: 132px;
  height: auto;
}
.public-header .brand-link small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
}
.public-header nav { gap: 4px; }
.public-header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
}
.public-header nav a:hover {
  border-color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .58);
  color: var(--text);
}
body:has(.auth-card form[action$="/login"]) .public-header nav a[href$="/login"],
body:has(.auth-card form[action$="/register"]) .public-header nav a[href$="/register"] {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 41, 65, .18);
}

.public-content {
  width: min(1168px, 100%);
  margin: 0 auto;
  padding: 0;
}
.public-content .page-shell { gap: 20px; }
.public-content .card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(125%);
  -webkit-backdrop-filter: blur(26px) saturate(125%);
}
.public-content pre { border-radius: 20px; }

.auth-layout {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: start;
  gap: 32px;
  padding: 36px 0 56px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.auth-slogan {
  width: min(960px, 100%);
  padding: 16px 24px 0;
  text-align: center;
}
.auth-slogan h1 {
  max-width: 920px;
  margin: 0 auto;
  color: var(--text);
  font-size: clamp(40px, 4.2vw, 64px);
  font-weight: 300;
  line-height: 1.17;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.auth-slogan em {
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}
.auth-card {
  border: 1px solid rgba(255, 255, 255, .84);
  border-radius: 34px;
  background: rgba(248, 252, 255, .56);
  box-shadow: var(--shadow);
  backdrop-filter: blur(30px) saturate(135%);
  -webkit-backdrop-filter: blur(30px) saturate(135%);
}
.auth-card {
  width: min(540px, 100%);
  min-height: 520px;
  padding: 48px 50px;
}
.auth-card h2 {
  color: var(--text);
  font-size: 34px;
  font-weight: 380;
  letter-spacing: -.045em;
}
.auth-card > p {
  margin-top: 10px;
  color: var(--muted);
}
.auth-card form {
  gap: 17px;
  margin-top: 30px;
}
.auth-card label {
  color: var(--text);
  font-size: 13px;
  font-weight: 540;
}
.auth-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 1px 8px 0 0;
  accent-color: var(--navy);
}
.auth-card input:not([type="checkbox"]):not([type="radio"]) {
  min-height: var(--control-height);
  margin-top: 8px;
  padding: 10px 18px;
  border: 1px solid var(--control-border);
  border-radius: var(--control-radius);
  background: var(--control-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .006em;
  box-shadow: var(--control-shadow);
}
.auth-card input:hover { border-color: rgba(67, 112, 143, .52); background: var(--control-bg-hover); }
.auth-card input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 134, 232, .14), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.auth-card button {
  width: 100%;
  min-height: var(--control-height);
  justify-self: stretch;
  border: 1px solid var(--navy);
  border-radius: var(--control-radius);
  background: var(--navy);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .006em;
  box-shadow: 0 12px 28px rgba(11, 41, 65, .2);
}
.auth-card button:hover {
  border-color: var(--navy-2);
  background: var(--navy-2);
  box-shadow: 0 15px 32px rgba(11, 41, 65, .24);
}
.auth-card .switch-link {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.auth-card .switch-link a { font-weight: 600; }
.auth-card .error {
  margin-top: 16px;
  padding: 11px 14px;
  border: 1px solid rgba(189, 74, 73, .24);
  border-radius: 16px;
  background: rgba(255, 239, 239, .82);
  color: var(--bad);
  font-size: 13px;
  font-weight: 600;
}

@media (min-width: 901px) and (max-height: 820px) {
  .public-shell { gap: 20px; padding-top: 24px; }
  .public-header { height: 68px; }
  .auth-layout { gap: 18px; padding: 8px 0 28px; }
  .auth-slogan { padding-top: 0; }
  .auth-slogan h1 { font-size: clamp(38px, 3.5vw, 50px); }
  .auth-card { min-height: auto; padding: 36px 50px; }
  .auth-card form { gap: 13px; margin-top: 22px; }
  .auth-card input:not([type="checkbox"]):not([type="radio"]),
  .auth-card button { min-height: 48px; }
  .auth-card .switch-link { margin-top: 16px; }
  body:has(.auth-card form[action$="/register"]) .auth-card { padding-block: 28px; }
  body:has(.auth-card form[action$="/register"]) .auth-card form {
    gap: 10px;
    margin-top: 18px;
  }
  body:has(.auth-card form[action$="/register"])
    .auth-card input:not([type="checkbox"]):not([type="radio"]),
  body:has(.auth-card form[action$="/register"]) .auth-card button {
    min-height: 44px;
  }
}

@media (max-width: 900px) {
  .public-shell { padding: 22px 18px 28px; }
  .auth-layout { padding: 24px 0 40px; }
  .auth-slogan { padding-top: 8px; }
  .auth-card { width: 100%; min-height: auto; }
}

@media (max-width: 620px) {
  .public-shell { gap: 16px; padding: 14px; }
  .public-header {
    height: auto;
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 28px;
  }
  .public-header .brand-link { justify-content: center; }
  .public-header nav { justify-content: center; flex-wrap: wrap; }
  .public-header nav a { min-height: 38px; padding: 0 11px; }
  .auth-layout { gap: 22px; padding: 10px 0 28px; }
  .auth-slogan { padding: 8px 8px 0; }
  .auth-slogan h1 { font-size: 31px; line-height: 1.22; }
  .auth-card { padding: 32px 24px; border-radius: 28px; }
  .auth-card h2 { font-size: 29px; }
}
