/* ==========================================================================
   TCDC Login Design, 1.0.0
   wp-login.php only. Tokens repeated here on purpose, see the PHP file's
   header comment for why this cannot reuse tcdc-design-system.css.
   ========================================================================== */

:root {
  --navy-deep:  #0A0E26;
  --navy-chrome:#1D1F43;
  --mint:       #A4F4E4;
  --mint-deep:  #6FD8C2;
  --mint-veil:  rgba(164, 244, 228, .14);
  --mint-ink:   #168572;
  --bone:       #F6F5F2;
  --ink:        #151941;
  --ink-soft:   #3E4A63;
  --slate-dim:  #5D6980;
  --card-line:  rgba(21, 25, 65, .11);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html {
  background: var(--navy-chrome) !important;
}

body.login {
  background: var(--navy-chrome) !important;
  font-family: 'Inter Tight', sans-serif;
  color: var(--ink);
}

/* Soften the flat navy with the same faint arc treatment used behind
   every Phase 4 hero, purely decorative, no image request. */
body.login::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 85% -10%, rgba(164, 244, 228, .10), transparent 60%),
    radial-gradient(50vw 50vw at -10% 110%, rgba(164, 244, 228, .06), transparent 60%);
}

body.login #login {
  position: relative;
  z-index: 1;
  width: 380px !important;
}

/* --- Wordmark, replaces the WordPress logo image ------------------------- */

body.login h1 {
  text-align: center;
}

body.login h1 a {
  width: auto;
  height: auto;
  margin: 0 !important;
  background-image: none !important;
  text-indent: 0;
  overflow: visible;
  display: inline-block;
  text-align: center;
  padding: 0 0 1.6rem;
  /* Collapses whatever native text WordPress puts in this link (a bare
     text node on this install, not always the <span class="screen-reader-text">
     older core versions used) to zero size, regardless of markup. The
     ::after pseudo-element below declares its own font-size, so this does
     not affect it. Without this the real wordmark rendered twice: our
     ::after content plus WordPress own site-name text sitting right
     next to it. */
  font-size: 0;
  line-height: 0;
}

body.login h1 a::after {
  content: 'THE CASTING DIRECTOR\2019S CUT';
  display: block;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--bone);
  white-space: nowrap;
}

body.login h1 a span {
  display: none;
}

/* --- The form card --------------------------------------------------------- */

body.login #loginform,
body.login #registerform,
body.login #lostpasswordform,
body.login #resetpassform {
  background: var(--bone) !important;
  border: none !important;
  border-radius: 3px;
  box-shadow: 0 24px 60px -20px rgba(5, 8, 26, .55);
  padding: 2.2rem 2rem !important;
}

body.login label {
  color: var(--ink) !important;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .04em;
}

body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
  background: #FFFFFF !important;
  border: 1px solid var(--card-line) !important;
  border-radius: 2px !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  padding: .78rem .85rem !important;
  font-size: 1rem !important;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
  border-color: var(--mint-deep) !important;
  box-shadow: 0 0 0 3px var(--mint-veil) !important;
}

body.login .forgetmenot label {
  font-weight: 400;
  color: var(--ink-soft) !important;
}

/* --- Primary button, matches .btn on the rest of the site ----------------- */

body.login.wp-core-ui .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: .95rem 1.4rem !important;
  height: auto !important;
  line-height: 1.3 !important;
  border: 1px solid var(--mint) !important;
  border-radius: 2px !important;
  background: var(--mint) !important;
  color: var(--navy-deep) !important;
  font-family: 'Archivo', sans-serif !important;
  font-weight: 700 !important;
  font-size: .78rem !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}

body.login.wp-core-ui .button-primary:hover,
body.login.wp-core-ui .button-primary:focus {
  background: var(--navy-deep) !important;
  color: var(--mint) !important;
  border-color: var(--navy-deep) !important;
  transform: translateY(-1px);
}

/* --- Links: back to site, lost password, register ------------------------- */

body.login #nav,
body.login #backtoblog {
  text-align: center;
  padding: 0 !important;
  font-size: 0;
}

body.login #nav a,
body.login #backtoblog a {
  display: inline-block;
  margin: 0 !important;
  color: var(--bone) !important;
  font-size: .85rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 245, 242, .35);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
  color: var(--mint) !important;
  border-bottom-color: var(--mint);
}

/* --- Notices, errors, "check your email" etc. ------------------------------ */

body.login #login_error,
body.login .message,
body.login .success {
  background: #FFFFFF !important;
  border-left: 4px solid var(--mint-deep) !important;
  border-radius: 2px;
  box-shadow: none !important;
  color: var(--ink) !important;
  font-size: .88rem;
}

body.login #login_error {
  border-left-color: #C4522F !important;
}

/* --- Checkbox accent, "remember me" ---------------------------------------- */

body.login input[type="checkbox"]:checked::before {
  color: var(--mint-ink) !important;
}

/* --- Language switcher, privacy policy link, small print at the foot ------- */

body.login .privacy-policy-page-link a,
body.login #language-switcher label {
  color: var(--bone) !important;
}
