.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.auth-page-container {
  --auth-glass-shadow: 4px 4px 20px 0 #0000000d;
  --auth-header-background: linear-gradient(#101820, #10182000);

  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: var(--auth-page-background, #FFFFFF);
}

.auth-container {
  padding: 112px 80px 52px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.auth-top-bar {
  width: 100%;
  position: absolute;
  inset-block-start: 0;
  padding: 24px 80px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-image {
  height: 32px;
}

.top-bar-image img {
  height: 32px;
  width: auto;
}

.auth-form-container {
  width: 100%;
  max-width: 584px;
  min-width: 0;
  padding: 64px 48px 24px;
  border: .5px solid var(--auth-white, #FFFFFF);
  border-radius: 24px;
  background: var(--auth-panel-background, #EBEBEB);
  -webkit-backdrop-filter: blur(var(--auth-glass-blur, 20px));
  backdrop-filter: blur(var(--auth-glass-blur, 20px));
  box-shadow: var(--auth-glass-shadow);
}

.auth-form {
  width: 100%;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .auth-form-container {
    background: var(--auth-panel-fallback, #EBEBEB);
  }
}

.login-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 40px;
}

.login-header h1 {
  font-family: 'Tiempos Fine';
  font-style: normal;
  font-weight: 400;
  font-size: 32px;
  line-height: 40px;
  color: #101820;
  margin: 0;
  height: min-content;
  min-height: 36px;
}

.login-header h1:lang(vi) {
  font-family: 'Times New Roman', serif;
}

.create-account-line {
  font-family: 'Rand', Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #101820;
  padding-top: 8px;
  white-space: nowrap;
}

.create-account-line:lang(vi) {
  font-family: Arial, sans-serif;
}

.create-account-line a {
  font-weight: 500;
  color: #1135F2;
  text-decoration: underline;
  font-size: 16px;
  line-height: 24px;
}
.create-account-line a:hover {
  color: #001EB3;
  text-decoration: underline;
}

.auth-form label {
  font-family: 'Rand', Arial, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
  color: var(--auth-muted-text, #5C5E61);
  margin-bottom: 8px;
  display: block;
  margin-top: 24px;
}

.auth-form label:lang(vi) {
  font-family: Arial, sans-serif;
}

.auth-form input {
  background: #FFFFFF;
  border: 1px solid #C1C1C2;
  box-sizing: border-box;
  border-radius: 8px;
  width: 100%;
  padding: 9px 12px;
  font-family: 'Rand', Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
}

.auth-form input:lang(vi) {
  font-family: Arial, sans-serif;
}

.auth-form input:focus {
  border: 1px solid #101820;
  outline: none;
}

.auth-form .password-container {
  position: relative;
}
.password-container .show-hide-password {
  height: 24px;
  position: absolute;
  inset-inline-end: 12px;
  top: 32px;
  border: 0;
  background: none;
  cursor: pointer;
  margin-top: 0;
}

.password-container input {
  padding-inline-end: 50px;
  background: var(--auth-input-background, #FFFFFF);
  box-shadow: var(--auth-glass-shadow);
}

.show-hide-password .show-password,
.show-hide-password .hide-password {
  height: 24px;
}

.auth-form input::placeholder {
  color: var(--auth-muted-text, #5C5E61);
}
.auth-form .password-reset-link {
  margin-top: 16px;
}
.auth-form.rebind-form .password-reset-link {
  margin-top: 24px;
}
.auth-form .password-reset-link a {
  font-family: 'Rand', Arial, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  text-align: right;
  text-decoration-line: underline;
  color: #1135F2;
}
.auth-form .password-reset-link:hover a {
  color: #001EB3;
  text-decoration: underline;
}

.auth-form .password-reset-link a:focus-visible {
  outline: 2px solid #6080FF;
}
.auth-form .password-reset-link a:lang(vi) {
  font-family: Arial, sans-serif;
}

.auth-form .error-container {
  position: relative;
  padding: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--auth-error-background, #FFE0DB);
  margin-top: 24px;
  font-family: 'Rand', Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--auth-error-text, #940200);
}

.auth-form .auth-login-error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.auth-login-error .auth-warning-icon {
  flex: 0 0 20px;
}

.auth-login-error > ul,
.auth-login-error > #error-message {
  min-width: 0;
  overflow-wrap: anywhere;
}

.auth-form .error-container:lang(vi) {
  font-family: Arial, sans-serif;
}

.auth-form .error-container ul {
  margin: 0;
  padding-inline-start: 0;
}

.auth-form .error-container li {
  list-style-type: none;
}
.auth-form .error-container li:not(:last-child) {
  margin-bottom: 8px;
}

.auth-form button {
  margin-top: 40px;
}

.auth-button {
  width: 100%;
  margin-top: 40px;
  height: 60px;
  background: #1135F2;
  border-radius: 40px;
  font-family: 'Rand', Arial, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  color: #FFFFFF;
  cursor: pointer;
  border: none;
}
.auth-button:lang(vi) {
  font-family: Arial, sans-serif;
}
.auth-button:hover {
  background: #3253FF;
}
.auth-button:active {
  background: #001EB3;
}
.auth-button:focus,
.auth-button:focus-visible,
.toggle-play-pause:focus,
.toggle-play-pause:focus-visible {
  outline: 2px solid #6080FF;
  outline-offset: 2px;
}
.auth-button:focus:not(:focus-visible) {
  outline: none;
}
.auth-button:disabled {
  background: var(--auth-button-disabled-background, #D0E2FF);
  color: #5C5E61;
  cursor: auto;
}

.reset-done-button {
  display: block;
  height: auto;
  width: max-content;
  padding: 10px 24px;
  text-decoration: none;
  font-size: 16px;
  line-height: 20px;
}

.reset-done-button:hover {
  color: #FFFFFF;
}

.reset-done-button:focus {
  text-decoration: none;
}

.auth-form .hidden {
  display: none !important;
}

.or-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 40px 0;
}
.or-divider-text {
  font-family: 'Rand', Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: var(--auth-white, #FFFFFF);
}
.or-divider-text:lang(vi) {
  font-family: Arial, sans-serif;
}
.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--auth-white, #FFFFFF);
}

.auth-privacy-text {
  font-family: 'Rand', Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: #101820;
  padding: 24px 16px;
  margin-top: 40px;
}

.auth-privacy-text:lang(vi) {
  font-family: Arial, sans-serif;
}

.privacy-text-link {
  color: #1135F2;
  text-decoration: underline;
}
.privacy-text-link:hover {
  color: #001EB3;
  text-decoration: underline;
}

.privacy-text-link:focus-visible {
  outline: 2px solid #3253FF;
}

/* Language Selector styles */
.language-selector-container {
  position: relative;
  display: flex;
  gap: 8px;
  width: 240px;
}

.selector-globe-icon {
  width: 28px;
  height: 28px;
}

.auth-top-bar .selector-globe-icon path {
  fill: var(--auth-white, #FFFFFF);
}

.language-selector-container select {
  width: 100%;
  padding: 5px 11px;
  color: #101820;
  font-family: 'Rand', Arial, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  appearance: none;

  border: 1px solid #C1C1C2;
  background: #FFFFFF;
  border-radius: 8px;
}

.language-selector-container select:lang(vi) {
  font-family: Arial, sans-serif;
}

.language-selector-container .selector-arrow {
  position: absolute;
  top: 2px;
  right:16px;
}

/* Language Selector on Signup */
.signup-language-selector {
  position: relative;
}

.signup-language-selector select {
  background: #FFFFFF;
  border: 1px solid #C1C1C2;
  box-sizing: border-box;
  border-radius: 8px;
  width: 100%;
  padding: 10px 12px;
  font-family: 'Rand', Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  appearance: none;

  margin-bottom: 24px;
}

.signup-language-selector select:lang(vi) {
  font-family: Arial, sans-serif;
}

.signup-language-selector .selector-arrow {
  position: absolute;
  top: 10px;
  right: 16px;
}

/* Signup specific styles */
.signup-name-container {
  display: flex;
  gap: 24px;
}
.signup-first-name,
.signup-last-name {
  width: 50%;
}
.auth-form .signup-first-name label,
.auth-form .signup-last-name label {
  margin-top: 0;
}

.password-strength-container {
  margin-top: 16px;
  padding-left: 16px;
}
.password-strength-line {
  display: flex;
  align-items: center;
}
.password-strength-line:not(:last-child) {
  margin-bottom: 8px;
}
.password-strength-line div {
  height: 16px;
}
.password-strength-line div svg {
  margin-right: 8px;
}

.auth-form #accept-tos {
  display: flex;
  align-items: center;
  font-family: 'Rand', Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #101820;
  margin-top: 24px;
}

.auth-form #accept-tos:lang(vi) {
  font-family: Arial, sans-serif;
}

.auth-form #accept-tos input {
  width: auto;
  margin-right: 10px;
  height: 16px;
  width: 16px;
  border: 1px solid #101820;
  border-radius: 4px;
  cursor: pointer;
}

/* reauth_bind_socialaccount styles */
.explain-connection {
  font-family: 'Rand', Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #101820;
}

.explain-connection:lang(vi) {
  font-family: Arial, sans-serif;
}

/* Five eight-second slides, with a gentle 1.2-second crossfade. */
.fc-auth-crossfade-image {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #101820;
}

.auth-carousel-images {
  position: absolute;
  width: max(100%, calc(100vh * 1440 / 1024));
  aspect-ratio: 1440 / 1024;
  left: 50%;
  transform: translateX(-50%);
}

.auth-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: auth-crossfade 40s linear infinite;
}

.auth-carousel-slide img {
  position: absolute;
  width: var(--image-width);
  max-width: none;
  height: auto;
  left: var(--image-x);
  top: var(--image-y);
}

/* Keep photo crops consistent across LTR and RTL layouts. */
.auth-carousel-ceo {
  --image-width: 136.94%;
  --image-x: -10.9%;
  --image-y: -3.91%;
  animation-delay: -1.2s;
}

.auth-carousel-audience {
  --image-width: 136.53%;
  --image-x: -0.83%;
  --image-y: -50.29%;
  animation-delay: 6.8s;
}

.auth-carousel-leader {
  --image-width: 107.69%;
  --image-x: -0.56%;
  --image-y: -45.91%;
  animation-delay: 14.8s;
}

.auth-carousel-speaker {
  --image-width: 112.93%;
  --image-x: -0.43%;
  --image-y: -20.7%;
  animation-delay: 22.8s;
}

.auth-carousel-coaching {
  --image-width: 112.92%;
  --image-x: -6.46%;
  --image-y: -20.7%;
  animation-delay: 30.8s;
}

button.toggle-play-pause {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  height: 48px;
  width: 48px;
  border-radius: 50%;
  position: fixed;
  z-index: 1;
  inset-inline-end: 18px;
  inset-block-end: 16px;
  cursor: pointer;
}

.auth-page-container.paused button.toggle-play-pause {
  background: #1135F2;
}

.auth-page-container:not(.paused) button.toggle-play-pause {
  background: #F5F5F5;
}

.auth-page-container.paused button.toggle-play-pause:hover {
  background: #6080FF;
}
.auth-page-container:not(.paused) button.toggle-play-pause:hover {
  background: #EBEBEB;
}

.auth-page-container.paused button.toggle-play-pause:active {
  background: #001EB3;
}
.auth-page-container:not(.paused) button.toggle-play-pause:active {
  background: #DEDCDD;
}

.pause-icon {
  display: flex;
  gap: 4px;
}

.pause-icon span {
  width: 6px;
  height: 20px;
  background: #101820;
}

.play-icon {
  margin-inline-start: 4px;
}

.auth-page-container.paused .pause-icon,
.auth-page-container:not(.paused) .play-icon {
  display: none;
}
.auth-page-container.paused .auth-carousel-slide {
  animation-play-state: paused;
}

@keyframes auth-crossfade {
  0% { opacity: 0; }
  3%, 20% { opacity: 1; }
  23%, 100% { opacity: 0; }
}

@media (max-width: 1024px) {
  .auth-container,
  .auth-top-bar {
    padding-inline: 40px;
  }
}

@media (max-width: 903px) {
  .auth-page-container {
    display: flex;
    flex-direction: column;
  }

  .auth-container {
    padding: 34px 16px 40px;
    min-height: 0;
  }

  .auth-top-bar {
    padding: 10px 12px;
    background: var(--auth-header-background);
  }

  .top-bar-image,
  .top-bar-image img {
    height: 28px;
  }

  .auth-top-bar .language-selector-container {
    width: 28px;
    height: 28px;
  }

  .auth-top-bar .language-selector-container select {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
  }

  .auth-top-bar .language-selector-container:focus-within {
    outline: 2px solid var(--auth-white, #FFFFFF);
    outline-offset: 2px;
    border-radius: 4px;
  }

  .auth-top-bar .selector-arrow {
    display: none;
  }

  .auth-form-container {
    max-width: none;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }

  .login-header {
    margin-bottom: 24px;
  }

  .login-header h1 {
    font-size: 24px;
    line-height: 1.333333;
    min-height: 0;
  }

  .auth-form label {
    margin-top: 16px;
  }

  .auth-form input {
    box-shadow: var(--auth-glass-shadow);
  }

  .auth-form .auth-button {
    margin-top: 24px;
    height: auto;
    min-height: 40px;
    padding: 10px 24px;
    font-size: 16px;
    line-height: 1.25;
    background: var(--auth-button-background, #1135F2);
  }

  .auth-form .auth-button:hover {
    background: var(--auth-button-hover-background, #3253FF);
  }

  .auth-form .auth-button:active {
    background: var(--auth-button-active-background, #001EB3);
  }

  .auth-form .auth-button:disabled {
    background: var(--auth-button-disabled-background, #D0E2FF);
  }

  .or-divider-text {
    color: var(--auth-muted-text, #5C5E61);
  }

  .or-divider::before,
  .or-divider::after {
    border-color: var(--auth-divider-border, #C1C1C2);
  }

  .auth-privacy-text {
    margin-top: 24px;
    padding-inline: 0;
  }

  .fc-auth-crossfade-image {
    position: relative;
    order: -1;
    width: 100%;
    aspect-ratio: 375 / 187;
    flex-shrink: 0;
  }

  .auth-carousel-images {
    width: 100%;
    aspect-ratio: 375 / 187;
  }

  .auth-carousel-ceo {
    --image-width: 119.47%;
    --image-x: -7.2%;
    --image-y: -9.09%;
  }

  .auth-carousel-audience {
    --image-width: 133.92%;
    --image-x: -21.28%;
    --image-y: -74.42%;
  }

  .auth-carousel-leader {
    --image-width: 108.03%;
    --image-x: 0%;
    --image-y: -62.53%;
  }

  .auth-carousel-speaker {
    --image-width: 136.49%;
    --image-x: -18.81%;
    --image-y: -26.34%;
  }

  .auth-carousel-coaching {
    --image-width: 132.8%;
    --image-x: -6.4%;
    --image-y: -47.59%;
  }

  button.toggle-play-pause {
    position: absolute;
    width: 40px;
    height: 40px;
    inset-inline-end: 12px;
    inset-block-start: calc(100vw * 187 / 375 - 52px);
    inset-block-end: auto;
  }

  .signup-name-container {
    display: block;
  }
  .signup-first-name,
  .signup-last-name {
    width: 100%;
  }

  .auth-form .signup-last-name label {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  button.toggle-play-pause {
    display: none;
  }

  .auth-carousel-slide {
    animation: none;
    opacity: 0;
  }

  .auth-carousel-ceo {
    opacity: 1;
  }
}
