/**
 * Password screen for the protected movie page.
 * All selectors are scoped to .movie-password so this file can be loaded only
 * on the movie page without changing existing screens.
 */

.movie-password {
  padding: 80px 20px 0;
  color: #191818;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", YuGothic, "Yu Gothic", "Yu Gothic", "Meiryo", sans-serif;
}

.movie-password .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.movie-password__form {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #fcfcfc;
  border: 1px solid #dedede;
}

.movie-password__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 60px;
  margin: -1px -1px 0;
  padding: 12px 20px;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.8;
  text-align: center;
  background: #191818;
}

.movie-password__lock {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.movie-password__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 39px;
}

.movie-password__description {
  margin: 0 0 22px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  text-align: center;
  word-break: normal;
}

.movie-password__input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  color: #191818;
  font: inherit;
  font-size: 16px;
  line-height: 1.8;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 5px;
  appearance: none;
}

.movie-password__input::placeholder {
  color: #c1c1c1;
  opacity: 1;
}

.movie-password__input:focus-visible {
  outline: 2px solid #191818;
  outline-offset: 2px;
}

.movie-password__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 180px);
  min-height: 40px;
  margin-top: 39px;
  padding: 5px 24px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  background: #191818;
  border: 1px solid #191818;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s linear, background-color 0.25s linear;
}

@media (hover: hover) and (pointer: fine) {
  .movie-password__submit:hover {
    color: #191818;
    background: #fff;
  }
}

.movie-password__submit:focus-visible {
  outline: 2px solid #191818;
  outline-offset: 3px;
}

@media screen and (max-width: 767px) {
  .movie-password {
    padding-top: 50px;
  }

  .movie-password__title {
    min-height: 54px;
    padding: 10px 16px;
    font-size: 16px;
    line-height: 1.5;
  }

  .movie-password__body {
    padding: 28px 20px 30px;
  }

  .movie-password__description,
  .movie-password__input,
  .movie-password__submit {
    font-size: 14px;
  }

  .movie-password__description {
    margin-bottom: 20px;
  }

  .movie-password__submit {
    margin-top: 30px;
  }
}

@media screen and (max-width: 359px) {
  .movie-password {
    padding-right: 12px;
    padding-left: 12px;
  }

  .movie-password__title {
    align-items: flex-start;
    font-size: 15px;
  }

  .movie-password__lock {
    margin-top: 1px;
  }

  .movie-password__body {
    padding-right: 14px;
    padding-left: 14px;
  }
}
