/**
 * GoPass — Login full-page (dark pro)
 */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body.gopass-login,
body.gopass-register,
body.gopass-recuperar,
body.gopass-out,
body.gopass-confirm,
body.gopass-unsubscribe,
body.gopass-mitv {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  background: #0a0a0c;
  color: #f4f4f5;
  -webkit-font-smoothing: antialiased;
}

body.gopass-mitv {
  --nx-live: #ff2d2d;
}

.login-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* Panel marca */
/* Mobile: franja baja, logo izq / título der */
.login-hero {
  position: relative;
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(246, 88, 82, 0.28), transparent 55%),
    radial-gradient(700px 400px at 90% 80%, rgba(246, 88, 82, 0.1), transparent 50%),
    linear-gradient(165deg, #000 0%, #121214 55%, #1a0f10 100%);
  overflow: hidden;
}

.login-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 88, 82, 0.55), transparent);
}

.login-hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.login-hero__logo {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: 34px;
  max-height: 34px;
  object-fit: contain;
  object-position: left center;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.login-hero__logo:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.login-hero__title {
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  width: auto;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #f4f4f5;
  text-align: right;
  white-space: nowrap;
}

/* Panel formulario */
.login-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.35rem;
  background: #121214;
  overflow: hidden;
}

.login-main__inner {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.login-main__inner .login-field {
  text-align: left;
}

body.gopass-register .login-main {
  overflow-y: auto;
  justify-content: flex-start;
  align-items: stretch;
  -webkit-overflow-scrolling: touch;
}

body.gopass-register .login-main__inner {
  max-width: 640px;
  text-align: left;
  padding-bottom: 1.25rem;
}

body.gopass-register .login-links {
  text-align: center;
}

.login-section-title {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a1a1aa;
}

.login-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 0.75rem;
}

@media (min-width: 700px) {
  body.gopass-register .login-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.login-field--full {
  grid-column: 1 / -1;
}

.login-phone {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0.5rem;
}

.login-phone__country {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  height: 2.85rem;
  padding: 0;
  background: #0a0a0c;
  border: 1px solid #2e2e32;
  border-radius: 12px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-phone__country:focus-within,
.login-phone__country.is-open {
  border-color: #f65852;
  box-shadow: 0 0 0 4px rgba(246, 88, 82, 0.14);
}

.login-phone__flag {
  flex: 0 0 auto;
  width: 24px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.gp-country__trigger {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  height: 2.85rem;
  margin: 0;
  padding: 0 0.55rem 0 0.65rem;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: #f4f4f5;
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
}

.gp-country__trigger:focus {
  outline: none;
}

.gp-country__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-country__chevron {
  flex: 0 0 auto;
  font-size: 0.65rem;
  color: #a1a1aa;
  transition: transform 0.15s ease;
}

.login-phone__country.is-open .gp-country__chevron {
  transform: rotate(180deg);
}

.gp-country__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.gp-country__list {
  display: none;
  position: fixed;
  z-index: 20000;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  max-height: 14rem;
  overflow-x: hidden;
  overflow-y: auto;
  background: #121214;
  border: 1px solid #2e2e32;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.gp-country__list.is-open {
  display: block;
}

.gp-country__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  color: #f4f4f5;
  font-size: 0.8125rem;
  cursor: pointer;
}

.gp-country__option img {
  flex: 0 0 auto;
  width: 24px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.gp-country__option:hover,
.gp-country__option:focus {
  background: #1c1c1f;
  outline: none;
}

.gp-country__option.is-selected {
  background: rgba(246, 88, 82, 0.14);
  color: #fff;
}

.login-field > select {
  width: 100%;
  height: 2.85rem;
  margin: 0;
  padding: 0 0.65rem;
  background: #0a0a0c;
  border: 1px solid #2e2e32;
  border-radius: 12px;
  color: #f4f4f5;
  font-size: 0.875rem;
  box-sizing: border-box;
}

.login-field > select:focus {
  outline: none;
  border-color: #f65852;
  box-shadow: 0 0 0 4px rgba(246, 88, 82, 0.14);
}

.login-field input:disabled,
.login-field input[readonly] {
  opacity: 0.75;
  color: #a1a1aa;
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.28);
  color: #f4f4f5;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.login-alert i {
  color: #f87171;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.login-alert b {
  color: #f87171;
}

.login-alert--success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
  color: #f4f4f5;
}

.login-alert--success i {
  color: #4ade80;
}

.login-field {
  margin-bottom: 0.85rem;
}

.login-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a1a1aa;
}

.login-field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.login-field__control > i {
  position: absolute;
  left: 1rem;
  z-index: 2;
  color: #71717a;
  font-size: 0.95rem;
  pointer-events: none;
}

.login-field__control input {
  width: 100%;
  height: 2.85rem;
  margin: 0;
  padding: 0 1rem 0 2.65rem;
  background: #0a0a0c;
  border: 1px solid #2e2e32;
  border-radius: 12px;
  color: #f4f4f5;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-field__control--password input {
  padding-right: 2.75rem;
  position: relative;
  z-index: 0;
}

.login-pass-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #71717a;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.15s ease, background 0.15s ease;
}

.login-pass-toggle:hover {
  color: #f4f4f5;
  background: rgba(255, 255, 255, 0.06);
}

.login-pass-toggle:focus {
  outline: none;
  color: #f65852;
}

.login-pass-toggle i {
  position: static;
  pointer-events: none;
  font-size: 0.95rem;
  color: inherit;
}

.login-field__control input::placeholder {
  color: #52525b;
}

.login-field__control input:focus {
  outline: none;
  border-color: #f65852;
  box-shadow: 0 0 0 4px rgba(246, 88, 82, 0.14);
}

.login-field__control.is-ok input {
  border-color: #22c55e;
}

.login-field__control.is-bad input {
  border-color: #ef4444;
}

.gp-pass-meter {
  margin-top: 0.5rem;
}

.gp-pass-meter__bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
  margin-bottom: 0.35rem;
}

.gp-pass-meter__bars span {
  display: block;
  height: 5px;
  border-radius: 99px;
  background: #2e2e32;
  transition: background 0.15s ease;
}

.gp-pass-meter.is-1 .gp-pass-meter__bars span:nth-child(-n+1) { background: #ef4444; }
.gp-pass-meter.is-2 .gp-pass-meter__bars span:nth-child(-n+2) { background: #f59e0b; }
.gp-pass-meter.is-3 .gp-pass-meter__bars span:nth-child(-n+3) { background: #eab308; }
.gp-pass-meter.is-4 .gp-pass-meter__bars span:nth-child(-n+4) { background: #22c55e; }

.gp-pass-meter__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #71717a;
}

.gp-pass-meter.is-1 .gp-pass-meter__label { color: #f87171; }
.gp-pass-meter.is-2 .gp-pass-meter__label { color: #fbbf24; }
.gp-pass-meter.is-3 .gp-pass-meter__label { color: #facc15; }
.gp-pass-meter.is-4 .gp-pass-meter__label { color: #4ade80; }

.gp-pass-match {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  min-height: 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #71717a;
}

.gp-pass-match__icon {
  flex: 0 0 auto;
  font-size: 0.8rem;
  display: none;
}

.gp-pass-match.is-ok,
.gp-pass-match.is-bad {
  color: inherit;
}

.gp-pass-match.is-ok {
  color: #4ade80;
}

.gp-pass-match.is-bad {
  color: #f87171;
}

.gp-pass-match.is-ok .gp-pass-match__icon,
.gp-pass-match.is-bad .gp-pass-match__icon {
  display: inline-block;
}

.login-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  height: 2.85rem;
  border: 0;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.login-out {
  text-align: center;
}

.login-out__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  font-size: 1.45rem;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.22);
}

.login-out__icon--error {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.22);
}

.login-out__title {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f4f4f5;
}

.login-out__text {
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #a1a1aa;
}

.login-out__meta {
  margin: 0 0 1.15rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #0a0a0c;
  border: 1px solid #2e2e32;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #d4d4d8;
}

.login-out__meta strong {
  color: #f4f4f5;
  font-weight: 600;
}

.login-out__bar {
  width: 100%;
  max-width: 220px;
  height: 4px;
  margin: 0 auto 1.35rem;
  overflow: hidden;
  border-radius: 99px;
  background: #2e2e32;
}

.login-out__bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 99px;
  background: #f65852;
  animation: login-out-bar 1.2s ease-in-out infinite;
}

@keyframes login-out-bar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.login-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.login-btn--primary {
  background: #f65852;
  color: #fff;
  box-shadow: 0 10px 28px rgba(246, 88, 82, 0.28);
}

.login-btn--primary:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.login-btn--google {
  background: transparent;
  color: #f4f4f5;
  border: 1px solid #2e2e32;
}

.login-btn--google:hover:not(:disabled) {
  background: #1c1c1f;
  border-color: #3f3f46;
}

.login-btn--google img {
  height: 1.25rem;
  width: auto;
}

.login-links {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: #a1a1aa;
  line-height: 1.7;
}

.login-links a,
.login-links__btn {
  color: #f65852;
  text-decoration: none;
  font-weight: 600;
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.login-links a:hover,
.login-links__btn:hover {
  color: #ff7369;
  text-decoration: underline;
}

.login-links a.login-links__home {
  display: inline-block;
  margin-top: 0.35rem;
  color: #a1a1aa;
  font-weight: 500;
}

.login-links a.login-links__home:hover {
  color: #d4d4d8;
  text-decoration: underline;
}

.mitv-switch-tv {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid #2e2e32;
}

.mitv-switch-tv a i {
  margin-right: 0.35rem;
}

.login-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 30000;
  max-width: min(92vw, 360px);
  padding: 0.8rem 1.1rem;
  border-radius: 10px;
  background: #dc3545;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.login-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.login-toast--green {
  background: #218838;
}

@media (max-width: 899px) {
  body.gopass-register .login-main {
    padding-top: 1rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }
}

/* Desktop: split full-page, sin scroll */
@media (min-width: 900px) {
  .login-page {
    flex-direction: row;
  }

  /* Desktop: bloque logo + título centrado, texto alineado al logo */
  .login-hero {
    flex: 1 1 52%;
    height: 100%;
    padding: 2.5rem 3.25rem;
    align-items: center;
    justify-content: center;
  }

  .login-hero::after {
    inset: 0 0 0 auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(246, 88, 82, 0.45), transparent);
  }

  .login-hero__copy {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    width: fit-content;
    max-width: 36rem;
  }

  .login-hero__logo {
    width: min(72%, 380px);
    height: auto;
    max-height: none;
    object-position: left center;
  }

  .login-hero__title {
    margin: 0;
    width: 100%;
    font-size: clamp(1.6rem, 2vw, 2rem);
    text-align: left;
  }

  .login-main {
    flex: 1 1 48%;
    height: 100%;
    padding: 3rem 3.5rem;
    align-items: center;
    justify-content: center;
  }

  body.gopass-register .login-main {
    justify-content: flex-start;
    overflow-y: auto;
  }

  .login-main__inner {
    margin: 0 auto;
    max-width: 400px;
  }
}

/* ── Mi TV (emparejamiento desde QR) ── */
body.gopass-mitv .login-main__inner {
  max-width: 420px;
  text-align: left;
  box-sizing: border-box;
}

@media (max-width: 899px) {
  body.gopass-mitv .login-page {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  body.gopass-mitv .login-main {
    flex: 1 1 auto;
    min-height: 0;
    justify-content: safe center;
    align-items: stretch;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding-top: 1rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  body.gopass-mitv .login-main__inner {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  body.gopass-mitv .mitv-event-list {
    padding-bottom: 0.35rem;
  }
}

.mitv-intro {
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #a1a1aa;
}

.mitv-screen {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.mitv-screen .login-section-title {
  margin-bottom: 0;
}

.mitv-screen-code {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(246, 88, 82, 0.12);
  border: 1px solid rgba(246, 88, 82, 0.28);
  color: #fecaca;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.mitv-screen-code strong {
  color: #fff;
  letter-spacing: 0.16em;
}

.mitv-event-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.mitv-event-form {
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.mitv-event-btn {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr) auto;
  gap: 0.65rem 0.75rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid #2e2e32;
  border-radius: 12px;
  background: #0a0a0c;
  color: #f4f4f5;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.mitv-event-btn__aside {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  min-width: 0;
}

.mitv-event-btn__flyer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #141416 center/cover no-repeat;
  border: 1px solid #2e2e32;
  overflow: hidden;
  color: #52525b;
  font-size: 0.9rem;
  line-height: 1;
}

.mitv-event-btn__flyer i {
  font-size: 0.85rem;
}

.mitv-event-btn__ticket-id {
  text-align: center;
  font-size: 0.66rem;
  line-height: 1.25;
  color: #71717a;
}

.mitv-event-btn__ticket-id strong {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #d4d4d8;
  letter-spacing: 0.03em;
}

.mitv-event-btn__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.32rem;
  min-width: 0;
  min-height: 100%;
}

.mitv-event-btn:hover,
.mitv-event-btn:focus-visible {
  border-color: rgba(246, 88, 82, 0.45);
  background: #141416;
  outline: none;
  transform: translateY(-1px);
}

.mitv-event-btn__title {
  margin: 0;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: #f4f4f5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.mitv-event-btn__channel-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}

.mitv-event-btn__avatar {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: block;
}

button.mitv-event-btn img.mitv-event-btn__avatar {
  max-width: none !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  flex-shrink: 0;
}

.mitv-event-btn__avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  font-size: 0.55rem;
  background: #141416;
}

.mitv-event-btn__channel {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: #e4e4e7;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.gp-channel-check {
  flex: 0 0 auto;
  color: #60a5fa;
  font-size: 0.72rem;
  line-height: 1;
}

.mitv-event-btn__date {
  font-size: 0.72rem;
  line-height: 1.3;
  color: #a1a1aa;
}

.gopass-mitv .nx-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.gopass-mitv .nx-badge--live {
  background: var(--nx-live);
  color: #fff;
  border: 0;
  box-shadow: 0 0 16px rgba(255, 45, 45, 0.55);
}

.gopass-mitv .nx-badge--live i {
  font-size: 0.45rem;
  animation: mitv-nx-pulse 1.4s ease-in-out infinite;
}

.gopass-mitv .nx-badge--sale {
  background: rgba(59, 130, 246, 0.22);
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.45);
  backdrop-filter: blur(4px);
}

.gopass-mitv .nx-badge--sale i {
  font-size: 0.58rem;
  color: #93c5fd;
}

.gopass-mitv .nx-badge--soon {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  backdrop-filter: blur(4px);
}

@keyframes mitv-nx-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.mitv-event-btn__action {
  flex: 0 0 auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding-left: 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f65852;
  white-space: nowrap;
}

.mitv-divider-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.35rem 0;
}

.mitv-qr-scan {
  margin: 0.25rem 0 0;
  text-align: center;
}

.mitv-qr-scan__frame {
  position: relative;
  width: min(100%, 16.5rem);
  margin: 0 auto;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #2e2e32;
  background: #0a0a0c;
}

.mitv-qr-scan__frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.mitv-qr-scan__overlay {
  position: absolute;
  inset: 18%;
  border: 2px solid rgba(246, 88, 82, 0.55);
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.38);
  pointer-events: none;
}

.mitv-qr-scan__switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.7rem auto 0;
  padding: 0.55rem 0.9rem;
  border: 1px solid #2e2e32;
  border-radius: 999px;
  background: #141416;
  color: #e4e4e7;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.mitv-qr-scan__switch:hover,
.mitv-qr-scan__switch:focus-visible {
  border-color: rgba(246, 88, 82, 0.45);
  color: #fff;
}

.mitv-qr-scan__hint,
.mitv-qr-scan__error {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.4;
}

.mitv-qr-scan__hint {
  color: #a1a1aa;
}

.mitv-qr-scan__error {
  color: #f87171;
}

.mitv-qr-scan__error[hidden] {
  display: none !important;
}

.mitv-divider-or__line {
  flex: 1 1 auto;
  height: 1px;
  background: #2e2e32;
}

.mitv-divider-or__text {
  flex: 0 0 auto;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: #a1a1aa;
  line-height: 1;
  padding: 0.2rem 0.55rem;
}

.mitv-divider {
  margin: 1.25rem 0;
  border: 0;
  border-top: 1px solid #2e2e32;
}

.mitv-field-note {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #a1a1aa;
}

.mitv-field-note--below {
  margin: 0.75rem 0 0;
}

.mitv-remote-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mitv-remote-pill {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mitv-remote-pill.is-current {
  color: #fff;
  border-color: rgba(246, 88, 82, 0.4);
  background: rgba(246, 88, 82, 0.14);
}

.mitv-code-block {
  margin-bottom: 0.25rem;
}

.mitv-code-label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a1a1aa;
}

.mitv-code--ticket {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 18rem;
}

.mitv-code--activation {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 22rem;
}

.mitv-code {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  margin: 0 auto 1rem;
  box-sizing: border-box;
}

.mitv-code__digit {
  display: block;
  width: 100%;
  min-width: 0;
  height: 3.25rem;
  margin: 0;
  padding: 0;
  border: 2px solid #52525b;
  border-radius: 10px;
  background: #0a0a0c;
  color: #f4f4f5;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 3.1rem;
  text-align: center;
  caret-color: #f65852;
  outline: none;
  box-sizing: border-box;
  -moz-appearance: textfield;
  appearance: none;
}

.mitv-code__digit::-webkit-outer-spin-button,
.mitv-code__digit::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.mitv-code__digit:focus {
  border-color: #f65852;
  background: #121214;
}

.mitv-code__digit.is-filled {
  border-color: #a1a1aa;
  background: #101012;
}

.mitv-confirm {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.mitv-confirm[hidden] {
  display: none !important;
}

.mitv-confirm__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.mitv-confirm__box {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  padding: 1.25rem 1.15rem 1.1rem;
  border-radius: 14px;
  border: 1px solid #2e2e32;
  background: #101012;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.mitv-confirm__title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f4f4f5;
}

.mitv-confirm__text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #a1a1aa;
}

.mitv-confirm__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

@media (min-width: 480px) {
  .mitv-confirm__actions {
    flex-direction: row;
    justify-content: flex-end;
  }

  .mitv-confirm__actions .login-btn {
    width: auto;
    min-width: 7.5rem;
  }

  .mitv-confirm__actions .login-btn--primary {
    min-width: 9.5rem;
    padding-inline: 1.15rem;
  }
}

@media (min-width: 900px) {
  body.gopass-mitv .login-page {
    overflow: hidden;
  }

  body.gopass-mitv .login-hero {
    flex: 1 1 52%;
    height: 100%;
  }

  body.gopass-mitv .login-main {
    flex: 1 1 48%;
    height: 100%;
    min-height: 0;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  body.gopass-mitv .login-main__inner {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
}
