:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #23202b;
  background: #f4f2f8;
  font-synthesis: none;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(20px, 5vw, 80px);
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 15% 85%, #ede9f7, transparent 48%),
              radial-gradient(ellipse at 85% 8%, #fbfafc, transparent 65%);
}
[hidden], .icon-library { display: none !important; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #7c52d5; outline-offset: 4px; }
.account-shell {
  width: min(100%, 990px);
  display: grid;
  grid-template-columns: minmax(280px, .88fr) minmax(350px, 1.12fr);
  min-height: 610px;
  background: #fff;
  border: 1px solid #e3dfe9;
  border-radius: 25px;
  box-shadow: 0 23px 65px -36px #31244257;
  overflow: hidden;
}
.identity {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(27px, 3.8vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fcf9ff;
  background: radial-gradient(ellipse at 68% 48%, #55417a 0, #3a2a54 34%, transparent 66%),
              linear-gradient(152deg, #241b37, #35254b 55%, #261b37);
}
.brand { z-index: 1; display: inline-flex; align-items: center; gap: 11px; }
.brand img { display: block; width: 41px; height: auto; }
.brand b { display: block; font-size: 18px; letter-spacing: .08em; }
.brand span { display: block; font-size: 10px; letter-spacing: .045em; color: #d7cce9; }
.workspace-name { z-index: 1; margin: 0; font-size: 23px; font-weight: 600; letter-spacing: .09em; }
.art { position: absolute; inset: 0; pointer-events: none; }
.art img {
  position: absolute;
  width: 65%;
  height: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  filter: drop-shadow(6px 18px 16px #21132d60);
}
.orbit {
  position: absolute;
  left: 50%;
  top: 51%;
  transform: translate(-50%, -50%) rotate(-32deg);
  width: 170%;
  aspect-ratio: 2;
  border: 1px solid #cebae323;
  border-radius: 50%;
}
.orbit::before, .orbit::after {
  content: "";
  position: absolute;
  inset: -10% -6%;
  border: 1px solid #cebae31a;
  border-radius: inherit;
}
.orbit::after { inset: -20% -12%; opacity: .75; }
.orbit-b { width: 137%; aspect-ratio: 2.25; transform: translate(-50%, -50%) rotate(48deg); opacity: .55; }
.account { display: grid; align-items: center; justify-items: center; padding: 44px clamp(28px, 4.6vw, 70px); }
.account-inner { width: min(100%, 354px); }
h1 { margin: 0; color: #241e2d; letter-spacing: -.03em; line-height: 1.3; font-weight: 670; font-size: clamp(28px, 3vw, 37px); }
#intro { margin: 9px 0 32px; font-size: 14px; line-height: 1.6; color: #6e6876; }
.field { margin-bottom: 18px; }
label { display: inline-block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.input-wrap { display: flex; align-items: center; border: 1px solid #cbc7d3; border-radius: 9px; background: #fff; }
.input-wrap:focus-within { border-color: #7146bf; box-shadow: 0 0 0 3px #7848cc1a; }
.input-wrap:has([aria-invalid="true"]) { border-color: #ad3452; }
input {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 0;
  border-radius: inherit;
  padding: 0 13px;
  background: transparent;
  color: inherit;
  font-size: 16px;
  outline: 0;
}
input::placeholder { color: #898290; font-size: 14px; opacity: 1; }
input::-ms-reveal { display: none; }
.visibility {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 40px;
  padding: 0;
  margin-right: 3px;
  background: transparent;
  color: #746c80;
  border: 0;
  border-radius: 7px;
}
.visibility:hover { color: #58339e; background: #f6f2fb; }
svg:not(.icon-library) { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hint { margin: 6px 0 0; font-size: 12px; color: #6e6876; line-height: 1.5; }
.error { margin: 0; font-size: 13px; color: #a92e4b; line-height: 1.5; overflow-wrap: anywhere; }
.error:not(:empty) { margin-bottom: 14px; }
#secure-entry { display: inline-block; margin-bottom: 10px; color: #663ab2; font-size: 14px; }
.submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  margin-top: 6px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #7042c4;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.submit:not(:disabled):hover { background: #5c35a5; }
.submit:disabled { opacity: .65; cursor: progress; }
.switch { margin: 24px 0 0; text-align: center; color: #68626f; font-size: 14px; }
.switch a { display: inline-block; padding: 4px; color: #663ab2; text-decoration: none; font-weight: 600; }
.switch a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  body { padding: 20px 14px; }
  .account-shell { display: block; width: min(100%, 464px); min-height: auto; border-radius: 18px; }
  .identity { padding: 23px clamp(22px, 6vw, 32px); flex-direction: row; align-items: center; gap: 12px; }
  .art img { display: none; }
  .orbit { left: 82%; width: 80%; }
  .brand b { font-size: 17px; }
  .workspace-name { font-size: 14px; letter-spacing: .02em; }
  .account { padding: 32px clamp(22px, 6vw, 40px); }
  #intro { margin-bottom: 24px; }
}
@media (max-width: 340px) {
  body { padding: 10px; }
  .identity, .account { padding-inline: 18px; }
  .brand { gap: 7px; }
}
@media (forced-colors: active) {
  .input-wrap, .submit { border: 1px solid ButtonText; }
  .input-wrap:focus-within { outline: 2px solid Highlight; }
}
