:root {
  color-scheme: light;
  --ink: #10263a;
  --muted: #475769;
  --accent: #ac3a00;
  --border: #eedac8;
  --gutter: clamp(1rem, 4.4vw, 7rem);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; margin: 0; color: var(--ink);
  background: radial-gradient(ellipse at 16% 29%, #ffead0 0%, transparent 53%), linear-gradient(132deg, #fffaf0, #eaf2f7);
  font: clamp(.9375rem, .88rem + .13vw, 1.0625rem)/1.58 var(--font);
}
button, input { font: inherit; }
button:focus-visible { outline: 3px solid #175476; outline-offset: 3px; }

.account-bar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 4.25rem; padding: .4rem var(--gutter); background: #fffcfaec; border-bottom: 1px solid #eee1e6; }
.account-brand { display: flex; gap: .55rem; align-items: center; }
.account-brand > span { display: grid; line-height: 1.13; gap: .18rem; }
.account-brand strong { font-size: clamp(1.04rem, .93rem + .3vw, 1.38rem); font-weight: 780; }
.account-brand small { color: var(--muted); font-size: .69rem; font-weight: 720; letter-spacing: .14em; }
.account-bar-label { color: var(--muted); font-weight: 640; }

.login-shell {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(24rem, .96fr); align-items: center;
  gap: clamp(2rem, 7vw, 9rem); width: min(88rem, calc(100% - 2 * var(--gutter))); margin-inline: auto; padding-block: clamp(1.75rem, 4.2vh, 4.75rem);
}
.brand-stage { display: grid; justify-items: center; min-width: 0; text-align: center; padding-block: .75rem; }
.brand-kicker { margin: 0 0 .6rem; color: var(--accent); font-size: .83rem; font-weight: 760; letter-spacing: .19em; }
.brand-stage > strong { font-size: clamp(2.05rem, 1.2rem + 2.55vw, 4.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -.055em; }
.brand-stage em { color: var(--accent); font-style: normal; }
.brand-description { max-width: 27em; margin: .85rem 0 0; color: var(--muted); font-size: clamp(.95rem, .86rem + .24vw, 1.12rem); line-height: 1.75; text-wrap: pretty; }
.brand-art { position: relative; display: grid; place-items: center; width: min(100%, 29rem); height: clamp(10rem, 17vw, 15.5rem); margin-top: .75rem; isolation: isolate; }
.brand-art::before { content: ""; position: absolute; z-index: -1; inset: 3% 4%; background: radial-gradient(ellipse, #ffc77c60, #e4a5462b 40%, transparent 72%); }
.brand-orbit { position: absolute; width: 87%; height: 58%; border: 1px solid #e38e3e66; border-radius: 50%; transform: rotate(-16deg); }
.orbit-secondary { width: 73%; height: 47%; border-color: #557f9671; border-style: dashed; }
.brand-mark { position: relative; display: block; width: clamp(8rem, 14vw, 13rem); height: auto; filter: drop-shadow(0 .55rem 1rem #79410f25); }
.orbit-dot { position: absolute; top: 57%; left: 10%; width: .7rem; height: .7rem; border-radius: 50%; background: #e16004; box-shadow: 0 0 0 .3rem #fb852e37; }
.dot-secondary { top: 34%; left: 84%; width: .53rem; height: .53rem; background: #245c7b; box-shadow: 0 0 0 .25rem #478cb02f; }

.login-card { justify-self: center; width: min(100%, 33rem); border: 1px solid var(--border); border-radius: 1.25rem; background: #fff; box-shadow: 0 1.35rem 4.1rem #1e3b5516; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .86rem clamp(1.2rem, 3vw, 2.6rem); border-bottom: 1px solid #eedfce; border-radius: 1.25rem 1.25rem 0 0; background: #fff5e7; font-weight: 700; }
.security-tag { color: #1b4964; font-size: .84rem; font-weight: 650; }
.card-content { padding: clamp(1.2rem, 2.65vw, 2.6rem); }
.login-card h1 { margin: 0; font-size: clamp(1.56rem, 1.14rem + 1.15vw, 2.35rem); font-weight: 790; line-height: 1.22; letter-spacing: -.03em; }
.intro { margin: .5rem 0 1.25rem; color: var(--muted); }
form label { display: block; margin: .82rem 0 .34rem; font-weight: 675; }
.input-shell { display: flex; align-items: center; min-height: 3.25rem; border: 1px solid #dfdbd3; border-radius: .66rem; background: #fffdfd; }
.input-shell:focus-within { border-color: #295f7e; box-shadow: 0 0 0 3px #e1edf4; }
.input-shell input { width: 100%; min-width: 0; min-height: 3.25rem; padding: .55rem .75rem; border: 0; outline: 0; border-radius: inherit; color: var(--ink); background: transparent; }
.input-shell input::placeholder { color: #637281; }
.dial-code { padding-inline: .75rem; border-right: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.code-button { flex: none; min-height: 2.25rem; margin-inline-end: .33rem; padding: .25rem .65rem; border: 0; border-radius: .4rem; color: var(--accent); background: #fff1df; white-space: nowrap; font-size: .875rem; font-weight: 680; cursor: pointer; }
.primary-button { display: flex; justify-content: center; align-items: center; gap: .65rem; width: 100%; min-height: 3.2rem; margin-top: 1.22rem; padding: .62rem .82rem; border: 0; border-radius: .66rem; color: #fff; background: linear-gradient(110deg, #a93600, #b64300); box-shadow: 0 .45rem 1rem #d04e0028; font-weight: 750; cursor: pointer; }
.primary-button:not(:disabled):hover { background: #8e3000; }
.code-button:not(:disabled):hover { background: #ffead4; }
button:disabled { opacity: .62; cursor: not-allowed; }
.account-note, #error, #status { margin: .9rem 0 0; color: var(--muted); font-size: .875rem; }
#error { color: #a62a38; font-weight: 650; }
#error:empty, #status:empty { display: none; }
.account-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem .7rem; margin-top: .75rem; }
.account-link { padding: .4rem .25rem; border: 0; background: transparent; color: var(--accent); cursor: pointer; font-weight: 650; }
.account-link:hover { text-decoration: underline; }
.account-footer { padding: .65rem var(--gutter) 1rem; text-align: center; color: var(--muted); font-size: .85rem; }

@media (max-width: 53rem) {
  .login-shell { grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; gap: 0; }
  .brand-stage { display: none; }
}
@media (max-width: 24rem) {
  .account-bar { min-height: 3.75rem; }
  .card-top, .card-content { padding-inline: 1rem; }
  .dial-code, .input-shell input { padding-inline: .55rem; }
  .code-button { padding-inline: .45rem; }
}
