:root {
  --primary: #6c3ff5;
  --ink: #f7f7f7;
  --muted: #a8afb8;
  --border: #1b1b1b;
  --bg: #050505;
  --soft: #111111;
  --login-input-font-size: 20px;
  --login-input-line-height: 1.35;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

body {
  min-height: 100vh;
  background: #050505;
  color: var(--ink);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

html,
body,
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

a { color: inherit; text-decoration: none; }

.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.showcase {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  padding: 64px 64px 0;
  color: #06111d;
  background:
    radial-gradient(circle at 47% 53%, rgba(190,190,190,.72), transparent 0 31%, transparent 56%),
    radial-gradient(circle at 46% 52%, #dedede 0%, #d3d3d3 32%, #c8c8c8 58%, #d8d8d8 100%);
}

.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 52% 55%, rgba(255,255,255,.36), transparent 0 28%, transparent 62%);
}

.showcase::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  left: 16%;
  top: 18%;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  filter: blur(74px);
}

.brand, .links, .stage { position: relative; z-index: 1; }

.brand, .mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(0,0,0,.08);
  color: #111;
}

.stage {
  min-height: 0;
  display: flex;
  align-items: end;
  justify-content: flex-start;
}

.characters {
  position: relative;
  width: 570px;
  height: 500px;
}

.character {
  position: absolute;
  bottom: 0;
  transform-origin: bottom center;
  transition: transform 700ms ease, height 700ms ease;
}

.purple {
  left: 98px;
  width: 225px;
  height: 500px;
  z-index: 1;
  border-radius: 10px 10px 0 0;
  background: #6c3ff5;
}

.black {
  left: 308px;
  width: 150px;
  height: 390px;
  z-index: 2;
  border-radius: 8px 8px 0 0;
  background: #2d2d2d;
}

.orange {
  left: 0;
  width: 305px;
  height: 250px;
  z-index: 3;
  border-radius: 152px 152px 0 0;
  background: #ff9b6b;
}

.yellow {
  left: 410px;
  width: 175px;
  height: 288px;
  z-index: 4;
  border-radius: 70px 70px 0 0;
  background: #e8d754;
}

.eyes {
  position: absolute;
  display: flex;
  gap: 28px;
  transition: left 250ms ease, top 250ms ease;
}

.eye {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
  transition: height 150ms ease;
}

.pupil, .plain-pupil {
  border-radius: 999px;
  background: #2d2d2d;
  transition: transform 100ms ease-out;
}

.plain-pupil { width: 12px; height: 12px; }

.yellow-mouth {
  position: absolute;
  width: 80px;
  height: 4px;
  border-radius: 999px;
  background: #2d2d2d;
  transition: left 200ms ease, top 200ms ease;
}

.links {
  display: flex;
  gap: 32px;
  color: rgba(17,17,17,.56);
  font-size: 18px;
  margin-top: -4px;
}

.links a:hover { color: #111; }

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: #050505;
  color: #f7f7f7;
}

.login-card { width: min(525px, 100%); }

.mobile-brand {
  display: none;
  justify-content: center;
  margin-bottom: 48px;
}

.mobile-brand .brand-mark {
  background: rgba(108,63,245,.1);
  color: var(--primary);
}

.header {
  margin-bottom: 58px;
  text-align: center;
}

.header h1 {
  margin-bottom: 10px;
  font-size: 40px;
  line-height: 1.2;
  color: #fff;
}

.header p {
  color: #a8afb8;
  font-size: 18px;
}

.form { display: grid; gap: 28px; }

.field { position: relative; display: grid; gap: 8px; }
.auth-extra { animation: panelIn 220ms ease both; }

label {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

input[type="email"], input[type="password"], input[type="text"],
.login-input {
  width: 100%;
  height: 60px;
  border: 1px solid #1d1d1d;
  border-radius: 8px;
  padding: 0 16px;
  color: #d7dbe0;
  background: #050505;
  font: 500 var(--login-input-font-size)/var(--login-input-line-height) Inter, "Segoe UI", "Microsoft YaHei", sans-serif !important;
  font-size: var(--login-input-font-size) !important;
  font-weight: 500 !important;
  line-height: var(--login-input-line-height) !important;
  letter-spacing: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

input.login-input::first-line {
  font: 500 var(--login-input-font-size)/var(--login-input-line-height) Inter, "Segoe UI", "Microsoft YaHei", sans-serif !important;
  font-size: var(--login-input-font-size) !important;
  line-height: var(--login-input-line-height) !important;
}

input[type="email"]:-webkit-autofill,
input[type="password"]:-webkit-autofill,
input[type="text"]:-webkit-autofill,
input.login-input:-webkit-autofill,
input[type="email"]:-webkit-autofill:hover,
input[type="password"]:-webkit-autofill:hover,
input[type="text"]:-webkit-autofill:hover,
input.login-input:-webkit-autofill:hover,
input[type="email"]:-webkit-autofill:focus,
input[type="password"]:-webkit-autofill:focus,
input[type="text"]:-webkit-autofill:focus,
input.login-input:-webkit-autofill:focus {
  font: 500 var(--login-input-font-size)/var(--login-input-line-height) Inter, "Segoe UI", "Microsoft YaHei", sans-serif !important;
  font-size: var(--login-input-font-size) !important;
  font-weight: 500 !important;
  line-height: var(--login-input-line-height) !important;
  -webkit-text-fill-color: #050505;
  caret-color: #050505;
  box-shadow: 0 0 0 1000px #e8f0fe inset;
}

input[type="email"]:-webkit-autofill::first-line,
input[type="password"]:-webkit-autofill::first-line,
input[type="text"]:-webkit-autofill::first-line,
input.login-input:-webkit-autofill::first-line {
  font: 500 var(--login-input-font-size)/var(--login-input-line-height) Inter, "Segoe UI", "Microsoft YaHei", sans-serif !important;
  font-size: var(--login-input-font-size) !important;
  font-weight: 500 !important;
  line-height: var(--login-input-line-height) !important;
}

input.login-input:-internal-autofill-previewed,
input.login-input:-internal-autofill-selected {
  font: 500 var(--login-input-font-size)/var(--login-input-line-height) Inter, "Segoe UI", "Microsoft YaHei", sans-serif !important;
  font-size: var(--login-input-font-size) !important;
  font-weight: 500 !important;
  line-height: var(--login-input-line-height) !important;
}

input.login-input:-internal-autofill-previewed::first-line,
input.login-input:-internal-autofill-selected::first-line {
  font: 500 var(--login-input-font-size)/var(--login-input-line-height) Inter, "Segoe UI", "Microsoft YaHei", sans-serif !important;
  font-size: var(--login-input-font-size) !important;
  font-weight: 500 !important;
  line-height: var(--login-input-line-height) !important;
}

input:focus {
  border-color: #3a3a3a;
  box-shadow: 0 0 0 4px rgba(255,255,255,.04);
}

input::placeholder {
  color: #7d858e;
  font: 500 var(--login-input-font-size)/var(--login-input-line-height) Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: var(--login-input-font-size);
  line-height: var(--login-input-line-height);
  opacity: 1;
}

.password-wrap { position: relative; }
.password-wrap input { padding-right: 58px; }

.autofill-value-proxy {
  position: absolute;
  z-index: 2;
  display: none;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  color: #d7dbe0;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field > .autofill-value-proxy {
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 60px;
}

.password-wrap > .autofill-value-proxy {
  inset: 0 58px 0 16px;
}

.autofill-value-proxy.show { display: flex; }
.autofill-value-proxy.autofilled { color: #050505; }

input.login-input.proxy-hidden {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

input.login-input.proxy-hidden::placeholder {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.icon-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8c929a;
  cursor: pointer;
  line-height: 1;
  transform: translateY(-50%);
  transition: color 160ms ease, background 160ms ease;
}

.icon-btn:hover {
  color: #fff;
  background: rgba(255,255,255,.04);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 18px;
}

.remember input {
  width: 20px;
  height: 20px;
  accent-color: #f0f0f0;
}

.link {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

.link:hover { text-decoration: underline; }
.link-button { padding: 0; }
.link.strong { font-weight: 700; }

.error, .success {
  display: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  animation: noticeIn 160ms ease both;
}

.error {
  border: 1px solid rgba(185,28,28,.22);
  color: #dc2626;
  background: rgba(254,226,226,.56);
}

.error.show { display: block; }

.success {
  border: 1px solid rgba(22,163,74,.22);
  color: #22c55e;
  background: rgba(20,83,45,.26);
}

.success.show { display: block; }

.btn {
  width: 100%;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 22px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #050505;
  background: #e8e8e8;
}

.btn-primary:hover { background: #fff; }

.btn-outline {
  margin-top: 30px;
  border-color: #1d1d1d;
  background: #050505;
  color: #fff;
}

.btn-outline:hover { background: #101010; }

.signup {
  margin-top: 40px;
  color: #c0c5cc;
  text-align: center;
  font-size: 18px;
}

.signup a {
  color: #fff;
  font-weight: 700;
}

.signup a:hover { text-decoration: underline; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes noticeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .showcase { padding: 44px 36px 0; }
  .characters { transform: scale(.82); transform-origin: left bottom; }
}

@media (max-width: 960px) {
  .page { grid-template-columns: 1fr; }
  .showcase { display: none; }
  .mobile-brand { display: flex; }
  .login-panel { min-height: 100vh; padding: 28px; }
}

@media (max-width: 560px) {
  .login-panel { padding: 24px 18px; }
  .mobile-brand { margin-bottom: 36px; }
  .header { margin-bottom: 40px; }
  .header h1 { font-size: 34px; }
  .header p, label, .remember, .link, .signup { font-size: 16px; }
  .row { align-items: flex-start; flex-direction: column; }
  input[type="email"], input[type="password"], input[type="text"], .btn { height: 56px; }
  input[type="email"], input[type="password"], input[type="text"] { font-size: var(--login-input-font-size) !important; }
  .field > .autofill-value-proxy { height: 56px; }
}

input.login-input,
input.login-input::placeholder,
input.login-input::first-line,
input.login-input:-webkit-autofill,
input.login-input:-webkit-autofill:hover,
input.login-input:-webkit-autofill:focus,
input.login-input:-webkit-autofill::first-line,
input.login-input:-internal-autofill-previewed,
input.login-input:-internal-autofill-selected,
input.login-input:-internal-autofill-previewed::first-line,
input.login-input:-internal-autofill-selected::first-line {
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}
