:root {
  --auth-bg: #000104;
  --auth-field: #090c12;
  --auth-blue: #3f88f7;
  --auth-link: #548eef;
  --auth-line: rgba(255,255,255,.15);
  --auth-muted: rgba(255,255,255,.6);
}

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

body {
  background: var(--auth-bg);
}

.auth-page,
.auth-page * {
  box-sizing: border-box;
}

.auth-page {
  --stage-left: max(0px, calc((100vw - 1512px) / 2));
  --stage-top: max(0px, calc((100dvh - 759px) / 2));
  position: relative;
  min-height: max(759px, 100dvh);
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--auth-bg);
  color: #fff;
  font-family: Roboto, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.auth-panel {
  position: absolute;
  z-index: 2;
  top: calc(var(--stage-top) + 104px);
  left: calc(var(--stage-left) + 70px);
  width: 519px;
}

.auth-page--signup .auth-panel {
  top: calc(var(--stage-top) + 101px);
  left: calc(var(--stage-left) + 78px);
}

.auth-intro {
  width: 100%;
}

.auth-intro h1 {
  margin: 0;
  color: #fff;
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.6px;
}

.auth-intro p {
  width: 403px;
  max-width: 100%;
  margin: 13px 0 0;
  color: var(--auth-muted);
  font-size: 16px;
  line-height: 1.16;
}

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

.auth-fields {
  display: grid;
  gap: 13px;
}

.auth-control {
  min-width: 0;
}

.auth-field {
  display: flex;
  align-items: center;
  width: 100%;
  height: 62px;
  padding: 0 24px;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  background: var(--auth-field);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.auth-field:focus-within {
  border-color: rgba(84,142,239,.92);
  background: #0b0f17;
  box-shadow: 0 0 0 3px rgba(84,142,239,.14);
}

.auth-field > img {
  flex: 0 0 auto;
  width: auto;
  max-width: 19px;
  height: auto;
  max-height: 17px;
  margin-right: 9px;
}

.auth-field input {
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: 400 18px/1 Roboto, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.36px;
}

.auth-field input::placeholder {
  color: #fff;
  opacity: 1;
}

.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  box-shadow: 0 0 0 1000px var(--auth-field) inset;
  caret-color: #fff;
}

.auth-password-toggle {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 -6px 0 8px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #fff;
}

.auth-password-toggle img {
  width: 17px;
  height: 11px;
  opacity: .88;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  border: 0;
  background: rgba(255,255,255,.07);
}

.auth-password-toggle.is-visible img {
  opacity: .45;
}

.auth-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 10px);
  margin: 30px 5px 0;
  font-size: 16px;
  line-height: 1;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  cursor: pointer;
}

.auth-remember input {
  display: grid;
  place-content: center;
  width: 20px;
  height: 20px;
  margin: 0;
  appearance: none;
  border: 1px solid #fff;
  border-radius: 5px;
  background: transparent;
}

.auth-remember input::before {
  width: 10px;
  height: 10px;
  content: "";
  transform: scale(0);
  border-radius: 2px;
  background: var(--auth-blue);
  transition: transform .12s ease;
}

.auth-remember input:checked::before {
  transform: scale(1);
}

.auth-forgot,
.auth-alt a {
  color: var(--auth-link);
  text-decoration: none;
}

.auth-forgot {
  font-family: Poppins, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: .8;
}

.auth-forgot:hover,
.auth-alt a:hover {
  color: #76a6f4;
  text-decoration: none;
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  margin-top: 54px;
  padding: 0;
  border: 1px solid var(--auth-blue);
  border-radius: 12px;
  background: var(--auth-blue);
  color: #fff;
  font: 400 16px/1 Roboto, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.32px;
  transition: background .16s ease, border-color .16s ease, transform .12s ease;
}

.auth-page--signup .auth-submit {
  margin-top: 54px;
}

.auth-submit:hover {
  border-color: #5798f8;
  background: #5798f8;
  color: #fff;
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-alt {
  margin: 38px 0 0;
  color: #fff;
  font-family: Poppins, Roboto, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1;
}

.auth-page--signup .auth-alt {
  font-family: Roboto, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-error {
  width: 100%;
  margin: 24px 0 0;
  padding: 12px 15px;
  border: 1px solid rgba(240,87,75,.46);
  border-radius: 12px;
  background: rgba(240,87,75,.1);
  color: #ffaaa3;
  font-size: 14px;
  line-height: 1.4;
}

.auth-error + .auth-form {
  margin-top: 18px;
}

.auth-preview {
  position: absolute;
  z-index: 1;
  top: calc(var(--stage-top) + 9px);
  left: calc(var(--stage-left) + 697px);
  width: 854px;
  height: 750px;
  margin: 0;
  pointer-events: none;
  user-select: none;
}

.auth-preview img {
  display: block;
  width: 854px;
  height: 750px;
  object-fit: contain;
}

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

@media (max-width: 1100px) {
  .auth-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100dvh;
  }

  .auth-panel,
  .auth-page--signup .auth-panel {
    position: relative;
    top: auto;
    left: auto;
    width: min(519px, 100%);
    padding: 72px 28px 56px;
  }

  .auth-preview {
    display: none;
  }
}

@media (max-width: 620px) {
  .auth-panel,
  .auth-page--signup .auth-panel {
    padding: 48px 20px 40px;
  }

  .auth-intro h1 {
    font-size: 27px;
    letter-spacing: -.54px;
  }

  .auth-intro p {
    font-size: 14px;
    line-height: 1.35;
  }

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

  .auth-field {
    height: 58px;
    padding: 0 18px;
  }

  .auth-field input {
    font-size: 16px;
  }

  .auth-login-options {
    margin-top: 24px;
    font-size: 14px;
  }

  .auth-submit,
  .auth-page--signup .auth-submit {
    height: 52px;
    margin-top: 40px;
  }

  .auth-alt {
    margin-top: 30px;
    font-size: 14px;
  }
}

@media (max-width: 370px) {
  .auth-login-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
