:root {
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #18243a;
  background: #eef3fa;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; min-height: 100vh; padding-bottom: 46px; }

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background:
    radial-gradient(circle at 12% 18%, rgba(63, 137, 255, .16), transparent 34%),
    radial-gradient(circle at 88% 84%, rgba(47, 190, 178, .12), transparent 30%),
    linear-gradient(145deg, #f7faff 0%, #eaf1fa 100%);
}

.registration-card {
  width: min(100%, 460px);
  padding: 36px;
  border: 1px solid rgba(154, 176, 207, .42);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 60px rgba(38, 61, 94, .14);
}

.brand-mark {
  width: 58px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #3378e8, #24a8b9);
  font-weight: 800;
  letter-spacing: .08em;
}

h1 { margin: 0; font-size: 28px; line-height: 1.25; }
.subtitle { margin: 10px 0 12px; color: #6c7890; font-size: 14px; }

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 24px;
}

.intro-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #276fca;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.intro-link:hover { color: #174f99; text-decoration: underline; }
.intro-link:focus-visible { outline: 3px solid rgba(60, 130, 236, .22); outline-offset: 3px; }

.warning {
  margin-bottom: 24px;
  padding: 12px 14px;
  border: 1px solid #f4d49a;
  border-radius: 9px;
  color: #8b5a10;
  background: #fff8e9;
  font-size: 13px;
  line-height: 1.55;
}

form { display: grid; }
label { margin: 0 0 8px; color: #3f4b60; font-size: 14px; font-weight: 650; }
input {
  width: 100%;
  height: 44px;
  margin-bottom: 18px;
  padding: 0 13px;
  border: 1px solid #cbd6e6;
  border-radius: 8px;
  outline: none;
  color: #18243a;
  background: #fff;
  font: inherit;
  transition: border-color .16s, box-shadow .16s;
}
input:focus { border-color: #3c82ec; box-shadow: 0 0 0 3px rgba(60, 130, 236, .14); }
input::placeholder { color: #9aa6b8; }

.message { min-height: 22px; margin: -2px 0 12px; font-size: 13px; line-height: 1.5; }
.message.error { color: #c33c3c; }
.message.success { color: #168357; }
.message.idle { color: transparent; }

button {
  height: 46px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #347be9, #2a91d0);
  box-shadow: 0 10px 20px rgba(52, 123, 233, .22);
  font: 650 15px/1 inherit;
  cursor: pointer;
}
button:hover { filter: brightness(1.04); }
button:disabled { cursor: wait; opacity: .68; }

.icp-footer {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  padding: 10px 16px;
  background: rgba(247, 250, 255, .9);
  border-top: 1px solid rgba(154, 176, 207, .28);
  backdrop-filter: blur(8px);
}

.icp-footer a {
  color: #6c7890;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
}
.icp-footer a:hover { color: #276fca; text-decoration: underline; }
.icp-footer a:focus-visible { outline: 3px solid rgba(60, 130, 236, .22); outline-offset: 3px; }

@media (max-width: 520px) {
  .page-shell { align-items: start; padding-top: 20px; }
  .registration-card { padding: 26px 22px; border-radius: 14px; }
  h1 { font-size: 24px; }
}
