/* TVCOM login layout and colours, adapted to the local DLE account form. */
.tvcom-auth {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none;
  margin: 0; padding: 70px 20px 30px; border: 0; color: #fff;
  background: #000 url('../images/login-bg.jpg') center / cover no-repeat; overflow-y: auto;
}
.tvcom-auth[open] { display: flex; align-items: center; justify-content: center; }
.tvcom-auth::backdrop { background: #000; }
body:has(.tvcom-auth[open]) { overflow: hidden; }
.tvcom-auth__card { width: 100%; max-width: 458px; margin: auto; background: #1f1f1f; border-radius: 20px; padding: 40px; }
.tvcom-auth h2 { font-size: 26px; font-weight: 500; text-align: center; margin: 0 0 24px; }
.tvcom-auth form { display: flex; flex-direction: column; gap: 15px; }
.tvcom-auth__input { display: flex; flex-direction: column; gap: 16px; border-radius: 10px; background: #282828; padding: 25px 20px 20px; }
.tvcom-auth__input label { font-size: 18px; }
.tvcom-auth__input input { width: 100%; min-width: 0; background: #1f1f1f; border: 1px solid transparent; border-radius: 6px; caret-color: #e4104c; color: #fff; font-size: 18px; padding: 14px 16px; }
.tvcom-auth__input input:focus-visible { outline: 1px solid #e4104c; }
.tvcom-auth__submit { display: block; width: 100%; text-align: center; padding: 12px; border: 0; border-radius: 6px; background: #e4104c; color: #fff; font-size: 16px; font-weight: 500; cursor: pointer; }
.tvcom-auth__submit:disabled { opacity: .5; cursor: wait; }
.tvcom-auth__back, .tvcom-auth__close { border: 0; background: transparent; color: #fff; cursor: pointer; }
.tvcom-auth__close { position: absolute; top: 20px; right: 24px; font-size: 36px; line-height: 1; }
.tvcom-auth__link { display: block; text-align: center; color: #c7c7c7; font-size: 14px; margin-top: 8px; }
.tvcom-auth__username { text-align: center; margin-bottom: 20px; }
.tvcom-auth__menu { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.tvcom-auth__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 12px; border-radius: 6px; color: #fff; font-size: 14px; line-height: 1.4; }
.tvcom-auth__item:hover { background: #282828; }
.tvcom-auth__menu a:focus-visible { outline: 2px solid #e4104c; outline-offset: 2px; }
.tvcom-auth__count { flex-shrink: 0; border-radius: 6px; padding: 3px 8px; background: #333; color: #c7c7c7; font-size: 12px; }
.tvcom-auth__error { color: #ff799a; font-size: 14px; }
.tvcom-auth__error:empty { display: none; }
.tvcom-auth [hidden] { display: none; }
.channelPage .channel-demo-video { display: block; width: 100%; height: 100%; border: 0; background: #000; }
@media (max-width: 576px) { .tvcom-auth__card { padding: 30px 20px; } .tvcom-auth__input { padding: 20px 16px; } .tvcom-auth__input input { font-size: 16px; } }
/* Registration and password recovery pages: same screen as the login dialog, inside <main class="service-page">. */
.service-page:has(.tvcom-auth-page) {
  position: relative; width: 100%; max-width: none; margin: 0; min-height: calc(100dvh - 80px); padding: 70px 20px 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #000 url('../images/login-bg.jpg') center / cover no-repeat;
}
.tvcom-auth-page { width: 100%; max-width: 458px; margin: auto; background: #1f1f1f; border-radius: 20px; padding: 40px; color: #fff; }
.tvcom-auth-page__back { position: absolute; top: 20px; left: 28px; color: #fff; font-size: 18px; padding-left: 26px; }
.tvcom-auth-page__back::before { content: ''; position: absolute; left: 6px; top: 50%; width: 11px; height: 11px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-50%) rotate(45deg); }
.tvcom-auth-page__title { font-size: 26px; font-weight: 500; text-align: center; margin: 0 0 24px; line-height: 1.2; }
.tvcom-auth-page__text { color: #c7c7c7; font-size: 14px; line-height: 18px; text-align: center; margin-bottom: 20px; }
.tvcom-auth-page a:not(.tvcom-auth__link):not(.tvcom-auth-page__back) { color: #e4104c; }
.tvcom-auth-page .ui-form { list-style: none; display: flex; flex-direction: column; gap: 15px; padding: 0; margin: 0; }
.tvcom-auth-page .tvcom-auth__input { min-width: 0; gap: 12px; }
.tvcom-auth-page textarea, .tvcom-auth-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  display: block; width: 100%; min-width: 0; background: #1f1f1f; border: 1px solid transparent; border-radius: 6px;
  caret-color: #e4104c; color: #fff; font: 18px/1.3 Inter, sans-serif; padding: 14px 16px;
}
.tvcom-auth-page textarea { resize: vertical; }
.tvcom-auth-page input[type="file"] { max-width: 100%; color: #c7c7c7; font-size: 14px; }
.tvcom-auth-page input:focus-visible, .tvcom-auth-page textarea:focus-visible { outline: 1px solid #e4104c; }
.tvcom-auth-page .tvcom-auth__input label { display: block; }
.tvcom-auth-page .login_check { display: flex; gap: 8px; }
.tvcom-auth-page .login_check input { flex: 1; }
.tvcom-auth-page__check { flex: 0 0 auto; border: 0; border-radius: 6px; background: #393939; color: #fff; font-size: 14px; padding: 0 14px; cursor: pointer; }
.tvcom-auth-page #result-registration { font-size: 14px; line-height: 18px; }
.tvcom-auth-page #result-registration:empty { display: none; }
.tvcom-auth-page .c-captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tvcom-auth-page .c-captcha img { max-width: 100%; height: auto; border-radius: 6px; }
.tvcom-auth-page .c-captcha input { flex: 1 1 150px; }
.tvcom-auth-page__recaptcha { max-width: 100%; overflow-x: auto; }
.tvcom-auth-page .form_submit { margin-top: 15px; }
.tvcom-auth-page__agree { font-size: 14px; line-height: 18px; text-align: center; margin: 20px 0 0; }
.service-page:has(.tvcom-auth-page) > :not(.tvcom-auth-page) { width: 100%; max-width: 458px; }
@media (max-width: 576px) {
  .tvcom-auth-page { padding: 30px 20px; }
  .tvcom-auth-page .tvcom-auth__input { padding: 20px 16px; }
  .tvcom-auth-page textarea, .tvcom-auth-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) { font-size: 16px; }
  .tvcom-auth-page__back { left: 16px; }
}
