* { box-sizing: border-box; }

:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #121827;
  background: #f7f8ff;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 80px 24px 32px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(152, 224, 250, .8), transparent 42%),
    radial-gradient(circle at 16% 78%, rgba(238, 231, 253, .8), transparent 28%),
    #fbfbff;
}

.brand {
  position: fixed;
  z-index: 1;
  top: 22px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #101827;
  font-size: 1.55rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 62px;
  height: 48px;
  object-fit: contain;
}

.registration-card {
  width: min(100%, 700px);
  padding: 46px 46px 30px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 22px;
  background: rgba(255, 255, 255, .91);
  box-shadow: 0 20px 54px rgba(53, 69, 116, .15);
}

.registration-header { text-align: center; }

.pepper-avatar {
  width: 170px;
  height: 112px;
  object-fit: contain;
  margin-bottom: 8px;
}

h1 {
  margin: 0;
  color: #444b5c;
  font-size: clamp(1.6rem, 3vw, 2.08rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.registration-header p {
  margin: 8px 0 27px;
  color: #7483aa;
  font-size: 1.25rem;
}

.field { margin-bottom: 16px; }

label {
  display: block;
  margin: 0 0 7px;
  font-size: 1rem;
  font-weight: 800;
}

.input-wrap { position: relative; }

.input-icon {
  position: absolute;
  top: 50%;
  left: 19px;
  transform: translateY(-50%);
  color: #99a5c4;
  line-height: 1;
  pointer-events: none;
}

.input-icon svg,
.toggle-password svg {
  display: block;
  width: 25px;
  height: 25px;
  fill: currentColor;
}

input {
  display: block;
  width: 100%;
  min-height: 62px;
  padding: 14px 52px 14px 65px;
  border: 1.5px solid #ccd5eb;
  border-radius: 10px;
  background: #fff;
  color: #28334e;
  font: inherit;
  font-size: 1.08rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}

input::placeholder { color: #8491b4; opacity: 1; }
input:focus { outline: 0; border-color: #5f83d7; box-shadow: 0 0 0 3px rgba(95, 131, 215, .15); }
input[aria-invalid="true"] { border-color: #d95858; }

.toggle-password {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8d9abb;
  cursor: pointer;
}

.toggle-password:focus-visible { outline: 3px solid rgba(95, 131, 215, .35); }
.password-hint { margin: 6px 0 0; color: #8290b4; font-size: .88rem; }
.field-error { min-height: 18px; margin: 4px 0 0; color: #c23f46; font-size: .86rem; }

.message {
  margin: 0 0 18px;
  padding: 11px 14px;
  border: 1px solid #f2c0c3;
  border-radius: 9px;
  background: #fff4f4;
  color: #a6222b;
  font-size: .93rem;
}

.message a { color: inherit; font-weight: 800; }

.submit-button {
  width: 100%;
  min-height: 61px;
  margin-top: 6px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(115deg, #35a868, #2da25f);
  box-shadow: 0 7px 16px rgba(48, 160, 95, .2);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  transition: filter .16s ease, transform .16s ease;
}

.submit-button:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.submit-button:disabled { cursor: wait; opacity: .68; }
.arrow { margin-left: 24px; font-size: 2.2rem; vertical-align: -3px; }

.login-link { margin: 19px 0 0; text-align: center; color: #667595; }
.login-link a { color: #3c74c1; font-weight: 800; }

@media (max-width: 600px) {
  body { padding: 76px 14px 20px; }
  .brand { position: absolute; top: 13px; left: 15px; font-size: 1.3rem; }
  .brand img { width: 48px; height: 39px; }
  .registration-card { padding: 31px 22px 24px; border-radius: 18px; }
  .pepper-avatar { width: 132px; height: 87px; }
  .registration-header p { font-size: 1.05rem; }
  input { min-height: 56px; font-size: 1rem; }
}
