/* CherryTV customer login, translated from the supplied reference. */
html[data-portal="customer"] {
  color-scheme: dark;
  --cherry-bg: #09050b;
  --cherry-text: #fff9fb;
  --cherry-muted: #c6bac4;
  --cherry-muted-dim: #9e929e;
  --cherry-red: #ff174d;
  --cherry-red-hot: #ff315f;
  --cherry-border: rgba(255, 220, 232, .22);
  --cherry-neon: 0 0 34px rgba(255, 15, 70, .22), 0 0 100px rgba(255, 15, 70, .12);
}

html[data-portal="customer"] body.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  padding: 20px 0;
  color: var(--cherry-text);
  background: #09050b url("/static/shared/img/cherrytv-login-cinema.png") center / cover fixed no-repeat;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

html[data-portal="customer"] body.login-page::before {
  position: fixed;
  inset: 0;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(4, 3, 8, .1), rgba(4, 3, 8, .38) 48%, rgba(4, 3, 8, .24)),
    radial-gradient(ellipse at 50% 48%, rgba(8, 5, 10, .14), rgba(8, 5, 10, .08) 45%, rgba(4, 3, 8, .2));
  background-size: auto;
  mask-image: none;
  pointer-events: none;
}

html[data-portal="customer"] .login-container {
  display: grid;
  width: min(550px, calc(100% - 32px));
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 0;
  margin: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

html[data-portal="customer"] .brand-side {
  display: grid;
  justify-items: center;
  padding: 6px 14px 22px;
  text-align: center;
  background: transparent;
}
html[data-portal="customer"] .brand-side .brand {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: clamp(48px, 10vw, 76px);
  font-weight: 850;
  line-height: .94;
  letter-spacing: -.075em;
  text-shadow: 0 0 28px rgba(255, 20, 74, .12);
}
html[data-portal="customer"] .brand-side .brand > span { color: #fff9fb; }
html[data-portal="customer"] .brand-side .brand > span span { color: var(--cherry-red); }
html[data-portal="customer"] .customer-brand-mark {
  display: block;
  width: clamp(88px, 19vw, 124px);
  height: auto;
  margin-bottom: 2px;
  overflow: visible;
  filter: drop-shadow(0 0 13px rgba(255, 20, 74, .55));
}
html[data-portal="customer"] .brand-side .badge,
html[data-portal="customer"] .customer-highlights,
html[data-portal="customer"] .brand-side p,
html[data-portal="customer"] .status-api { display: none; }
html[data-portal="customer"] .brand-side h1 {
  max-width: none;
  margin: 12px 0 0;
  color: #ded6dd;
  font-size: clamp(12px, 2.6vw, 15px);
  font-weight: 700;
  letter-spacing: .19em;
  line-height: 1.6;
  text-transform: uppercase;
}

html[data-portal="customer"] .login-side {
  width: 100%;
  padding: clamp(24px, 5.2vw, 38px);
  border: 1px solid rgba(255, 88, 126, .68);
  border-radius: 34px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 23, 77, .09), transparent 48%),
    linear-gradient(145deg, rgba(22, 17, 26, .89), rgba(8, 7, 12, .92) 70%);
  box-shadow: var(--cherry-neon), inset 0 1px 0 rgba(255, 255, 255, .055);
  backdrop-filter: blur(18px);
}
html[data-portal="customer"] .login-side h2 {
  margin: 0 0 7px;
  font-size: clamp(25px, 5vw, 32px);
  font-weight: 780;
  letter-spacing: -.04em;
}
html[data-portal="customer"] .login-side .subtitle {
  margin: 0 0 25px;
  color: var(--cherry-muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}
html[data-portal="customer"] .login-side h2 { text-align: center; }
html[data-portal="customer"] .tabs { display: none; }
html[data-portal="customer"] .auth-return-link {
  display: none;
  min-height: 44px;
  margin: -14px 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff5479;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
html[data-portal="customer"] .login-side:not([data-active-form="loginForm"]) .auth-return-link { display: inline-flex; align-items: center; }
html[data-portal="customer"] #forgotPasswordForm button[onclick="showLogin()"] { display: none; }
html[data-portal="customer"] .form { display: none; }
html[data-portal="customer"] .form.active { display: block; }
html[data-portal="customer"] .field { margin-bottom: 15px; }
html[data-portal="customer"] .login-side .form.active .field:not(.login-input-field) {
  display: grid;
  gap: 7px;
  padding: 11px 15px;
  border: 1px solid rgba(233, 223, 237, .22);
  border-radius: 17px;
  background: linear-gradient(110deg, rgba(34, 30, 41, .82), rgba(18, 18, 27, .9));
}
html[data-portal="customer"] .login-side .form.active .field:not(.login-input-field) input,
html[data-portal="customer"] .login-side .form.active .field:not(.login-input-field) textarea {
  min-height: 26px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html[data-portal="customer"] #loginForm .login-input-field {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 14px;
  padding: 10px 17px;
  border: 1px solid rgba(233, 223, 237, .28);
  border-radius: 20px;
  background: linear-gradient(110deg, rgba(34, 30, 41, .88), rgba(18, 18, 27, .93));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 7px 20px rgba(0, 0, 0, .13);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
html[data-portal="customer"] #loginForm .login-input-field:focus-within {
  border-color: rgba(255, 90, 129, .9);
  box-shadow: 0 0 0 3px rgba(255, 23, 77, .18), inset 0 1px 0 rgba(255, 255, 255, .04);
}
html[data-portal="customer"] .field-icon { flex: 0 0 25px; width: 25px; height: 25px; color: var(--cherry-red); }
html[data-portal="customer"] .field-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }
html[data-portal="customer"] #loginForm .field label {
  margin: 0;
  color: #e0d6df;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}
html[data-portal="customer"] #loginForm .login-input-field input {
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0;
  color: var(--cherry-text) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 16px;
  line-height: 1.35;
}
html[data-portal="customer"] #loginForm .login-input-field input::placeholder { color: #a79eaa; opacity: 1; }
html[data-portal="customer"] #loginForm .login-input-field input:focus-visible { outline: 0 !important; }
html[data-portal="customer"] .password-toggle {
  display: grid;
  width: 38px;
  height: 42px;
  flex: 0 0 38px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #bdb4c0;
  cursor: pointer;
}
html[data-portal="customer"] .password-toggle svg { width: 22px; height: 22px; }
html[data-portal="customer"] .form-options { display: flex; justify-content: flex-end; margin: 4px 0 14px; }
html[data-portal="customer"] #loginForm button[onclick="showForgotPassword()"] {
  min-height: 44px;
  padding: 0;
  color: #ff5479 !important;
  font-size: 13px !important;
  font-weight: 700;
}
html[data-portal="customer"] .primary-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 203, 218, .65);
  border-radius: 18px;
  background: linear-gradient(180deg, #ff315f 0%, #f20a43 60%, #cd0037 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 750;
  text-align: center;
  text-shadow: 0 1px 2px rgba(72, 0, 19, .3);
  box-shadow: 0 8px 30px rgba(255, 13, 66, .31), inset 0 1px 0 rgba(255, 255, 255, .32);
  cursor: pointer;
}
html[data-portal="customer"] .primary-button:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 10px 34px rgba(255, 13, 66, .42), inset 0 1px 0 rgba(255, 255, 255, .35); }
html[data-portal="customer"] .primary-button:disabled { opacity: .64; cursor: wait; }
html[data-portal="customer"] .secondary-button {
  min-height: 50px;
  border: 1px solid rgba(222, 211, 227, .38);
  border-radius: 16px;
  background: rgba(19, 19, 29, .98);
  color: #f7f1f7;
}
html[data-portal="customer"] .message { min-height: 20px; margin-top: 12px; color: var(--cherry-muted); font-size: 12px; line-height: 1.5; }
html[data-portal="customer"] .message.error { color: #ff92a8; }
html[data-portal="customer"] .message.success { color: #b9ef83; }
html[data-portal="customer"] .security {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(225, 214, 230, .32);
  color: #b9afb9;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}
html[data-portal="customer"] .customer-register-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 7px;
  margin: 15px 0 0;
  color: #d6cdd7;
  font-size: 14px;
  text-align: center;
}
html[data-portal="customer"] .login-side:not([data-active-form="loginForm"]) .customer-register-row { display: none; }
html[data-portal="customer"] .register-link {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff4f76;
  font-size: 14px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
html[data-portal="customer"] .login-side :focus-visible { outline: 3px solid #fff !important; outline-offset: 3px; }
html[data-portal="customer"] #loginForm .login-input-field :focus-visible { outline: 0 !important; }
html[data-portal="customer"] .device-option { border-color: rgba(255, 220, 232, .22); border-radius: 16px; background: rgba(18, 18, 27, .93); }
html[data-portal="customer"] .device-option.selected { border-color: #ff5479; }

/* The shared login template also serves the staff portal. Keep its identity untouched. */
html[data-portal="admin"] .customer-brand-mark { display: none; }
html[data-portal="admin"] #portalBrandName { display: inline; }
html[data-portal="admin"] .customer-register-row,
html[data-portal="admin"] .auth-return-link { display: none !important; }

@media (min-width: 900px) {
  html[data-portal="customer"] .login-container { width: min(550px, calc(100% - 44px)); }
  html[data-portal="customer"] .brand-side { padding-bottom: 26px; }
  html[data-portal="customer"] .login-side { padding: 36px 38px 30px; }
}
@media (max-width: 560px) {
  html[data-portal="customer"] body.login-page { align-items: flex-start; padding: max(22px, env(safe-area-inset-top)) 0 max(26px, env(safe-area-inset-bottom)); background-position: center; background-attachment: scroll; }
  html[data-portal="customer"] .login-container { width: min(100% - 28px, 440px); padding-top: 8px; }
  html[data-portal="customer"] .brand-side { padding: 0 10px 20px; }
  html[data-portal="customer"] .brand-side .brand { font-size: clamp(46px, 13vw, 62px); }
  html[data-portal="customer"] .customer-brand-mark { width: 88px; }
  html[data-portal="customer"] .brand-side h1 { margin-top: 11px; font-size: 10px; letter-spacing: .19em; }
  html[data-portal="customer"] .login-side { padding: 24px 20px 18px; border-radius: 27px; }
  html[data-portal="customer"] .login-side h2 { font-size: 23px; }
  html[data-portal="customer"] .login-side .subtitle { margin-bottom: 20px; }
  html[data-portal="customer"] #loginForm .login-input-field { min-height: 62px; padding-inline: 14px; border-radius: 18px; }
  html[data-portal="customer"] .primary-button { min-height: 56px; }
}
@media (max-width: 360px) {
  html[data-portal="customer"] .login-container { width: calc(100% - 24px); }
  html[data-portal="customer"] .login-side { padding-inline: 16px; }
  html[data-portal="customer"] #loginForm .login-input-field { gap: 10px; }
  html[data-portal="customer"] .customer-register-row { font-size: 13px; }
}
@media (max-height: 740px) and (min-width: 561px) {
  html[data-portal="customer"] .login-container { padding-block: 0; }
  html[data-portal="customer"] .brand-side { padding-bottom: 14px; }
  html[data-portal="customer"] .customer-brand-mark { width: 72px; }
  html[data-portal="customer"] .brand-side .brand { font-size: 54px; }
  html[data-portal="customer"] .brand-side h1 { margin-top: 8px; }
  html[data-portal="customer"] .login-side { padding-block: 24px 20px; }
  html[data-portal="customer"] .login-side .subtitle { margin-bottom: 16px; }
  html[data-portal="customer"] #loginForm .login-input-field { min-height: 58px; }
  html[data-portal="customer"] .security { margin-top: 14px; }
  html[data-portal="customer"] .customer-register-row { margin-top: 8px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  html[data-portal="customer"] .login-container { width: min(100% - 40px, 610px); }
  html[data-portal="customer"] .customer-brand-mark { width: 64px; }
  html[data-portal="customer"] .brand-side { padding-bottom: 12px; }
  html[data-portal="customer"] .brand-side .brand { font-size: 46px; }
  html[data-portal="customer"] .login-side { padding: 20px 26px; }
  html[data-portal="customer"] #loginForm .login-input-field { min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-portal="customer"] .login-container *,
  html[data-portal="customer"] .login-container *::before,
  html[data-portal="customer"] .login-container *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
