:root {
  --x-bg: #050b1c;
  --x-panel: rgba(12, 24, 54, .84);
  --x-panel-strong: #0c1836;
  --x-text: #f5f8ff;
  --x-muted: #8ea2c9;
  --x-line: rgba(138, 164, 220, .2);
  --x-cyan: #62dcff;
  --x-blue: #718cff;
  --x-purple: #a568ff;
  --x-field: rgba(255, 255, 255, .07);
  --x-shadow: 0 30px 90px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--x-text);
  background:
    radial-gradient(circle at 78% 12%, rgba(113, 140, 255, .27), transparent 26%),
    radial-gradient(circle at 10% 85%, rgba(98, 220, 255, .16), transparent 30%),
    linear-gradient(145deg, #0b1530 0%, var(--x-bg) 48%, #100825 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button, input { font: inherit; }
button { cursor: pointer; }

.xunyin-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 34px 18px;
  position: relative;
  overflow: hidden;
}

.xunyin-page::before,
.xunyin-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.xunyin-page::before {
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(130, 163, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 163, 255, .08) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(150deg, black, transparent 70%);
}

.xunyin-page::after {
  width: min(760px, 92vw);
  height: min(760px, 92vw);
  border: 1px solid rgba(98, 220, 255, .12);
  border-radius: 50%;
  transform: rotate(-18deg);
  box-shadow: 0 0 120px rgba(113, 140, 255, .12), inset 0 0 100px rgba(165, 104, 255, .08);
}

.xunyin-orb {
  position: absolute;
  width: 360px;
  height: 360px;
  right: -110px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 220, 255, .24), transparent 68%);
  filter: blur(8px);
}

.xunyin-shell {
  width: min(100%, 970px);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(160, 183, 255, .2);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(7, 15, 37, .72);
  box-shadow: var(--x-shadow);
  backdrop-filter: blur(22px);
}

.xunyin-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 620px;
  padding: 52px 42px;
  background: linear-gradient(150deg, rgba(18, 47, 103, .9), rgba(23, 9, 61, .72));
}

.xunyin-brand { display: flex; align-items: center; gap: 15px; }
.xunyin-brand img { width: 58px; height: 58px; border-radius: 17px; box-shadow: 0 12px 30px rgba(53, 170, 255, .25); }
.xunyin-brand strong { font-size: 21px; letter-spacing: .08em; }
.xunyin-brand span { display: block; color: var(--x-muted); font-size: 12px; margin-top: 5px; letter-spacing: .2em; }
.xunyin-intro h1 { max-width: 360px; margin: 72px 0 18px; font-size: clamp(38px, 5vw, 58px); line-height: 1.1; letter-spacing: -.04em; }
.xunyin-intro h1 em { color: var(--x-cyan); font-style: normal; }
.xunyin-intro p { max-width: 330px; color: #b8c8e8; line-height: 1.9; margin: 0; }
.xunyin-points { display: grid; gap: 15px; color: #c9d6f1; font-size: 14px; }
.xunyin-points div { display: flex; align-items: center; gap: 10px; }
.xunyin-points i { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: linear-gradient(135deg, var(--x-cyan), var(--x-purple)); box-shadow: 0 0 15px var(--x-cyan); }

.xunyin-login { padding: 48px 52px; background: rgba(7, 14, 32, .62); }
.xunyin-login-head { margin-bottom: 32px; }
.xunyin-login-head h2 { margin: 0 0 9px; font-size: 29px; letter-spacing: -.02em; }
.xunyin-login-head p { margin: 0; color: var(--x-muted); font-size: 14px; }
.xunyin-field-title { margin: 0 0 12px; color: #dfe8ff; font-size: 13px; font-weight: 600; }

.xunyin-role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 25px; }
.xunyin-role-card { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid var(--x-line); border-radius: 14px; color: var(--x-muted); background: rgba(255, 255, 255, .035); transition: .2s ease; }
.xunyin-role-card svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xunyin-role-card:hover, .xunyin-role-card.is-active { border-color: rgba(98, 220, 255, .72); color: #fff; background: linear-gradient(135deg, rgba(98, 220, 255, .13), rgba(165, 104, 255, .15)); box-shadow: 0 12px 30px rgba(28, 110, 188, .12); }

.xunyin-fields { display: grid; gap: 16px; }
.xunyin-form-row { display: grid; gap: 8px; color: var(--x-muted); font-size: 13px; }
.xunyin-form-row input { width: 100%; border: 1px solid var(--x-line); border-radius: 12px; outline: none; padding: 14px 15px; color: var(--x-text); background: var(--x-field); transition: .2s ease; }
.xunyin-form-row input::placeholder { color: #63759b; }
.xunyin-form-row input:focus { border-color: rgba(98, 220, 255, .8); background: rgba(98, 220, 255, .08); box-shadow: 0 0 0 4px rgba(98, 220, 255, .08); }
.xunyin-captcha { display: block; }
.xunyin-captcha > label { display: block; margin-bottom: 8px; }
.xunyin-captcha-controls { display: flex; width: 100%; gap: 10px; align-items: center; }
.xunyin-captcha-controls input { flex: 1 1 auto; min-width: 0; }
.xunyin-captcha-button { flex: 0 0 118px; width: 118px; height: 48px; border: 1px solid var(--x-line); border-radius: 12px; background: rgba(255,255,255,.05); overflow: hidden; }
.xunyin-captcha-button img { width: 100%; height: 100%; object-fit: cover; }

.xunyin-form-meta { display: flex; justify-content: space-between; align-items: center; margin: 22px 0; color: var(--x-muted); font-size: 13px; }
.xunyin-remember { display: flex; align-items: center; gap: 8px; }
.xunyin-remember input { accent-color: var(--x-cyan); }
.xunyin-text-button { border: 0; color: var(--x-cyan); background: transparent; padding: 0; }
.xunyin-submit { width: 100%; border: 0; border-radius: 13px; padding: 15px; color: #061128; font-weight: 700; background: linear-gradient(100deg, var(--x-cyan), #8c9aff 55%, var(--x-purple)); box-shadow: 0 14px 30px rgba(98, 220, 255, .18); transition: .2s ease; }
.xunyin-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(113, 140, 255, .28); }
.xunyin-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.xunyin-status { min-height: 22px; margin: 14px 0 0; color: var(--x-muted); font-size: 13px; text-align: center; }
.xunyin-status[data-state="error"] { color: #ff9cbe; }
.xunyin-status[data-state="success"] { color: #91f4ce; }

.xunyin-modal[hidden] { display: none; }
.xunyin-modal { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(2, 5, 16, .68); }
.xunyin-modal-panel { width: min(100%, 360px); padding: 28px; border: 1px solid var(--x-line); border-radius: 20px; text-align: center; background: var(--x-panel-strong); box-shadow: var(--x-shadow); }
.xunyin-modal-panel h3 { margin: 0 0 20px; font-size: 18px; }
.xunyin-modal-close { border: 1px solid rgba(98, 220, 255, .45); border-radius: 10px; padding: 10px 20px; color: var(--x-text); background: rgba(98, 220, 255, .08); }

@media (max-width: 760px) {
  .xunyin-shell { grid-template-columns: 1fr; border-radius: 22px; }
  .xunyin-intro { min-height: auto; padding: 32px 26px; }
  .xunyin-intro h1 { margin: 42px 0 14px; font-size: 39px; }
  .xunyin-points { display: none; }
  .xunyin-login { padding: 32px 26px 36px; }
}
