:root {
  --bg-main: #f4f8ff;
  --card-bg: rgba(255, 255, 255, 0.86);
  --text-main: #0f172a;
  --text-sub: #64748b;
  --danger: #dc2626;
  --primary-a: #2563eb;
  --primary-b: #0ea5e9;
  --key-bg: #ffffff;
  --key-shadow: 0 10px 24px rgba(30, 64, 175, 0.12);
}

* {
  box-sizing: border-box;
}

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

body.password-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, #dbeafe, transparent 45%),
    radial-gradient(circle at 80% 0%, #bfdbfe, transparent 40%),
    linear-gradient(160deg, var(--bg-main), #eaf3ff);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.45;
  pointer-events: none;
}

.bg-orb-a {
  width: 240px;
  height: 240px;
  top: -60px;
  left: -40px;
  background: #60a5fa;
}

.bg-orb-b {
  width: 200px;
  height: 200px;
  right: -30px;
  bottom: 20%;
  background: #38bdf8;
}

.verify-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.verify-card {
  width: min(100%, 460px);
  background: var(--card-bg);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 24px;
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 55px rgba(37, 99, 235, 0.18);
  padding: 28px 18px 18px;
  animation: card-in 0.4s ease-out;
}

@keyframes card-in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

.logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid rgba(37, 99, 235, 0.22);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.verify-header h1 {
  margin: 14px 0 8px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 1px;
}

.verify-header p {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
}

.password-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px auto 10px;
  max-width: 300px;
}

.slot {
  height: 52px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-a), var(--primary-b));
}

.message,
.attempts {
  min-height: 22px;
  text-align: center;
  font-size: 14px;
}

.message {
  color: var(--danger);
}

.attempts {
  color: var(--text-sub);
}

.keypad {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.key {
  appearance: none;
  border: none;
  border-radius: 14px;
  background: var(--key-bg);
  color: var(--text-main);
  height: 52px;
  font-size: 21px;
  font-weight: 600;
  box-shadow: var(--key-shadow);
  transition: transform 0.08s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.key:active {
  transform: scale(0.97);
}

.key.key-action {
  font-size: 14px;
  letter-spacing: 1px;
}

.key.key-confirm {
  color: white;
  background: linear-gradient(135deg, var(--primary-a), var(--primary-b));
}

.key[disabled] {
  opacity: 0.5;
  box-shadow: none;
}

@media (max-width: 360px) {
  .verify-header h1 {
    font-size: 22px;
  }

  .slot,
  .key {
    height: 48px;
  }
}
