* {
  box-sizing: border-box;
}

:root {
  --auth-bg: #050307;
  --auth-panel: rgba(10, 6, 13, .82);
  --auth-panel-soft: rgba(255,255,255,.022);
  --auth-border: rgba(185,139,230,.14);
  --auth-border-soft: rgba(255,255,255,.07);
  --auth-text: #f7f3f9;
  --auth-muted: rgba(205,196,211,.56);
  --auth-purple: #7b2cbf;
  --auth-purple-light: #b98be6;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--auth-text);
  background:
    radial-gradient(
      circle at 17% 12%,
      rgba(51,0,102,.23),
      transparent 30%
    ),
    radial-gradient(
      circle at 86% 82%,
      rgba(185,139,230,.07),
      transparent 30%
    ),
    #040205;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .6;
  background-image:
    radial-gradient(
      circle,
      rgba(185,139,230,.55) 0 1px,
      transparent 1.6px
    ),
    radial-gradient(
      circle,
      rgba(255,255,255,.28) 0 1px,
      transparent 1.5px
    );
  background-size:
    173px 173px,
    241px 241px;
  background-position:
    30px 80px,
    110px 35px;
  mask-image:
    linear-gradient(
      to bottom,
      transparent,
      black 15%,
      black 85%,
      transparent
    );
}

.auth-page {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr;
}

.auth-nav {
  height: 100px;
  display: flex;
  align-items: center;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
}

.auth-brand-logo {
  width: 69px;
  height: 69px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 3px rgba(255,255,255,.55))
    drop-shadow(0 0 10px rgba(255,255,255,.18))
    drop-shadow(0 0 19px rgba(185,139,230,.42))
    drop-shadow(0 0 34px rgba(51,0,102,.42));
}

.auth-brand-text {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.03em;
}

.auth-layout {
  align-self: center;
  display: grid;
  grid-template-columns:
    minmax(0,1.05fr)
    minmax(380px,.72fr);
  gap: clamp(60px, 8vw, 130px);
  align-items: center;
  padding: 30px 0 100px;
}

.auth-intro {
  max-width: 610px;
}

.auth-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
  color: var(--auth-purple-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.auth-kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--auth-purple-light)
    );
}

.auth-heading {
  margin: 0;
  max-width: 620px;
  color: #fff;
  font-size: clamp(48px, 5.5vw, 74px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.06em;
}

.auth-heading span {
  background:
    linear-gradient(
      120deg,
      #fff 0%,
      #d9b9f6 35%,
      #8d43c8 70%,
      #b98be6 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-intro p {
  max-width: 530px;
  margin: 24px 0 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.75;
}

.auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 29px;
}

.auth-point {
  padding: 8px 11px;
  border: 1px solid var(--auth-border-soft);
  border-radius: 999px;
  color: rgba(218,210,223,.58);
  background: rgba(255,255,255,.018);
  font-size: 10px;
}

.auth-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--auth-border);
  border-radius: 26px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(51,0,102,.16),
      transparent 35%
    ),
    linear-gradient(
      160deg,
      rgba(14,9,18,.94),
      rgba(7,5,9,.92)
    );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 35px 80px -45px rgba(51,0,102,.65);
  backdrop-filter: blur(20px);
}

.auth-card-title {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 780;
  letter-spacing: -.04em;
}

.auth-card-copy {
  margin: 7px 0 24px;
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.6;
}

.auth-error {
  margin-bottom: 17px;
  padding: 11px 13px;
  border: 1px solid rgba(255,96,112,.20);
  border-radius: 11px;
  color: #ff9ba5;
  background: rgba(255,70,90,.055);
  font-size: 11px;
  line-height: 1.5;
}

.auth-field {
  margin-bottom: 14px;
}

.auth-label {
  display: block;
  margin-bottom: 7px;
  color: rgba(225,218,230,.72);
  font-size: 10px;
  font-weight: 700;
}

.auth-input-wrap {
  position: relative;
}

.auth-input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--auth-border-soft);
  border-radius: 12px;
  outline: none;
  background: rgba(255,255,255,.025);
  color: #f8f5fa;
  font: inherit;
  font-size: 13px;
  transition:
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

.auth-input::placeholder {
  color: rgba(185,177,192,.30);
}

.auth-input:focus {
  border-color: rgba(185,139,230,.46);
  background: rgba(185,139,230,.035);
  box-shadow:
    0 0 0 3px rgba(123,44,191,.08);
}

.auth-password {
  padding-right: 48px;
}

.auth-eye {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(206,197,213,.42);
  cursor: pointer;
}

.auth-eye:hover {
  color: #d8c8e5;
  background: rgba(255,255,255,.04);
}

.auth-submit {
  width: 100%;
  height: 47px;
  margin-top: 5px;
  border: 1px solid rgba(185,139,230,.34);
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      #330066,
      #64149b
    );
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  box-shadow:
    0 13px 30px rgba(51,0,102,.22),
    inset 0 1px 0 rgba(255,255,255,.13);
  transition:
    transform .17s ease,
    box-shadow .17s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 35px rgba(51,0,102,.34),
    inset 0 1px 0 rgba(255,255,255,.16);
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 11px;
  align-items: center;
  margin: 21px 0;
  color: rgba(190,181,197,.32);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(255,255,255,.055);
}

.google-auth {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  color: #e9e5ec;
  background: rgba(255,255,255,.025);
  text-decoration: none;
  font-size: 12px;
  font-weight: 680;
  transition:
    background .17s ease,
    border-color .17s ease;
}

.google-auth:hover {
  background: rgba(255,255,255,.045);
  border-color: rgba(185,139,230,.20);
}

.google-auth svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.auth-switch {
  margin: 21px 0 0;
  text-align: center;
  color: rgba(195,187,201,.46);
  font-size: 11px;
}

.auth-switch a {
  margin-left: 4px;
  color: #c79ee9;
  font-weight: 700;
  text-decoration: none;
}

.auth-switch a:hover {
  color: #e1c9f4;
}

.auth-hint {
  margin-top: 6px;
  color: rgba(190,181,197,.32);
  font-size: 9px;
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 35px;
    max-width: 520px;
    margin: 0 auto;
  }

  .auth-intro {
    text-align: center;
  }

  .auth-kicker,
  .auth-points {
    justify-content: center;
  }

  .auth-heading {
    font-size: 48px;
  }

  .auth-intro p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 560px) {
  .auth-page {
    width: min(100% - 22px, 1180px);
  }

  .auth-nav {
    height: 78px;
  }

  .auth-brand-logo {
    width: 56px;
    height: 56px;
  }

  .auth-layout {
    padding: 10px 0 45px;
  }

  .auth-intro {
    display: none;
  }

  .auth-card {
    padding: 24px 18px;
    border-radius: 21px;
  }
}
