:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: #020612;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 560px);
  background:
    radial-gradient(circle at 18% 18%, rgba(31, 126, 255, 0.2), transparent 34rem),
    radial-gradient(circle at 86% 72%, rgba(0, 208, 255, 0.1), transparent 28rem),
    #020612;
}

.auth-story {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: clamp(32px, 6vw, 80px);
  border-right: 1px solid rgba(102, 163, 230, 0.12);
}

.auth-story .brand {
  position: static;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
}

.auth-story .brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.auth-story .brand span,
.auth-story .brand small {
  display: block;
}

.auth-story h1 {
  max-width: 900px;
  margin: 24px 0;
  font-size: clamp(3rem, 6vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.auth-story h1 span {
  color: transparent;
  background: linear-gradient(100deg, #ffffff, #71cfff);
  background-clip: text;
  -webkit-background-clip: text;
}

.auth-story p {
  max-width: 720px;
  color: #9bb0c4;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.7;
}

.auth-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.auth-points div {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(102, 163, 230, 0.14);
  border-radius: 16px;
  background: rgba(7, 18, 35, 0.68);
  backdrop-filter: blur(12px);
}

.auth-points b,
.auth-points small {
  display: block;
}

.auth-points b {
  margin-bottom: 5px;
  font-size: 0.82rem;
}

.auth-points small {
  color: #7890a5;
  line-height: 1.45;
}

.auth-panel {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 48px);
}

.auth-card-pro {
  width: min(100%, 500px);
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid rgba(102, 163, 230, 0.18);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(8, 21, 40, 0.98), rgba(3, 10, 23, 0.99));
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.48);
}

.auth-card-pro h2 {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
}

.auth-card-pro form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.auth-card-pro label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #dbe9f6;
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-card-pro input:not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(114, 175, 238, 0.23);
  border-radius: 12px;
  outline: none;
  background: #061224;
  color: #ffffff;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-card-pro input:not([type="checkbox"]):focus {
  border-color: #38c8ff;
  background: #08182d;
  box-shadow: 0 0 0 4px rgba(56, 200, 255, 0.12);
}

.auth-card-pro input::placeholder {
  color: #62778c;
}

.auth-card-pro .terms {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  font-weight: 500;
  line-height: 1.5;
}

.auth-card-pro .terms input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #32c7ff;
}

.auth-card-pro .terms a,
.auth-foot a {
  color: #79dfff;
  text-decoration: none;
}

.auth-card-pro .terms a:hover,
.auth-foot a:hover {
  text-decoration: underline;
}

.auth-card-pro .primary-button {
  width: 100%;
  min-height: 50px;
  justify-content: center;
  margin-top: 2px;
  border: 0;
  border-radius: 13px;
  font-weight: 800;
}

.auth-card-pro .form-note {
  min-height: 20px;
  margin: -2px 0 0;
  color: #8398ac;
  font-size: 0.76rem;
  line-height: 1.5;
}

.auth-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: 22px;
  font-size: 0.78rem;
}

@media (max-width: 1080px) {
  .auth-page {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 500px);
  }

  .auth-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-story {
    display: none;
  }

  .auth-panel {
    min-height: 100vh;
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .auth-panel {
    align-items: start;
    padding: 16px;
  }

  .auth-card-pro {
    margin: 14px 0;
    padding: 24px 20px;
    border-radius: 20px;
  }

  .auth-foot {
    display: grid;
  }
}
