:root {
  --blue: #168cf0;
  --navy: #142b4a;
  --aqua: #16baa9;
  --ink: #14253d;
  --muted: #6d7d91;
  --line: #dbe6ef;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: #1e93f8;
  color: var(--ink);
}

.registration-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
  overflow: hidden;
  background: #1e93f8;
}

.registration-page::before,
.registration-page::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 440px;
  aspect-ratio: 1;
  border: 44px solid #ffffff1e;
  border-radius: 50%;
}

.registration-page::before { top: -230px; left: -160px; }
.registration-page::after { right: -180px; bottom: -230px; }

.company-mark {
  position: absolute;
  top: 26px;
  left: 30px;
  display: flex;
  align-items: center;
  width: min(205px, calc(100vw - 60px));
  padding: 0;
}

.company-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.registration-form {
  width: min(100%, 510px);
  display: grid;
  gap: 17px;
  padding: 42px;
  background: #fffffff7;
  border: 1px solid #ffffff80;
  border-radius: 22px;
  box-shadow: 0 28px 70px #09284a42;
}

.registration-form[hidden] { display: none !important; }

.form-header {
  margin-bottom: 7px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.form-header p {
  margin: 0 0 10px;
  color: #1e93f8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

.form-header h1 {
  margin: 0;
  color: var(--navy);
  font-size: 29px;
  line-height: 1.15;
  letter-spacing: -1.2px;
}

.form-header span {
  display: block;
  margin-top: 11px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.registration-form label {
  display: grid;
  gap: 7px;
  color: #405773;
  font-size: 11px;
  font-weight: 700;
}

.registration-form input,
.registration-form select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 13px;
  background: #f9fcfe;
  color: var(--ink);
  font-size: 12px;
  outline: 0;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.registration-form input:hover,
.registration-form select:hover { border-color: #b5d8ec; }

.registration-form input:focus,
.registration-form select:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px #168cf025;
}

.registration-form input::placeholder { color: #a4b1c0; }

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.registration-form button {
  height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 9px;
  background: #1e93f8;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 20px #1e93f85c;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.registration-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 24px #1e93f878;
}

.registration-form button:disabled { cursor: wait; opacity: .78; transform: none; }

.registration-form button b { margin-left: 8px; font-size: 17px; }

.test-accounts { margin-top: 18px; padding: 16px; border: 1px solid #dbeaf3; border-radius: 14px; background: #f6fbfe; }
.test-accounts-heading { display: grid; gap: 4px; }
.test-accounts-heading strong { color: #143b55; font-size: 14px; }
.test-accounts-heading span, .test-accounts small { color: #64798a; font-size: 12px; line-height: 1.45; }
.test-account-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.registration-form .test-account { display: grid; gap: 3px; min-height: 58px; margin: 0; padding: 9px 6px; border: 1px solid #cde2ef; border-radius: 10px; background: #fff; color: #174c6e; box-shadow: none; font-size: 12px; }
.registration-form .test-account:hover { border-color: #61add4; background: #eaf7fd; transform: translateY(-1px); }
.test-account b { margin: 0 !important; font-size: 13px !important; }
.test-account span { color: #64798a; font-size: 10px; font-weight: 500; }
.test-accounts code { color: #0b668f; font-weight: 700; }

.verification-form { gap: 20px; }
.verification-form input[name="code"] { letter-spacing: 7px; font-size: 17px; font-weight: 800; text-align: center; }

.form-switch {
  margin: 2px 0 -10px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.login-link {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #1e93f8;
  border-radius: 9px;
  color: #1e93f8;
  background: #f5fbff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: background .2s, transform .2s;
}

.login-link:hover { background: #e9f6ff; transform: translateY(-1px); }
.login-link b { font-size: 17px; }

.toast {
  position: fixed;
  right: 28px;
  bottom: 25px;
  padding: 13px 18px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 30px #0e2f4d40;
  font-size: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: .25s;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #b42318; }

@media (max-width: 520px) {
  .registration-page { padding: 24px 16px; }
  .company-mark { top: 16px; left: 16px; width: 160px; }
  .registration-form { padding: 30px 22px; border-radius: 18px; }
  .form-header h1 { font-size: 25px; }
  .row { grid-template-columns: 1fr; }
  .test-account-list { grid-template-columns: 1fr; }
}
