:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  background: #090c13;
  color: #f4f6fb;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(121, 81, 255, 0.28), transparent 34%),
    radial-gradient(circle at 0% 62%, rgba(31, 164, 219, 0.12), transparent 36%),
    #090c13;
}

button,
input {
  font: inherit;
}

.shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.card {
  width: min(100%, 520px);
  border: 1px solid rgba(146, 155, 180, 0.17);
  border-radius: 22px;
  background: rgba(18, 22, 33, 0.95);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  padding: clamp(18px, 5vw, 28px);
}

header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}

.brand {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border: 1px solid rgba(176, 154, 255, 0.44);
  border-radius: 16px;
  background: linear-gradient(145deg, #835eff, #5030b9);
  box-shadow: 0 12px 30px rgba(80, 43, 190, 0.34);
  font-size: 25px;
  font-weight: 900;
}

h1,
p {
  margin: 0;
}

h1 {
  font-size: 21px;
}

.eyebrow {
  margin-bottom: 3px;
  color: #9a80ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.subtitle {
  margin-top: 3px;
  color: #858da0;
  font-size: 12px;
}

.error {
  margin-bottom: 15px;
  border: 1px solid rgba(223, 100, 118, 0.27);
  border-radius: 12px;
  background: rgba(191, 65, 85, 0.09);
  color: #f09aa7;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
}

fieldset {
  margin: 0 0 14px;
  border: 0;
  padding: 0;
}

legend,
.field > span {
  display: block;
  margin-bottom: 7px;
  color: #b8bfd0;
  font-size: 11px;
  font-weight: 700;
}

.channel-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.channel-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 58px;
  border: 1px solid rgba(146, 155, 180, 0.18);
  border-radius: 13px;
  background: #10151f;
  padding: 9px;
  cursor: pointer;
}

.channel-option:has(input:checked) {
  border-color: #7956ef;
  background: rgba(103, 72, 220, 0.17);
  box-shadow: inset 0 0 0 1px rgba(126, 91, 247, 0.17);
}

.channel-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.channel-mark {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, #855fff, #5934c7);
  font-size: 12px;
  font-weight: 900;
}

.channel-option > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.channel-option strong {
  font-size: 11px;
  white-space: nowrap;
}

.channel-option small {
  overflow: hidden;
  color: #707a90;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field {
  display: block;
  margin-bottom: 12px;
}

.field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 158, 185, 0.2);
  border-radius: 12px;
  outline: none;
  background: #0c1018;
  color: #f8f9fc;
  padding: 10px 12px;
  font-size: 16px;
}

.field input:focus {
  border-color: #7959ee;
  box-shadow: 0 0 0 3px rgba(115, 79, 234, 0.14);
}

button {
  width: 100%;
  min-height: 48px;
  margin-top: 3px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #825eff, #5d37d2);
  box-shadow: 0 10px 24px rgba(80, 43, 190, 0.28);
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.privacy-note {
  display: grid;
  gap: 3px;
  margin-top: 14px;
  border-top: 1px solid rgba(145, 154, 180, 0.12);
  color: #717b90;
  padding-top: 13px;
  font-size: 10px;
  line-height: 1.55;
}

.privacy-note strong {
  color: #66d2aa;
  font-size: 11px;
}

@media (max-width: 420px) {
  .channel-picker {
    grid-template-columns: 1fr;
  }

  .channel-option {
    min-height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
