/* Recuperar palavra-passe estilo Netflix */
html:has(body.page-forgot-password-flow) {
  background: #000;
}

.page-forgot-password-flow {
  --fp-red: #e50914;
  --fp-red-hover: #f40612;
  background: #000 !important;
  color: #fff;
  font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.page-forgot-password-flow #siteHeader,
.page-forgot-password-flow > footer,
.page-forgot-password-flow footer.footer,
.page-forgot-password-flow footer.footer-default,
.page-forgot-password-flow .skip-to-main {
  display: none !important;
}

body.custom-header-relative.page-forgot-password-flow .main-content,
.page-forgot-password-flow .main-content {
  padding-top: 0 !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000 !important;
}

.fp-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Fundo e cartão. O footer fica fora, para a camada de fundo não o tapar. */
.fp-stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
}

.fp-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000 0%, #000 42%, rgba(0, 0, 0, 0.45) 68%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}

.fp-backdrop-image {
  position: absolute;
  top: 0;
  right: 0;
  width: min(58vw, 1100px);
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.7;
  mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
  pointer-events: none;
}

.fp-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  height: 92px;
  box-sizing: border-box;
  padding: 0 max(1.25rem, calc((100% - 74rem) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fp-logo {
  color: var(--fp-red);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.fp-signin-btn {
  background: var(--fp-red);
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  text-decoration: none;
}

.fp-signin-btn:hover {
  background: var(--fp-red-hover);
  color: #fff !important;
}

.fp-main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 1.25rem;
}

.fp-card {
  width: 100%;
  max-width: 30.375rem;
  background: #f3f3f3;
  color: #333;
  padding: 3rem 2.5rem 2.5rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  /* A página é escura; sem isto os botões de opção aparecem preenchidos no cartão claro. */
  color-scheme: light;
}

.fp-card h1 {
  color: #333 !important;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.fp-card h2 {
  color: #333 !important;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.fp-card p {
  color: #333;
  font-size: 0.98rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.fp-method-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.fp-method-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.98rem;
  color: #333;
  cursor: pointer;
}

.fp-method-option input {
  width: 1rem;
  height: 1rem;
  accent-color: #333;
  cursor: pointer;
}

.fp-method-option.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.fp-method-option.is-disabled input {
  cursor: not-allowed;
}

.fp-field {
  margin-bottom: 2rem;
}

.fp-field input {
  width: 100%;
  height: 3.5rem;
  border: 1px solid #8c8c8c;
  border-radius: 2px;
  background: #fff;
  color: #333;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
}

.fp-field input:focus {
  outline: none;
  border-color: #333;
}

.fp-field input::placeholder {
  color: #8c8c8c;
}

.fp-submit-btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 4px;
  background: var(--fp-red);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.9rem 1rem;
  cursor: pointer;
}

.fp-submit-btn:hover {
  background: var(--fp-red-hover);
}

.fp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.fp-actions .fp-submit-btn {
  width: auto;
  padding: 0.65rem 1.25rem;
}

.fp-cancel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 4px;
  background: #e6e6e6;
  color: #333 !important;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  text-decoration: none;
}

.fp-cancel-btn:hover {
  background: #d9d9d9;
  color: #000 !important;
}

.fp-forgot-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: #333;
  font-size: 0.95rem;
  text-decoration: underline;
}

.fp-forgot-link:hover {
  color: #000;
}

.fp-captcha-note {
  width: 100%;
  max-width: 30.375rem;
  margin-top: 1.25rem;
  color: #8c8c8c;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: left;
}

.fp-alert {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.fp-alert--error {
  background: #f8d7da;
  border: 1px solid #f5c2c7;
  color: #842029;
}

.fp-alert--success {
  background: #d1e7dd;
  border: 1px solid #badbcc;
  color: #0f5132;
}

/* Footer padrão do site, com o fundo e o alinhamento destas páginas. */
.fp-shell .home-footer-netflix {
  background: #161616;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 4.5rem;
  padding-bottom: 4rem;
}

.fp-shell .home-footer-netflix-inner {
  max-width: 74rem;
}

@media (max-width: 768px) {
  .fp-main {
    padding: 2rem 1rem 3rem;
  }

  .fp-card {
    padding: 2.25rem 1.5rem 2rem;
  }

  .fp-field {
    margin-bottom: 1.25rem;
  }

  .fp-card h1 {
    font-size: 1.55rem;
  }

  .fp-backdrop-image {
    width: 100%;
    opacity: 0.25;
  }
}
