/* ==========================================================================
   vxl — Netflix-style login for styles/default
   Applies on the /login page (body.page-login). Restyles the shell around
   the existing login-form Vue components (loginForm / loginFormV2) — markup,
   IDs, v-model bindings and form actions are all untouched. Consumes only
   existing customizer variables (--vod-*), hovers included (color-mix with
   rgba fallbacks); vodlix.css / login.scss are untouched and load first.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page shell — let the hero fill; drop the global content top offset
   -------------------------------------------------------------------------- */
body.page-login .contentHolder {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.page-login .login-container {
  position: relative;
}
/* No page scroll: the container was a hard 100vh (.vh-height) which, stacked
   above the language bar, overflowed the viewport. Make it flex-fill only the
   space the bar leaves — basis 0 + min-height 0 so it shares the viewport
   rather than claiming a full 100vh before the bar is added. The whole page
   then fits one screen; it only scrolls on very short viewports. */
body.page-login .d-flex.flex-column.min-vh-100 {
  min-height: 100vh;
}
body.page-login .login-container.vh-height {
  height: auto;
  min-height: 0;
  flex: 1 1 0%;
}

/* Richer, Netflix-weight backdrop over the branding image */
body.page-login .bgInner {
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    radial-gradient(120% 120% at 50% 0%, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.8) 100%);
}

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */
body.page-login .loginContent {
  max-width: 468px;
  border-radius: 12px;
  /* opaque by construction so the tenant's --vod-sign-login-bg alpha still
     reads as a solid panel over the busy background */
  background:
    linear-gradient(var(--vod-sign-login-bg), var(--vod-sign-login-bg)),
    #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-color: color-mix(in srgb, var(--vod-white-color) 8%, transparent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
body.page-login .loginContent .inner {
  padding: 40px 44px;
}
body.page-login .loginContent hr {
  border-top-color: rgba(255, 255, 255, 0.1);
  border-top-color: color-mix(in srgb, var(--vod-white-color) 10%, transparent);
}
body.page-login .loginContent h2.h2 {
  margin-bottom: 26px !important;
  color: var(--vod-white-color);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Inputs
   -------------------------------------------------------------------------- */
/* vodlix.css forces .form-control background/border/box-shadow with
   !important — keep its customizer input colour, but reclaim the hairline
   border, rounding and focus ring with matched !important. */
body.page-login #login-form .form-control {
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-color: color-mix(in srgb, var(--vod-white-color) 14%, transparent) !important;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body.page-login #login-form .form-control::placeholder {
  color: var(--vod-placeholder-color, var(--vod-grey-text));
  opacity: 1;
}
body.page-login #login-form .form-control:focus {
  border-color: color-mix(in srgb, var(--vod-primary) 70%, transparent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vod-primary) 22%, transparent) !important;
}
/* password field: centre the eye toggle on the input itself. The eye is
   absolutely placed inside .passwordBlock, which also holds the error line
   below — so 50% of the block sits too low. 26px == half the 52px input. */
body.page-login .passwordBlock .eyeIcon {
  top: 26px;
  right: 14px;
  transform: translateY(-50%);
  line-height: 0;
  color: var(--vod-grey-text);
  cursor: pointer;
}
body.page-login .passwordBlock .eyeIcon .mdi {
  margin: 0;
  line-height: 1;
}
body.page-login .forgotLink a {
  color: var(--vod-grey-text);
}
body.page-login .forgotLink a:hover {
  color: var(--vod-white-color);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Primary action (Continue / Login) — customizer-driven
   -------------------------------------------------------------------------- */
body.page-login #login-form .continueBtn,
body.page-login #login-form .submitBtn {
  height: 52px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background-color: var(--vod-primary);
  border: 1px solid var(--vod-primary);
  color: var(--vod-btn-primary-text, #fff);
  transition: filter 0.15s ease;
}
body.page-login #login-form .continueBtn:hover:not(:disabled),
body.page-login #login-form .submitBtn:hover:not(:disabled) {
  filter: brightness(1.08);
  color: var(--vod-btn-primary-text, #fff);
}
body.page-login #login-form .continueBtn:disabled,
body.page-login #login-form .submitBtn:disabled {
  opacity: 0.55;
}

/* --------------------------------------------------------------------------
   Social connect
   -------------------------------------------------------------------------- */
body.page-login #login-form .border-top.border-bottom {
  border-top-color: color-mix(in srgb, var(--vod-white-color) 12%, transparent) !important;
  border-bottom-color: color-mix(in srgb, var(--vod-white-color) 12%, transparent) !important;
}
body.page-login #login-form h6.text-uppercase {
  color: var(--vod-grey-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
/* centered row of round brand-icon buttons */
body.page-login #login-form .vxl-socialRow {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
body.page-login #login-form .vxl-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  background-color: color-mix(in srgb, var(--vod-white-color) 10%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-color: color-mix(in srgb, var(--vod-white-color) 16%, transparent);
  color: var(--vod-white-color);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
body.page-login #login-form .vxl-social .mdi {
  font-size: 24px;
  line-height: 1;
}
body.page-login #login-form .vxl-social:hover:not(:disabled) {
  background-color: color-mix(in srgb, var(--vod-primary) 85%, transparent);
  border-color: var(--vod-primary);
  color: var(--vod-btn-primary-text, #fff);
  transform: translateY(-2px);
}
body.page-login #login-form .vxl-social:disabled {
  opacity: 0.55;
}
/* still centre the legacy dropdown-provider variant if a tenant uses it */
body.page-login #login-form .dropdown.text-center {
  display: flex;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Create account
   -------------------------------------------------------------------------- */
body.page-login #login-form .greyText {
  color: var(--vod-grey-text) !important;
  font-size: 14px;
}
body.page-login #login-form .greyText a {
  color: var(--vod-primary);
  font-weight: 600;
}
body.page-login #login-form .greyText a:hover {
  filter: brightness(1.12);
  text-decoration: underline;
}

/* Imported-user note box */
body.page-login #login-form .border.border-primary {
  border-color: color-mix(in srgb, var(--vod-primary) 60%, transparent) !important;
  border-radius: 8px;
  background-color: color-mix(in srgb, var(--vod-primary) 12%, transparent);
}

/* --------------------------------------------------------------------------
   Language bar — dark, with the changer itself on the primary colour
   -------------------------------------------------------------------------- */
body.page-login .login-lang-bar {
  background:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.72)),
    #000 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-top-color: color-mix(in srgb, var(--vod-white-color) 8%, transparent) !important;
  box-shadow: none !important;
}
body.page-login .login-lang-bar label {
  color: var(--vod-grey-text) !important;
}
/* .form-control forces background/border/color with !important in
   vodlix.css — override so the changer itself sits on the primary colour. */
body.page-login #site-login-lang {
  height: 42px;
  background-color: var(--vod-primary) !important;
  border: 1px solid var(--vod-primary) !important;
  color: var(--vod-btn-primary-text, #fff) !important;
  font-weight: 600;
  cursor: pointer;
  /* custom caret so it stays legible on the primary fill */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* !important: vodlix's `background:` shorthand would otherwise reset the caret */
  background-image: linear-gradient(45deg, transparent 50%, var(--vod-btn-primary-text, #fff) 50%),
                    linear-gradient(135deg, var(--vod-btn-primary-text, #fff) 50%, transparent 50%) !important;
  background-position: calc(100% - 18px) center, calc(100% - 13px) center !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
}
body.page-login #site-login-lang:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--vod-primary) 30%, transparent);
  outline: none;
}
/* dropdown options render in the OS menu — keep them readable on dark */
body.page-login #site-login-lang option {
  background-color: #1a1a1a;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  body.page-login .loginContent .inner {
    padding: 32px 24px;
  }
}

/* RTL — flip the select caret to the left edge */
body.rtl.page-login #site-login-lang {
  background-position: 18px center, 23px center;
}
