@font-face {
  font-family: "Tungsten Auth";
  src: url("assets/SVN-Tungsten-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk Auth";
  src: url("assets/SpaceGrotesk-Regular.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

body.auth-redesign {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: #f4f4f4;
  background: #171717;
  font-family: "Space Grotesk Auth", "Space Grotesk", Arial, sans-serif;
  font-size: 14px;
}

.auth-redesign .login-page,
.auth-redesign .basic-page {
  position: relative;
  display: block;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  background: #171717;
}

.auth-redesign .login-panel,
.auth-redesign .basic-panel {
  position: relative;
  width: 100%;
  min-height: 100%;
  border: 0;
  background: #171717;
}

.auth-redesign .art-panel,
.auth-redesign .frame-corner,
.auth-redesign .home-link,
.auth-redesign .product-tag {
  display: none;
}

.auth-brand {
  position: fixed;
  z-index: 3;
  top: 26px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: "Tungsten Auth", "Tungsten", Impact, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.4px;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.auth-brand img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
}

.auth-brand strong {
  color: #ff6600;
  font: inherit;
}

.auth-redesign .login-content,
.auth-redesign .basic-content {
  position: absolute;
  top: 45%;
  left: 50%;
  display: block;
  width: min(420px, calc(100% - 40px));
  min-height: 0;
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
}

.auth-redesign .login-form,
.auth-redesign .basic-form {
  width: 100%;
  margin: 0;
}

.auth-redesign h1 {
  margin: 0 0 24px;
  color: #fff;
  font-family: "Tungsten Auth", "Tungsten", Impact, sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.5px;
  text-align: center;
  text-transform: uppercase;
}

.auth-redesign .field-label {
  display: block;
  margin: 0 0 8px;
  color: #ddd;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.auth-redesign .login-form .field-label {
  font-size: 12px;
}

.auth-redesign .form-field + .form-field {
  margin-top: 14px;
}

.auth-redesign .key-input,
.auth-redesign .field-input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #454545;
  border-radius: 0;
  outline: 0;
  color: #fff;
  background: linear-gradient(100deg, #292929, #242424);
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
}

.auth-redesign .key-input::placeholder,
.auth-redesign .field-input::placeholder {
  color: #aaa;
  opacity: 1;
}

.auth-redesign .key-input:focus,
.auth-redesign .field-input:focus {
  border-color: #ff6600;
  box-shadow: 0 0 0 1px #ff6600;
}

.auth-redesign .submit-row {
  width: 100%;
  margin: 28px 0 0;
}

.auth-redesign .btn-login,
.auth-redesign .btn-generate {
  display: flex;
  width: 100%;
  height: 43px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: #ff6600;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: filter 160ms ease;
}

.auth-redesign .btn-login:hover,
.auth-redesign .btn-generate:hover {
  color: #fff;
  background: #ff6600;
  filter: brightness(1.08);
}

.auth-redesign .submit-label,
.auth-redesign .action-label {
  color: inherit;
  font-size: 14px;
  font-weight: 600;
}

.auth-redesign .submit-icon,
.auth-redesign .action-icon {
  display: none;
}

.auth-redesign .action-links {
  display: block;
  width: 100%;
  margin: 8px 0 0;
}

.auth-redesign .action-links a,
.auth-redesign .basic-login-link,
.auth-redesign .btn-account {
  display: flex;
  width: 100%;
  min-height: 43px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  color: #f4f4f4;
  background: #292929;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.auth-redesign .action-links a:first-child:hover,
.auth-redesign .basic-login-link:hover,
.auth-redesign .btn-account:hover {
  color: #fff;
  background: #333;
}

.auth-redesign .support-link {
  position: fixed;
  z-index: 4;
  right: auto;
  bottom: 42px;
  left: 50%;
  display: block;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: #ff6600;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transform: translateX(-50%);
}

.auth-redesign .support-link.auth-support-mobile {
  display: none;
}

.auth-redesign .support-link:hover {
  color: #ff8533;
  background: transparent;
}

.auth-redesign .basic-note,
.auth-redesign .status-text,
.auth-redesign #result {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.auth-redesign .btn-account {
  margin-top: 8px;
}

.auth-redesign .btn-account:not([style*="display: block"]) {
  display: none;
}

.auth-redesign .custom-toast {
  font-size: 14px;
}

.auth-redesign .basic-login-link {
  margin-top: 8px;
}

.auth-copyright,
.auth-disclaimer {
  position: fixed;
  z-index: 2;
  bottom: 38px;
  margin: 0;
  color: #aaa;
  font-size: 14px;
  line-height: 1.45;
}

.auth-copyright {
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-copyright::before {
  content: "";
  width: 5px;
  height: 5px;
  background: #aaa;
}

.auth-disclaimer {
  right: 18px;
  width: 300px;
}

.auth-disclaimer p {
  margin: 0;
}

.auth-disclaimer p + p {
  margin-top: 10px;
}

@media (max-width: 820px) {
  body.auth-redesign {
    overflow-y: auto;
  }

  .auth-redesign .login-page,
  .auth-redesign .basic-page {
    min-height: 760px;
  }

  .auth-redesign .login-page { min-height: 820px; }
  .auth-redesign .basic-page { min-height: 960px; }

  .auth-brand {
    top: 22px;
  }

  .auth-redesign .login-content,
  .auth-redesign .basic-content {
    top: 42%;
  }

  .auth-redesign .support-link.auth-support-desktop {
    display: none;
  }

  .auth-redesign .support-link.auth-support-mobile {
    position: static;
    display: block;
    width: fit-content;
    min-height: 0;
    margin: 12px auto 0;
    padding: 0;
    transform: none;
  }

  .auth-copyright,
  .auth-disclaimer {
    position: absolute;
    right: auto;
    left: 50%;
    width: min(420px, calc(100% - 32px));
    transform: translateX(-50%);
  }

  .auth-copyright {
    bottom: 20px;
    justify-content: center;
    text-align: center;
  }

  .auth-disclaimer {
    bottom: 58px;
    display: block;
  }
}

@media (max-width: 480px) {
  .auth-redesign h1 {
    font-size: 64px;
  }

  .auth-brand {
    font-size: 32px;
  }

  .auth-redesign .login-content,
  .auth-redesign .basic-content {
    width: calc(100% - 32px);
  }

  .auth-copyright {
    left: 12px;
    right: 12px;
    font-size: 14px;
  }
}
