.auth-page {
  width: min(1240px, calc(100% - 56px));
  margin: 48px auto 72px;
}

@media (min-width: 981px) {
  .auth-page.auth-page-login,
  .auth-page.auth-page-signup {
    margin-top: -60px;
  }
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
  gap: 0;
  max-width: 1000px;
  min-height: 770px;
  margin: 0 auto;
  padding: 44px 48px;
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(20, 24, 35, 0.07);
}

.auth-mobile-tabs {
  display: none;
  visibility: hidden;
}

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

.auth-section-header h1,
.auth-reset-card h1 {
  margin: 0 0 10px;
  color: #e50914;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
}

.auth-section-header h2,
.auth-reset-card h2 {
  margin: 0 0 10px;
}

.auth-section-header p {
  margin: 0 0 26px;
  color: #8d93a6;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.auth-jcoins-banner {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 430px;
  min-height: 92px;
  margin: -10px 0 24px;
  padding: 10px 12px 10px 8px;
  overflow: hidden;
  border-radius: 12px;
  background: radial-gradient(circle at 16% 50%, rgba(255, 174, 0, 0.2) 0, rgba(255, 174, 0, 0) 34%), linear-gradient(100deg, #120003 0%, #260006 55%, #120003 100%);
  border: 1px solid rgba(229, 9, 20, 0.28);
}

.auth-jcoins-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
  scale: 1.5;
  margin: 0px 12px;
}

.auth-jcoins-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.auth-jcoins-copy strong {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.auth-jcoins-copy span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.auth-jcoins-cta {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 999px;
  background: #ff161f;
}

.auth-section-header a,
.auth-forgot-link,
.forget-password-back-link {
  color: #e50914;
  font-weight: 700;
  text-decoration: none;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-page .group {
  margin: 0;
}

.auth-page .group input,
.auth-page .group select {
  min-height: 46px;
}

.auth-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.auth-store-select {
  min-height: 46px;
}

.auth-platforms {
  display: grid;
  gap: 10px;
}

.auth-platforms p {
  margin: 0;
  color: #071022;
  font-size: 14px;
  font-weight: 800;
}

.auth-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.auth-pill-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-pill-check span {
  display: grid;
  min-height: 38px;
  place-items: center;
  padding: 0 10px;
  color: #626a7f;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #dfe3ee;
  border-radius: 8px;
  background: #f8f9fc;
  cursor: pointer;
}

.auth-pill-check input:checked+span {
  color: #e50914;
  border-color: #ffb4b8;
  background: #fff4f4;
}

.auth-agreements {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #eceef5;
  border-radius: 8px;
  background: #fbfcff;
}

.auth-agreements .checkmark-cont {
  color: #6d7488;
  font-size: 12px;
  line-height: 1.45;
}

.auth-page .joker-btn,
.auth-page .sign-in-btn,
.auth-page .register-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 800;
}

.auth-divider {
  position: relative;
  display: grid;
  place-items: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #dfe3ee;
  transform: translateX(-50%);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #8d93a6;
  font-size: 16px;
  font-weight: 900;
  line-height: 2;
  text-transform: uppercase;
  background: #fff;
}

.auth-login-panel {
  display: flex;
  flex-direction: column;
}

.auth-login-options {
  align-items: center;
  gap: 12px;
  margin: 0;
}

.auth-login-options .checkmark-cont {
  white-space: nowrap;
}

.auth-captain {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-top: 34px;
  padding-top: 0;
  text-align: center;
}

.auth-captain img {
  width: min(270px, 100%);
  height: auto;
  object-fit: contain;
}

.auth-captain p {
  margin: 0;
  color: #6B7280;
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400;
  font-size: 11.5px;
  line-height: 17px;
  max-width: 330px;
}

.auth-reset-card {
  max-width: 960px;
  margin: 0 auto;
  padding: 42px;
  background: #fff;
  border: 1px solid #eceef5;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(24, 28, 38, 0.12);
}

.auth-reset-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: center;
}

.auth-reset-content .forget-password-image img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.auth-reset-content .forget-password-forms-wrapper {
  min-width: 0;
}

.auth-reset-content .forget-password-form {
  margin-top: 22px;
}

.auth-reset-content .forget-password-description {
  color: #8d93a6;
  font-size: 14px;
  line-height: 1.55;
}

.auth-message {
  width: 100%;
  margin: 0 0 14px;
  padding: 12px 14px;
  color: #b42318;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  border: 1px solid #f4b7b2;
  border-radius: 8px;
  background: #fff5f4;
}

.auth-two-factor-page {
  display: grid;
  min-height: 520px;
  place-items: center;
}

.auth-two-factor-card {
  width: min(100%, 460px);
  padding: 42px;
  text-align: center;
  border: 1px solid #eceef5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(24, 28, 38, 0.12);
}

.auth-two-factor-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  place-items: center;
  color: #e50914;
  border-radius: 50%;
  background: #fff1f2;
}

.auth-two-factor-header h1 {
  margin: 0 0 10px;
  color: #071022;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
}

.auth-two-factor-header p {
  max-width: 330px;
  margin: 0 auto 28px;
  color: #8d93a6;
  font-size: 14px;
  line-height: 1.55;
}

.auth-two-factor-form {
  text-align: initial;
}

.auth-two-factor-code-group input {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.35em;
}

.auth-two-factor-remember {
  width: fit-content;
  margin: 0;
  color: #626a7f;
  font-size: 13px;
  font-weight: 600;
}

.auth-two-factor-submit {
  margin-top: 2px;
}

.auth-reset-content .forget-password-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #e50914;
  font-weight: 800;
}

#recaptcha_container {
  min-height: 1px;
}

@media (max-width: 980px) {
  .auth-page {
    width: min(100% - 28px, 680px);
    margin-top: 28px;
  }

  .auth-mobile-tabs {
    display: flex;
    visibility: visible;
    width: 100%;
    max-width: none;
    min-height: 68px;
    margin: 0 auto 0;
    gap: 0;
    padding: 0;
    border: 0;
    border-bottom: 3px solid #aab1bd;
    background: #fff;
  }

  .auth-mobile-tab {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    min-height: 68px;
    align-items: center;
    justify-content: center;
    padding: 0 12px 3px;
    color: #9da4b2;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: translateY(3px);
  }

  .auth-mobile-tab.active {
    color: #ff0d14;
    border-bottom-color: #ff0d14;
    background: transparent;
    box-shadow: none;
  }

  .auth-mobile-tab:focus {
    outline: 2px solid rgba(229, 9, 20, 0.28);
    outline-offset: 2px;
  }

  .auth-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 28px;
    gap: 0;
  }

  .auth-page-login .auth-login-panel {
    order: 1;
  }

  .auth-page-login .auth-divider {
    order: 2;
  }

  .auth-page-login .auth-signup-panel {
    order: 3;
  }

  .auth-page-login .auth-signup-panel,
  .auth-page-signup .auth-login-panel,
  .auth-page-login .auth-divider,
  .auth-page-signup .auth-divider {
    display: none;
  }

  .auth-page-signup .auth-signup-panel,
  .auth-page-login .auth-login-panel {
    display: block;
  }

  .auth-divider {
    min-height: 34px;
  }

  .auth-divider::before {
    top: 50%;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 1px;
    transform: translateY(-50%);
  }

  .auth-field-row,
  .auth-platform-grid,
  .auth-reset-content {
    grid-template-columns: 1fr;
  }

  .auth-captain {
    margin-top: 18px;
    padding-top: 16px;
  }

  .auth-jcoins-banner {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    max-width: 100%;
    min-height: 86px;
    margin: -10px 0 22px;
    padding: 8px 10px 8px 6px;
    gap: 10px;
  }

  .auth-jcoins-image {
    width: 64px;
    height: 64px;
  }

  .auth-jcoins-copy strong {
    font-size: 15px;
  }

  .auth-jcoins-copy span {
    font-size: 12px;
  }

  .auth-jcoins-cta {
    min-height: 30px;
    padding: 0 10px;
    font-size: 9px;
  }

  .auth-reset-card {
    padding: 28px;
  }

  .auth-reset-content .forget-password-image {
    display: none;
  }
}

@media (max-width: 520px) {
  .auth-page {
    width: calc(100% - 20px);
    margin: 18px auto 48px;
  }

  .auth-card,
  .auth-reset-card {
    padding: 20px 16px;
  }

  .auth-two-factor-page {
    min-height: 420px;
  }

  .auth-two-factor-card {
    padding: 30px 20px;
  }

  .auth-two-factor-header h1 {
    font-size: 24px;
  }

  .auth-reset-card {
    padding: 20px 16px;
  }

  .auth-section-header h1,
  .auth-reset-card h1 {
    font-size: 26px;
  }

  .auth-login-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-mobile-tabs {
    max-width: none;
    min-height: 66px;
    margin-bottom: 0;
  }

  .auth-mobile-tab {
    min-height: 66px;
    font-size: 17px;
  }

  .auth-jcoins-banner {
    grid-template-columns: 58px minmax(0, 1fr);
    margin-bottom: 20px;
  }

  .auth-jcoins-image {
    width: 58px;
    height: 58px;
  }

  .auth-jcoins-cta {
    grid-column: 2;
    justify-self: start;
  }
}

.earn-label {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400;
  font-size: 11.5px;
  line-height: 17px;
}


.group label {
  margin-top: 20px;
}

.rtl .group label {
  margin-top: 20px;
}
