:root {
  --cyan: #2f8fa3;
  --cyan-dark: #237286;
  --deep: #203a4a;
  --muted: #718293;
  --line: #d3dce2;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--deep);
  background: #f7fafc;
  font-size: 16px;
  line-height: 1.5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f7fafc;
}

button,
input { font: inherit; }

button {
  border: 0;
  background: none;
  cursor: pointer;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(560px, 760px);
  gap: 5vw;
  align-items: center;
  padding: 5.5vh 6.5vw;
  background: #f7fafc url("../assets/login-background.png") center / cover no-repeat;
  overflow: hidden;
}

.login-artboard {
  min-height: 650px;
  border-radius: 12px;
}

.login-card {
  width: 100%;
  max-width: 760px;
  padding: 74px 56px 66px;
  background: #fff;
  border: 1px solid #d5e0e5;
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(31, 57, 71, .14);
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 0 46px;
}

.brand-icon {
  width: 66px;
  height: 66px;
  flex: none;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-title h1 {
  margin: 0;
  color: var(--deep);
  font-size: 35px;
  line-height: 1.25;
  letter-spacing: 1px;
  white-space: nowrap;
}

.field-row {
  display: grid;
  grid-template-columns: 34px 92px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0 0 30px;
  color: var(--deep);
}

.field-row > svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field-row > span {
  font-size: 18px;
  white-space: nowrap;
}

.field-row input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  color: var(--deep);
  font-size: 16px;
  outline: none;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.field-row input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(47, 143, 163, .12);
}

.verify-row { margin-bottom: 26px; }

.verify-hint {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 18px;
  color: #85929d;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 30px;
  color: var(--deep);
  font-size: 16px;
}

.login-options label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-options input {
  width: 26px;
  height: 26px;
  margin: 0;
  accent-color: var(--cyan);
}

.login-options button {
  color: var(--cyan);
  font-size: 16px;
}

.login-message {
  min-height: 24px;
  margin: 0 0 9px;
  color: #d36b63;
  font-size: 16px;
}

.enter-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 78px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  border-radius: 6px;
  background: var(--cyan);
  box-shadow: 0 6px 0 var(--cyan-dark);
  transition: .18s;
}

.enter-button svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.enter-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.enter-button:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--cyan-dark);
}

.captcha-mask {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 54, 65, .42);
  backdrop-filter: blur(5px);
}

.captcha-mask[hidden] { display: none; }

.captcha-dialog {
  width: min(520px, calc(100vw - 36px));
  padding: 28px;
  background: #fff;
  border: 1px solid #d2dfe4;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(24, 55, 69, .28);
}

.captcha-dialog header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.captcha-dialog header span {
  color: var(--muted);
  font-size: 14px;
}

.captcha-dialog h2 {
  margin: 3px 0 0;
  color: var(--deep);
  font-size: 22px;
}

.captcha-dialog > p {
  margin: 14px 0;
  color: var(--muted);
  font-size: 16px;
}

.close-button {
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
}

.puzzle-stage {
  position: relative;
  height: 220px;
  overflow: hidden;
  border: 1px solid #c4d9e1;
  border-radius: 6px;
  background-color: #dbe9ed;
  background-position: center;
  background-size: cover;
}

.puzzle-hole,
.puzzle-piece {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 8px;
}

.puzzle-hole {
  left: 0;
  border: 2px dashed #fff;
  background: rgba(32, 58, 74, .28);
  box-shadow: 0 0 0 1px rgba(32, 58, 74, .28), 0 5px 12px rgba(21, 53, 67, .2);
}

.puzzle-piece {
  left: 0;
  border: 2px solid #fff;
  background-color: var(--cyan);
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 8px 18px rgba(21, 53, 67, .3);
}

.puzzle-hole[data-shape="triangle"],
.puzzle-piece[data-shape="triangle"] {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border-radius: 0;
}

.puzzle-hole[data-shape="diamond"],
.puzzle-piece[data-shape="diamond"] {
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  border-radius: 0;
}

.puzzle-hole[data-shape="hexagon"],
.puzzle-piece[data-shape="hexagon"] {
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  border-radius: 0;
}

.puzzle-hole[data-shape="ticket"],
.puzzle-piece[data-shape="ticket"] {
  clip-path: polygon(0 0, 100% 0, 100% 36%, 90% 42%, 100% 50%, 100% 100%, 0 100%, 0 64%, 10% 58%, 0 50%);
  border-radius: 0;
}

.slider-track {
  position: relative;
  height: 54px;
  margin-top: 18px;
  color: #81919b;
  font-size: 14px;
  line-height: 52px;
  text-align: center;
  border: 1px solid #c7d7de;
  border-radius: 6px;
  background: #f2f7f9;
  touch-action: none;
}

.slider-thumb {
  position: absolute;
  top: 3px;
  left: 0;
  width: 48px;
  height: 46px;
  color: #fff;
  font-size: 30px;
  line-height: 42px;
  border-radius: 5px;
  background: var(--cyan);
  cursor: grab;
  touch-action: none;
}

.slider-thumb:active { cursor: grabbing; }

.change-captcha {
  display: block;
  margin: 12px 0 0 auto;
  color: var(--cyan);
  font-size: 15px;
}

.captcha-status {
  min-height: 24px;
  margin-top: 10px;
  color: #d36b63;
  font-size: 14px;
}

@media (max-width: 1050px) {
  .login-page { grid-template-columns: 1fr; padding: 28px; }
  .login-artboard { display: none; }
  .login-card { justify-self: center; }
}

@media (max-width: 620px) {
  .login-page { padding: 14px; }
  .login-card { padding: 34px 22px; }
  .brand-title { gap: 12px; margin-bottom: 34px; }
  .brand-icon { width: 50px; height: 50px; }
  .brand-title h1 { font-size: 25px; white-space: normal; }
  .field-row { grid-template-columns: 30px 78px minmax(0, 1fr); gap: 8px; }
  .field-row > span { font-size: 16px; }
  .enter-button { height: 64px; font-size: 22px; }
}
