:root {
  --bg: #000000;
  --panel: #080808;
  --panel-soft: #101010;
  --text: #f6f7fb;
  --muted: #6f6f6f;
  --muted-strong: #373737;
  --stroke: rgba(255, 255, 255, 0.08);
  --accent: #63baff;
  --accent-soft: rgba(99, 186, 255, 0.28);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  --radius: 15px;
  --radius-lg: 24px;
  --content-top: 320px;
  --content-width: 450px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 85%, rgba(99, 186, 255, 0.14), transparent 24%),
    radial-gradient(circle at 80% 10%, rgba(99, 186, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #050505 0%, #000000 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
a,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

input {
  border: 0;
  outline: none;
}

.page {
  overflow-x: hidden;
}

.screen {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(320px, 810px) minmax(0, 1fr);
}

.screen--auth,
.screen--reg {
  grid-template-columns: minmax(300px, 36%) minmax(0, 1fr);
}

.panel {
  position: relative;
  background: var(--panel);
  min-height: 100svh;
  overflow: hidden;
}

.panel--compact {
  padding-inline: clamp(24px, 22.2%, 180px);
  padding-top: var(--content-top);
}

.screen--auth .panel--compact,
.screen--reg .panel--compact {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.panel__content {
  position: relative;
  width: min(var(--content-width), 100%);
}

.screen--auth .panel__content,
.screen--reg .panel__content {
  transform: scale(0.95);
  transform-origin: center center;
  margin-inline: auto;
}

.panel__content--stacked,
.panel__content--final {
  display: grid;
  gap: 18px;
}

.panel__link {
  width: fit-content;
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1d;
}

.panel__link--subtle {
  position: absolute;
  top: -12px;
  left: 0;
}

.panel__title {
  margin: 0;
  font-size: 35px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.panel__title--center {
  text-align: center;
}

.panel__title--left {
  text-align: left;
}

.panel__title--final {
  margin-left: 72px;
}

.form {
  display: grid;
  gap: 20px;
  margin-top: 10px;
}

.field {
  position: relative;
  display: block;
}

.field__input {
  width: 100%;
  height: 50px;
  border-radius: var(--radius);
  padding: 0 20px;
  color: var(--text);
  background: var(--panel-soft);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field__input::placeholder {
  color: #5f5f5f;
  opacity: 1;
}

.field__input:focus {
  border-color: rgba(99, 186, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(99, 186, 255, 0.12);
  background: #131313;
}

.field__textarea {
  min-height: 120px;
  padding-top: 14px;
  padding-bottom: 14px;
  resize: vertical;
  line-height: 1.5;
}

.form-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.form-message.is-error {
  color: #ff8a8a;
}

.form-message.is-success {
  color: #8fd0ff;
}

.role-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: center;
  margin-top: 6px;
}

.role-switch__button {
  min-height: 50px;
  border-radius: var(--radius);
  padding: 0 16px;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: var(--panel-soft);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.role-switch__button.is-active {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 14px 40px rgba(255, 255, 255, 0.08);
}

.actions {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.actions--final {
  gap: 20px;
}

.button {
  min-height: 50px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover,
.role-switch__button:hover,
.field__input:hover {
  transform: translateY(-1px);
}

.button--dark {
  color: #fff;
  background: var(--panel-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.button--light {
  color: #000;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(255, 255, 255, 0.08);
}

.button--fixed {
  width: 200px;
  padding-inline: 12px;
}

.button--file {
  user-select: none;
}

.file-status {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.notice {
  width: 100%;
  min-height: 149px;
  border-radius: var(--radius);
  background: #101010;
  padding: 24px 26px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.notice__text {
  margin: 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 500;
  color: var(--muted-strong);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 100%, rgba(99, 186, 255, 0.1), transparent 32%),
    linear-gradient(180deg, #000000 0%, #040404 100%);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(70px);
  opacity: 0.82;
}

.hero__glow--one {
  width: 460px;
  height: 400px;
  left: -40px;
  bottom: -30px;
}

.hero__glow--two {
  width: 460px;
  height: 400px;
  left: 340px;
  bottom: -60px;
}

.hero__glow--three {
  width: 460px;
  height: 400px;
  left: 720px;
  bottom: -100px;
}

.screen--auth .hero__glow,
.screen--reg .hero__glow {
  width: min(105vw, 1100px);
  height: min(82vh, 820px);
  left: 50%;
  bottom: -38%;
  margin-left: 0;
  filter: blur(110px);
  opacity: 0.55;
  background: radial-gradient(circle, rgba(99, 186, 255, 0.95) 0%, rgba(99, 186, 255, 0.45) 42%, transparent 68%);
}

.screen--auth .hero__glow--one,
.screen--reg .hero__glow--one {
  transform: translateX(-54%);
}

.screen--auth .hero__glow--two,
.screen--reg .hero__glow--two {
  transform: translateX(-50%);
  opacity: 0.5;
}

.screen--auth .hero__glow--three,
.screen--reg .hero__glow--three {
  transform: translateX(-46%);
  opacity: 0.48;
}

.screen--auth .hero,
.screen--reg .hero {
  background:
    radial-gradient(ellipse 90% 70% at 50% 88%, rgba(99, 186, 255, 0.14), transparent 68%),
    linear-gradient(180deg, #000000 0%, #040404 100%);
}

.screen--auth .hero__backdrop,
.screen--reg .hero__backdrop {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero__content {
  position: absolute;
  left: clamp(24px, 8vw, 152px);
  bottom: clamp(48px, 8vw, 72px);
  width: min(560px, calc(100% - 48px));
  z-index: 1;
}

.hero__title {
  margin: 0 0 18px;
  font-size: clamp(36px, 3.3vw, 55px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.hero__text {
  margin: 0;
  max-width: 542px;
  font-size: clamp(18px, 1.6vw, 25px);
  line-height: 1.55;
  font-weight: 400;
  color: #ffffff;
  opacity: 0.98;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .screen {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: auto;
    padding-inline: 24px;
    padding-top: 96px;
    padding-bottom: 64px;
  }

  .screen--auth .panel--compact,
  .screen--reg .panel--compact {
    padding-top: 72px;
    padding-bottom: 56px;
  }

  .screen--auth .panel__content,
  .screen--reg .panel__content {
    transform: none;
  }

  .panel__content {
    margin-inline: auto;
  }

  .panel__title--final {
    margin-left: 0;
  }

  .hero {
    min-height: 520px;
  }

  .hero__content {
    left: 24px;
    bottom: 48px;
  }

  .hero__glow--two {
    left: 30%;
  }

  .hero__glow--three {
    left: 60%;
  }

  .screen--auth .hero__glow,
  .screen--reg .hero__glow {
    width: 140vw;
    height: 70vh;
    bottom: -42%;
    filter: blur(90px);
  }

  .screen--auth .hero__glow--one,
  .screen--reg .hero__glow--one,
  .screen--auth .hero__glow--two,
  .screen--reg .hero__glow--two,
  .screen--auth .hero__glow--three,
  .screen--reg .hero__glow--three {
    transform: translateX(-50%);
  }
}

@media (max-width: 720px) {
  .panel {
    padding-top: 72px;
    padding-bottom: 48px;
  }

  .form {
    gap: 16px;
  }

  .role-switch,
  .actions {
    gap: 14px;
  }

  .role-switch {
    grid-template-columns: 1fr;
  }

  .button,
  .button--fixed,
  .role-switch__button {
    width: 100%;
  }

  .actions--final {
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    min-height: 420px;
  }

  .hero__glow {
    filter: blur(55px);
  }

  .hero__content {
    width: calc(100% - 48px);
  }
}
