:root {
  --bg: #f3f2fa;
  --panel: #ffffff;
  --text: #151933;
  --muted: #747a96;
  --line: #e6e7f3;
  --purple: #7c4dff;
  --purple-2: #9d6bff;
  --purple-soft: rgba(124, 77, 255, 0.14);
  --dark: #050816;
  --dark-2: #0a0f24;
  --shadow-lg: 0 28px 70px rgba(13, 18, 38, 0.14);
  --shadow-sm: 0 8px 20px rgba(13, 18, 38, 0.08);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 77, 255, 0.12), transparent 20%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.05fr);
}

.auth-showcase {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(124, 77, 255, 0.25), transparent 24%),
    radial-gradient(circle at 72% 18%, rgba(124, 77, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #050816 0%, #08102a 100%);
}

.auth-showcase__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 77, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 77, 255, 0.06) 1px, transparent 1px);
  background-size: 110px 110px;
  opacity: 0.55;
  pointer-events: none;
}

.auth-showcase__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 48px 56px;
  color: #ffffff;
}

.auth-brand img {
  width: 168px;
  margin-bottom: 58px;
}

.auth-copy h1 {
  max-width: 480px;
  margin: 0;
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.auth-copy h1 span {
  color: var(--purple-2);
}

.auth-copy p {
  max-width: 400px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  line-height: 1.75;
}

.auth-benefits {
  display: grid;
  gap: 18px;
  margin-top: 42px;
  max-width: 440px;
}

.auth-benefit {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-benefit:first-child {
  border-top: none;
  padding-top: 0;
}

.auth-benefit__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.25), rgba(124, 77, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-benefit__icon::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin: 17px auto 0;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-2) 100%);
}

.auth-benefit strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.auth-benefit p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.7;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
}

.auth-card {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 44px 42px 34px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
}

.auth-card__brand img {
  width: 172px;
}

.auth-card__header {
  margin-top: 26px;
}

.auth-card__header h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.auth-card__header p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.auth-price-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fafafe;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.auth-price-note strong {
  color: var(--text);
}

.auth-price-note a {
  color: var(--purple);
  font-weight: 700;
}

.auth-form {
  margin-top: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.form-field span {
  font-size: 13px;
  font-weight: 600;
  color: #4f5675;
}

.form-field input,
.form-field select {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.form-field input::placeholder {
  color: #a0a6bf;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: #cab4ff;
  box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.08);
}

.form-options {
  margin-top: 18px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--purple);
}

.auth-submit,
.social-button {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
}

.auth-submit {
  margin-top: 22px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-2) 100%);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(124, 77, 255, 0.24);
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 32px rgba(124, 77, 255, 0.28);
}

.auth-divider {
  position: relative;
  margin: 22px 0;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--line);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  background: var(--panel);
  color: #979db7;
  font-size: 13px;
}

.social-button {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.social-button:hover {
  background: #fafafe;
}

.auth-footer-text {
  margin: 22px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.auth-footer-text a {
  color: var(--purple);
  font-weight: 700;
}

.auth-footer {
  width: min(100%, 520px);
  margin: 22px auto 0;
  text-align: center;
  color: #8e94ae;
  font-size: 13px;
}

.auth-footer p {
  margin: 0;
}

.auth-footer div {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
}

.auth-footer a:hover {
  color: var(--purple);
}

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

  .auth-showcase__content {
    min-height: auto;
    padding: 42px 30px;
  }

  .auth-brand img {
    margin-bottom: 34px;
  }

  .auth-panel {
    padding: 28px 18px 40px;
  }
}

@media (max-width: 640px) {
  .auth-showcase__content,
  .auth-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .auth-copy h1 {
    font-size: 38px;
  }

  .auth-copy p,
  .auth-benefit p {
    font-size: 15px;
  }

  .auth-card {
    padding: 28px 22px 26px;
    border-radius: 26px;
  }

  .auth-card__header h2 {
    font-size: 28px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .auth-footer div {
    flex-direction: column;
    gap: 8px;
  }
}
