:root {
  --auth-bg: #e3eae0;
  --auth-green: #2e6556;
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: #23332e;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--auth-bg); }
[hidden] { display: none !important; }
button, input { font-family: inherit; }
button { cursor: pointer; }
button:focus-visible { outline: 2px solid #478c76; outline-offset: 3px; }
.as-auth { position: fixed; inset: 0; overflow: auto; isolation: isolate; background: var(--auth-bg); transition: opacity 260ms var(--motion-ease); }
.as-auth.as-leaving { opacity: 0; pointer-events: none; }
.as-ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.as-ribbon-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: hidden; }
.as-ribbon-back, .as-ribbon-front, .as-ribbon-glint { transform-box: fill-box; transform-origin: center; will-change: transform; }
.as-ribbon-back { animation: as-ribbon-sway 12s cubic-bezier(.45,0,.55,1) infinite alternate; }
.as-ribbon-front { animation: as-ribbon-float 10s cubic-bezier(.45,0,.55,1) -3s infinite alternate; }
.as-ribbon-glint { animation: as-ribbon-shine 9s ease-in-out -2s infinite alternate; }
.as-paused .as-ribbon-art * { animation-play-state: paused; }
.as-ribbon-light { position: absolute; inset: 0; background: radial-gradient(ellipse 38% 56% at 50% 48%, #fdfdf7b0, transparent 100%); }
@keyframes as-ribbon-sway {
  from { transform: translate(-16px,-6px) rotate(-1.2deg) scale(1.035); }
  to { transform: translate(32px,23px) rotate(1.6deg) scale(1.075); }
}
@keyframes as-ribbon-float {
  from { transform: translate(-20px,18px) rotate(1.1deg) scale(1.045); }
  to { transform: translate(26px,-23px) rotate(-1.6deg) scale(1.075); }
}
@keyframes as-ribbon-shine {
  from { transform: translate(-180px,-35px) scale(.85); opacity: .64; }
  to { transform: translate(70px,70px) scale(1.2); opacity: 1; }
}

.as-login-side {
  position: relative; min-height: 100%; min-height: 100dvh; display: grid; align-items: center;
  padding: max(32px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right))
           max(32px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
}
.as-form-wrap { width: min(100%,414px); margin: 0 auto; text-align: center; animation: as-arrive 480ms var(--motion-ease) both; }
.as-brand { margin: 0 auto 24px; width: fit-content; }
.as-brand img { display: block; width: 174px; height: auto; }
.as-welcome h1 { margin: 0; color: #202f29; font-size: 29px; font-weight: 640; letter-spacing: -.65px; line-height: 1.4; }
.as-intro { margin: 4px 0 0; color: #627268; font-size: 13px; line-height: 1.6; }
.as-form {
  position: relative; display: grid; align-content: start; margin: 27px 0 0; padding: 22px 27px 24px;
  min-height: 258px; text-align: left; border: 1px solid #ffffffb8; border-radius: 32px;
  background: linear-gradient(145deg,#fffffff0,#f8fbf4ce 65%,#f4f8f0c7);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 20px 65px #3c5b3e18, 0 2px 7px #3d543b0d, inset 0 1px 0 #fff;
  transition: box-shadow 220ms ease;
}
.as-form:focus-within { box-shadow: 0 20px 65px #3c5b3e1c, 0 2px 7px #3d543b0d, inset 0 1px 0 #fff; }
.as-form.as-step-in { animation: as-step-enter 230ms cubic-bezier(.22,.76,.2,1) both; }
.as-welcome.as-step-in { animation: as-step-enter 200ms ease-out both; }
@keyframes as-arrive {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}
@keyframes as-step-enter {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}
.as-field { position: relative; min-width: 0; border-bottom: 1px solid #a7b9aa65; }
.as-field::after {
  position: absolute; content: ""; inset: auto 0 -1px; height: 2px; border-radius: 2px;
  transform: scaleX(.12); transform-origin: left; opacity: 0; background: #4d8571; pointer-events: none;
  transition: transform 230ms var(--motion-ease), opacity 170ms ease;
}
.as-field:focus-within::after, .as-field:has([aria-invalid=true])::after { transform: scaleX(1); opacity: 1; }
.as-field:has([aria-invalid=true])::after { background: #b86960; }
.as-inputbox { display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 10px 0 13px; cursor: text; }
.as-inputbox:is(:hover, :focus-within, :has([aria-invalid=true])) { min-height: 74px; }
.as-field-icon {
  width: 19px; height: 19px; flex: none; margin: 2px 0 0 1px; stroke: #718779;
  stroke-width: 1.55; fill: none; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 170ms ease, transform 210ms var(--motion-ease);
}
.as-field:focus-within .as-field-icon { stroke: var(--auth-green); transform: translateY(-2px); }
.as-field-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.as-field-content label { color: #52675a; font-size: 12px; font-weight: 550; line-height: 15px; transition: color 160ms; cursor: text; }
.as-field:focus-within label { color: var(--auth-green); }
.as-field-content input {
  min-width: 0; width: 100%; height: 25px; padding: 0; border: 0; outline: 0; background: transparent;
  font-size: 16px; font-weight: 450; line-height: 25px; color: #25372e; caret-color: var(--auth-green);
}
.as-field-content input::placeholder { color: #8a998d; font-size: 14px; font-weight: 400; opacity: 1; }
.as-eye {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none; border: 0; border-radius: 50%;
  margin: 0; background: transparent; color: #65796d;
  transition: background 160ms, color 160ms, transform 160ms var(--motion-ease);
}
.as-eye:hover { color: var(--auth-green); background: #e8f0e7; }
.as-eye:active { transform: scale(.94); }
.as-eye:focus-visible { outline-offset: -2px; }
.as-eye svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.as-form-actions { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 24px; }
.as-submit {
  display: flex; position: relative; align-items: center; justify-content: center; gap: 9px; width: min(100%,248px);
  min-width: 121px; height: 48px; padding: 0 45px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(110deg,#396f60,#285c4e); border: 1px solid #356758;
  box-shadow: 0 4px 12px #315a4226, inset 0 1px 0 #ffffff18;
  color: white; font-size: 14px; font-weight: 650; letter-spacing: .1px;
  transition: background 170ms, border-color 170ms, box-shadow 200ms, transform 180ms var(--motion-ease);
}
.as-submit svg {
  position: absolute; right: 9px; top: 8px; width: 30px; height: 30px; padding: 7px; border-radius: 50%;
  background: #ffffff1d; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--motion-ease), background 160ms;
}
.as-submit:hover:not(:disabled) { background: linear-gradient(110deg,#326757,#214f43); border-color: #24594b; box-shadow: 0 5px 15px #294d3930; }
.as-submit:hover:not(:disabled) svg { transform: translateX(2px); background: #ffffff31; }
.as-submit:active:not(:disabled) { transform: scale(.985); }
.as-submit:disabled { opacity: .86; cursor: wait; }
.as-submit.as-busy { padding: 0 18px; }
.as-submit.as-busy svg { display: none; }
.as-submit.as-done { background: #346c59; }
.as-spinner { display: none; width: 15px; height: 15px; border: 2px solid #fff6; border-top-color: #fff; border-radius: 50%; animation: as-spin 700ms linear infinite; }
.as-busy .as-spinner { display: block; }
@keyframes as-spin { to { transform: rotate(360deg); } }

.as-error { display: flex; gap: 7px; align-items: center; padding-top: 10px; color: #a3433b; font-size: 12px; line-height: 1.5; animation: as-arrive 180ms ease-out both; }
.as-error svg, .as-session-note svg, .as-code-icon svg, .as-return svg {
  flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.as-error svg { width: 15px; height: 15px; }
.as-session-note {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px auto -8px; padding: 9px 12px;
  width: fit-content; max-width: 100%; background: #fcf4e5c9; border: 1px solid #e6d6b9; border-radius: 12px;
  color: #80552e; font-size: 12px; line-height: 1.5; text-align: left;
}
.as-verify-form .as-form-actions { margin-top: 23px; }
.as-verify-form .as-error { padding-top: 9px; }
.as-code-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 17px; color: #496153; font-size: 13px; font-weight: 600; }
.as-code-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; background: #dce9df; color: #376b56; }
.as-code-wrap { position: relative; min-width: 0; border-radius: 14px; cursor: text; }
.as-code-cells { display: none; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 7px; pointer-events: none; }
.as-code-enhanced .as-code-cells { display: grid; }
.as-code-cells span {
  position: relative; display: grid; place-items: center; height: 56px; border-radius: 12px;
  background: #ffffff8c; border: 1px solid #c7d5ca; color: #284d3d; font-size: 24px; font-weight: 550;
  font-variant-numeric: tabular-nums; transition: background 180ms, border-color 180ms, box-shadow 180ms;
}
.as-code-cells span.filled { background: #e9f2e9; border-color: #aec7b6; }
.as-code-wrap:focus-within span.current { border-color: #538a73; background: white; box-shadow: 0 0 0 3px #6fa88b29; }
.as-code-wrap:focus-within span.current:not(.filled)::after {
  content: ""; position: absolute; width: 1.5px; height: 22px; border-radius: 1px; background: #397460; animation: as-caret 1.1s steps(1) infinite;
}
@keyframes as-caret { 50% { opacity: 0; } }
.as-code-wrap:has([aria-invalid=true]) .as-code-cells span { background: #fff3f0; border-color: #ca938a; }
#as-code { width: 100%; margin: 0; border: 1px solid #c7d5ca; border-radius: 12px; padding: 12px; font-size: 16px; }
.as-code-enhanced #as-code {
  position: absolute; inset: 0; height: 100%; padding: 0; border: 0; outline: 0;
  opacity: .01; background: transparent; color: transparent; caret-color: transparent; cursor: text;
}
.as-return {
  display: inline-flex; justify-self: center; align-items: center; gap: 6px; margin-top: 13px; padding: 5px 8px;
  border: 0; background: transparent; color: #587162; border-radius: 8px; font-size: 12px; line-height: 1.55;
  transition: color 160ms, background 160ms;
}
.as-return:hover { color: #285e4e; background: #e0ece1a8; }
.as-return svg { width: 14px; height: 14px; }

@supports (corner-shape: superellipse(1.5)) {
  .as-form { corner-shape: superellipse(1.5); }
  .as-code-cells span, .as-code-icon { corner-shape: superellipse(1.35); }
}
@media (max-width: 480px) {
  .as-form-wrap { width: min(100%,365px); }
  .as-login-side { padding-top: max(23px, env(safe-area-inset-top)); padding-bottom: max(23px, env(safe-area-inset-bottom)); }
  .as-brand { margin-bottom: 20px; }
  .as-brand img { width: 162px; }
  .as-welcome h1 { font-size: 26px; }
  .as-form { padding: 18px 21px 20px; border-radius: 27px; margin-top: 23px; min-height: 244px; }
  .as-inputbox { min-height: 69px; }
  .as-form-actions { margin-top: 20px; }
  .as-code-cells { gap: 5px; }
  .as-code-cells span { height: 50px; font-size: 22px; }
  .as-ribbon-art { opacity: .9; }
  .as-ribbon-light { background: radial-gradient(ellipse 82% 50% at 50% 47%, #fdfdf7b0, transparent); }
}
@media (max-height: 650px) {
  .as-brand { margin-bottom: 15px; }
  .as-form { margin-top: 18px; }
  .as-inputbox { min-height: 64px; }
}
@media (max-width: 340px) {
  .as-form { padding-inline: 16px; }
  .as-code-cells { gap: 4px; }
  .as-code-cells span { height: 46px; border-radius: 9px; }
  .as-submit { width: 100%; min-width: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .as-auth, .as-auth *, .as-auth *::before, .as-auth *::after { animation: none !important; transition: none !important; }
  .as-ribbon-back, .as-ribbon-front, .as-ribbon-glint { will-change: auto; }
}
