:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #344258;
  background: #f7fbff;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; }

.page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  padding: 32px 20px;
  background: radial-gradient(circle at 50% 25%, #fff 0, #f9fcff 60%, #eef7ff 100%);
}

.network {
  position: absolute;
  bottom: -2%;
  left: 50%;
  width: max(1200px, 100vw);
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: .72;
}

.card {
  position: relative;
  width: min(100%, 520px);
  padding: 44px 54px 38px;
  border: 1px solid #d7e6f5;
  border-radius: 18px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 20px 65px rgba(72, 123, 172, .08);
  text-align: center;
}

h1 {
  margin: 0;
  color: #344258;
  font-size: clamp(25px, 3vw, 31px);
  font-weight: 700;
  line-height: 1.2;
}

.intro {
  margin: 16px 0 38px;
  color: #65758d;
  font-size: 17px;
  line-height: 1.45;
}

label {
  display: block;
  margin-bottom: 10px;
  color: #344258;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

input {
  width: 100%;
  min-width: 0;
  height: 55px;
  padding: 0 16px;
  border: 1px solid #cbdcf0;
  border-radius: 10px;
  outline: none;
  background: #fbfdff;
  color: #344258;
  font: inherit;
}

input::placeholder { color: #98a6b8; }
input:focus { border-color: #4c95ed; box-shadow: 0 0 0 3px rgba(76, 149, 237, .17); }

button {
  border: 0;
  border-radius: 10px;
  background: #468ee8;
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: background .15s ease;
}

button:hover { background: #317bd5; }
button:focus-visible { outline: 3px solid #a4ccfa; outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .65; }

#submit-button { width: 100%; height: 56px; margin-top: 25px; }

.note, .helper { color: #718097; font-size: 14px; line-height: 1.45; }
.note { margin: 17px 0 0; }
.helper { margin: 25px 0 0; }
.divider { height: 1px; margin-top: 28px; background: #d8e3ef; }
.message { min-height: 0; margin: 12px 0 0; color: #b04444; font-size: 14px; }
.message:empty { display: none; }

.qr { width: 210px; height: 210px; margin: 0 auto 28px; }
.link-row { display: flex; gap: 8px; }
.link-row input { font-size: 13px; }
.link-row button { flex: none; padding: 0 18px; }

@media (max-width: 600px) {
  .page { padding: 24px 17px; }
  .network { width: 1100px; bottom: -40px; opacity: .52; }
  .card { padding: 42px 24px 34px; }
  h1 { font-size: 25px; }
  .intro { font-size: 15px; margin-bottom: 32px; }
  .link-row { flex-direction: column; }
  .link-row button { min-height: 48px; }
}
