/*
 * Branded /evclogin/ (AIOS-renamed wp-login.php) — re-skins WordPress's own
 * login markup to match the Creative Labs brand guide. Approved design
 * previewed and iterated on as a canvas mockup before being applied here;
 * see creative_labs_login_branding_* hooks in functions.php for the markup
 * this targets. .cla-login-card is opened on login_header and closed on
 * login_footer, so WordPress's own #login div ends up nested inside it —
 * one shared white card, not two separate blocks.
 */

body.login {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  box-sizing: border-box;
  background: #F5F2F7;
}

.cla-login-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  pointer-events: none;
}

.cla-login-glow.a {
  width: 520px;
  height: 520px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, #E5177B, transparent 70%);
}

.cla-login-glow.b {
  width: 480px;
  height: 480px;
  bottom: -180px;
  right: -140px;
  background: radial-gradient(circle, #0FB5A5, transparent 70%);
}

.cla-login-card {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(560px, 100%); /* 2026-10-21 (responsive phase A): one fluid width; the 500px laptop / 480px tablet steps were removed. */
  max-width: 100%;
  padding: 48px 44px 40px;
  background: #FFFFFF;
  border: 1px solid #DDD5E6;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(23, 19, 31, 0.12);
  text-align: center;
}

.cla-login-card::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(93deg, #E5177B, #6D28D9 55%, #0FB5A5);
}

/* WordPress's own #login div is now just an inner wrapper — the visual
   card is .cla-login-card above. */
body.login #login {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Hide WordPress's default "Powered by WordPress" logo — replaced by the
   .cla-login-brand block, injected via the login_header action. */
body.login h1.wp-login-logo {
  display: none;
}

.cla-login-brand {
  text-align: center;
}

.cla-parent-brand {
  display: block;
  margin-bottom: 6px;
  font-family: 'Anybody', sans-serif;
  font-weight: 700;
  font-size: 31.5px;
  letter-spacing: -.01em;
  background: linear-gradient(93deg, #E5177B, #6D28D9 55%, #0FB5A5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cla-brand-mark {
  display: block;
  padding-top: 10px;
  font-family: 'Anybody', sans-serif;
  font-weight: 800;
  font-size: 45px;
  letter-spacing: .06em;
  background: linear-gradient(93deg, #E5177B, #6D28D9 55%, #0FB5A5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cla-brand-sub {
  display: block;
  margin-top: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 30px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #6B6280;
}

.cla-login-heading {
  margin: 26px 0 10px;
  font-family: 'Anybody', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: #17131F;
  letter-spacing: -.01em;
}

.cla-login-sub {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.55;
  color: #6B6280;
  text-align: center;
}

/* Login form fields */
body.login #loginform {
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: left;
}

body.login #loginform p.login-username,
body.login #loginform p.login-password {
  margin: 0 0 16px;
}

body.login #loginform label {
  display: block;
  margin-bottom: 6px;
  line-height: 1.3; /* 2026-10-20 (by request): 6px to the field, the site standard. */
  font-size: 12.5px;
  font-weight: 600;
  color: #3A2F4F;
  font-family: 'Inter Tight', sans-serif;
}

body.login #loginform input[type="text"],
body.login #loginform input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #DDD5E6;
  border-radius: 10px;
  background: #F5F2F7;
  color: #17131F;
  font-size: 14px;
  font-family: 'Inter Tight', sans-serif;
  box-shadow: none;
}

body.login #loginform input[type="text"]:focus,
body.login #loginform input[type="password"]:focus {
  outline: none;
  border-color: #8C189B;
  box-shadow: 0 0 0 3px rgba(140, 24, 155, .15);
}

body.login .forgetmenot {
  margin: -4px 0 20px;
}

body.login .forgetmenot label {
  font-size: 12.5px;
  color: #6B6280;
}

body.login p.submit {
  margin: 4px 0 0;
}

body.login .wp-core-ui .button-primary,
body.login #wp-submit {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  /* 2026-10-14 (by request): every button is Royal Purple (was a purple-to-red gradient). */
  background: #8C189B;
  color: #fff;
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-shadow: none;
  box-shadow: none;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

body.login .wp-core-ui .button-primary:hover,
body.login #wp-submit:hover {
  background: #6E0F7A;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(140, 24, 155, .28);
}

body.login #nav {
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid #DDD5E6;
  text-align: center;
  font-size: 12.5px;
}

body.login #nav a {
  color: #8C189B;
  font-weight: 600;
  text-decoration: none;
}

body.login #nav a:hover {
  color: #6E0F7A;
  text-decoration: underline;
}

/* Footer "back to site" link — replaced via the login_site_html_link
   filter to point at entravision.com instead of the site itself. */
body.login #backtoblog {
  margin-top: 14px;
  text-align: center;
}

body.login #backtoblog a {
  font-size: 16px;
  color: #6B6280;
  text-decoration: none;
}

body.login #backtoblog a:hover {
  color: #17131F;
}

body.login .privacy-policy-page-link {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
}

/* Laptop */
@media (max-width: 1199px) {
  .cla-login-card {
    padding: 40px 36px 34px;
  }

  .cla-login-glow.a { width: 420px; height: 420px; }
  .cla-login-glow.b { width: 380px; height: 380px; }
}

/* Tablet */
@media (max-width: 839px) {
  body.login {
    justify-content: flex-start;
    padding-top: 90px;
  }

  .cla-login-card {
    padding: 40px 36px 34px;
  }
}

/* Mobile */
@media (max-width: 599px) {
  body.login {
    padding: 24px;
    justify-content: flex-start;
    padding-top: 56px;
  }

  .cla-login-card {
    width: 100%;
    padding: 32px 24px 28px;
    border-radius: 18px;
  }

  .cla-parent-brand {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .cla-brand-mark {
    font-size: 22px;
    padding-top: 6px;
    white-space: nowrap;
  }

  .cla-brand-sub {
    font-size: 18px;
    margin-top: 6px;
  }

  .cla-login-heading {
    font-size: 22px;
    margin-top: 20px;
  }

  .cla-login-sub {
    font-size: 13px;
    margin-bottom: 22px;
  }

  .cla-login-glow.a, .cla-login-glow.b { width: 260px; height: 260px; filter: blur(60px); }
}

/* 2026-10-13 (by request): the site footer, fixed to the bottom of the
   viewport, full width, like home.css's .cl-site-footer on every other
   page (markup: creative_labs_login_branding_footer()). The card keeps
   clear of it through the body's bottom padding. Screen only. */
:root { --footer-h: 48px; }
@media screen {
  body.login { padding-bottom: calc(24px + var(--footer-h) + env(safe-area-inset-bottom)); }
  .cla-login-footer {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    height: var(--footer-h); padding: 0 0 env(safe-area-inset-bottom); box-sizing: content-box;
    display: flex; align-items: center;
    background: #241C33; color: rgba(255,255,255,.55);
    font-family: "Inter Tight", system-ui, sans-serif; font-size: 13px;
    border-top: 3px solid #8C189B; /* 2026-10-14 (by request, as in the mockup): Royal Purple divider line. */
  }
  .cla-login-footer-in {
    width: 100%; box-sizing: border-box; padding: 0 clamp(16px, 5vw, 64px);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
  }
  .cla-login-footer-mark { flex-shrink: 0; display: inline-flex; align-items: baseline; gap: 8px; }
  .cla-login-footer-ev { font-family: "Anybody", system-ui, sans-serif; font-weight: 800; letter-spacing: .04em; color: #fff; font-size: 15px; }
  .cla-login-footer-mark small { color: rgba(255,255,255,.65); font-size: 12px; }
  .cla-login-footer-note { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}
@media screen and (max-width: 599px) {
  :root { --footer-h: 40px; }
  .cla-login-footer-in { padding: 0 16px; }
  .cla-login-footer-note { display: none; }
}
@media print { .cla-login-footer { display: none; } }

/* ============ 2026-10-13: mockup sign-in layout (Login.dc.html) ============
   Dark hero on the left, the card on the right, the fixed footer below
   (rules above). The card holds the title, the ES/EN picker and the Google
   button (AIOS compat plugin); WordPress's username/password form, Lost
   password, the logo and the back link are hidden - error and notice
   messages (#login_error, .message, .notice) stay visible. Below 840px the
   hero stacks above the card. Overrides the older centered-card rules. */
body.login {
  display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch; justify-content: flex-start;
  padding: 0 0 calc(var(--footer-h) + env(safe-area-inset-bottom)); min-height: 100vh;
  overflow-x: hidden; overflow-y: auto; background: #F5F2F7; color: #17131F;
  font-family: "Inter Tight", system-ui, sans-serif; font-size: 14px;
}
.cla-login-glow { display: none; }
.login .wp-login-logo, .login h1.screen-reader-text, .login form#loginform, .login #nav,
.login #backtoblog, .login .privacy-policy-page-link, .login .language-switcher { display: none !important; }
.cla-login-hero {
  flex: 1 1 480px; min-height: 360px; box-sizing: border-box; padding: 48px;
  background: #17131F; border-right: 3px solid #8C189B; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.cla-login-mark { display: flex; align-items: baseline; gap: 8px; }
.cla-login-ev {
  font-family: "Anybody", system-ui, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em;
  background: linear-gradient(93deg, #E5177B, #6D28D9 55%, #0FB5A5); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cla-login-mark-sub { font: 700 12px "Space Mono", ui-monospace, monospace; letter-spacing: .04em; color: rgba(255,255,255,.8); }
.cla-login-hero-text { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.cla-login-hero-eyebrow { font: 700 11px "Space Mono", ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.cla-login-hero-h { font-family: "Anybody", system-ui, sans-serif; font-weight: 800; font-size: 48px; line-height: 1.04; letter-spacing: -0.02em; }
.cla-login-hero-grad { background: linear-gradient(96deg, #E5177B, #6D28D9 48%, #0FB5A5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cla-login-beats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; border-radius: 12px; overflow: hidden; background: #241C33; }
.cla-login-beats span { padding: 14px; font: 700 10px "Space Mono", ui-monospace, monospace; text-transform: uppercase; color: rgba(255,255,255,.8); }
.cla-login-beats .b1 { border-top: 4px solid #F76423; }
.cla-login-beats .b2 { border-top: 4px solid #6586DE; }
.cla-login-beats .b3 { border-top: 4px solid #F9AC1B; }
.cla-login-main { flex: 1 1 440px; display: flex; align-items: center; justify-content: center; padding: 48px 32px; box-sizing: border-box; min-width: 0; }
.cla-login-main .cla-login-card {
  width: 100%; max-width: 420px; padding: 32px; text-align: left; border-radius: 16px;
  border: 1px solid #DDD5E6; box-shadow: 0 10px 30px rgba(23, 19, 31, .08);
  display: flex; flex-direction: column; gap: 20px;
}
.cla-login-head { display: flex; flex-direction: column; gap: 6px; }
.cla-login-main .cla-login-heading { margin: 0; font-family: "Anybody", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.02em; font-size: 30px; text-align: left; color: #17131F; }
.cla-login-main .cla-login-sub { margin: 0; color: #6B6280; text-align: left; font-size: 14px; }
.cla-login-langs { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cla-login-langs legend { padding: 0 0 8px; font-weight: 600; }
.cla-login-lang-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cla-login-lang {
  min-height: 64px; border-radius: 12px; border: 2px solid #DDD5E6; background: #fff; color: #17131F; text-decoration: none;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 10px 14px; box-sizing: border-box;
}
.cla-login-lang.is-on { border-color: #8C189B; background: #F6EDF8; }
.cla-login-lang:focus-visible { outline: 3px solid #8C189B; outline-offset: 2px; }
.cla-login-lang-tag { font: 700 11px "Space Mono", ui-monospace, monospace; letter-spacing: .1em; color: #6B6280; }
.cla-login-lang.is-on .cla-login-lang-tag { color: #8C189B; }
.cla-login-lang-name { font: 600 15px "Inter Tight", system-ui, sans-serif; }
.cla-login-lang-help { font-size: 12px; color: #6B6280; }
.cla-login-main #login { width: auto; padding: 0; margin: 0; }
.cla-login-main #login_error, .cla-login-main .message, .cla-login-main .notice {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; border-left: 4px solid #C4003A; background: #FDECEF;
  box-shadow: none; color: #17131F; font-size: 13.5px; text-align: left; max-width: none; width: auto;
}
.cla-login-main .message, .cla-login-main .notice-info, .cla-login-main .notice-success { border-left-color: #8C189B; background: #F6EDF8; }
.cla-login-main .aios-bw-google-choice { margin: 0; text-align: left; }
.cla-login-main .aios-bw-google-choice .aios-bw-google-login { margin: 0; }
.cla-login-main .aios-bw-google-choice .gsi-material-button { width: 100%; max-width: none; min-height: 48px; }
@media (max-width: 839px) {
  .cla-login-hero { border-right: 0; border-bottom: 3px solid #8C189B; min-height: 0; padding: 32px 16px; gap: 24px; }
  .cla-login-hero-h { font-size: 32px; }
  .cla-login-main { padding: 24px 16px; }
}
@media (max-width: 599px) {
  .cla-login-hero { flex-basis: 100%; }
  .cla-login-main { flex-basis: 100%; }
  .cla-login-main .cla-login-card { padding: 20px; }
  .cla-login-main .cla-login-heading { font-size: 24px; }
  .cla-login-hero-h { font-size: 28px; }
}

/* 2026-10-13 (by request): "Entravision Communications" under the Google button. */
.cla-login-main .cla-login-parent-link {
  align-self: center; margin-top: -6px; font-size: 13px; font-weight: 600; color: #6B6280;
  text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere;
}
.cla-login-main .cla-login-parent-link:hover { color: #8C189B; }
.cla-login-main .cla-login-parent-link:focus-visible { outline: 3px solid #8C189B; outline-offset: 3px; border-radius: 4px; }

/* 2026-10-13 (by request): Entravision / Creative Labs / Studio Portal above "Sign in" (was "Portal Access"). */
.cla-login-brandblock { display: flex; flex-direction: column; gap: 2px; padding-bottom: 16px; border-bottom: 1px solid #EEE8F2; }
.cla-login-bb-parent { font: 700 11px "Space Mono", ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: #6B6280; }
.cla-login-bb-name {
  font-family: "Anybody", system-ui, sans-serif; font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -0.01em;
  background: linear-gradient(93deg, #E5177B, #6D28D9 55%, #0FB5A5); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cla-login-bb-sub { font-size: 13px; font-weight: 600; color: #6B6280; }
.cla-login-main .cla-login-heading { font-size: 24px; }
@media (max-width: 599px) {
  .cla-login-bb-name { font-size: 22px; }
  .cla-login-main .cla-login-heading { font-size: 21px; }
}

/* 2026-10-13 (by request): one brand mark - the app shell header's .wordmark
   (home.css: Anybody 800, letter-spacing -.03em, magenta -> violet -> teal
   gradient; "Creadores" Space Mono 10px, .14em, uppercase, white 55%).
   home.css isn't loaded here, so its rules are repeated. Used in the footer
   (16px, 14px on phones - as the app footer) and in the left panel (19px,
   as the app header), replacing the earlier look of both. */
.login .wordmark { font-family: "Anybody", "Archivo", "Helvetica Neue", Arial, sans-serif; font-weight: 800; letter-spacing: -.03em; display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; }
.login .wordmark .ev { background: linear-gradient(93deg, #E5177B, #6D28D9 55%, #0FB5A5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login .wordmark small { font-family: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 10px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.cla-login-footer .cla-login-footer-mark { font-size: 16px; }
.cla-login-mark { font-family: "Anybody", "Archivo", "Helvetica Neue", Arial, sans-serif; font-size: 19px; }
.cla-login-mark .cla-login-ev { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.cla-login-mark .cla-login-mark-sub { font-family: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 10px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
@media (max-width: 599px) {
  .cla-login-footer .cla-login-footer-mark { font-size: 14px; }
}
