/* wp-login.php in the 2026 look (il-auth-2026.php): night ground, Newsreader at 300 with gold italics, Hanken Grotesk,
   pill buttons; on wide screens a photo of people together fills the left half. No backdrop blur, no animation that
   runs on scroll. Everything is scoped to body.ila (the plugin adds it only when the new pages are on). */

body.ila {
  --night: #06070D; --night-2: #0B0D17; --night-3: #141828; --ivory: #EDE8DC; --ivory-dim: #C9C5BB; --mist: #A4A8BC;
  --gold: #F2C46B; --gold-2: #F6D58F; --line: rgba(237,232,220,.16); --field: rgba(237,232,220,.06); --rose: #F0A3A3;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif; --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  min-height: 100vh; margin: 0; padding: 40px 0 48px; display: flex; flex-direction: column; justify-content: flex-start;
  background: radial-gradient(60% 50% at 80% 10%, rgba(242,196,107,.10), rgba(242,196,107,0) 70%), var(--night);
  color: var(--ivory); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
/* WordPress's login.css fixes html and body to the window's height; the page must grow with its content instead, and
   the night ground belongs to the whole page (auth.css only loads with the new pages on). */
html { height: auto !important; min-height: 100%; background: #06070D !important; }
body.ila { height: auto !important; box-sizing: border-box; }
body.ila * { box-sizing: border-box; }
body.ila [hidden] { display: none !important; }
body.ila a { color: var(--gold); text-decoration: none; }
body.ila a:hover { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
body.ila :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; box-shadow: none; }

/* The photo: the left half on wide screens, a short band on top on phones */
.ila-panel { position: relative; flex: none; height: 170px; margin: -40px 0 8px; overflow: hidden; background: var(--night-3); }
.ila-panel img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 55%; display: block; }
.ila-panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,7,13,.15) 0%, rgba(6,7,13,.35) 55%, var(--night) 100%); }
.ila-panel__q { display: none; }
@media (min-width: 960px) {
  body.ila { padding: 72px 0 80px 50%; }
  .ila-panel { position: fixed; inset: 0 50% 0 0; height: auto; margin: 0; }
  .ila-panel::after { background: linear-gradient(180deg, rgba(10,8,6,.2) 0%, rgba(10,8,6,0) 40%, rgba(10,8,6,.78) 100%); }
  .ila-panel__q { display: grid; position: absolute; z-index: 1; left: 48px; right: 48px; bottom: 44px; max-width: 540px; }
  .ila-panel__q > * { grid-column: 1; }
  .ila-panel__k { grid-row: 1; margin: 0 0 12px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--gold); }
  .ila-q { grid-row: 2; align-self: start; margin: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
  .ila-q.is-on { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; }
  .ila-q blockquote { margin: 0 0 12px; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 25px; line-height: 1.35; color: #FBF6EC; text-wrap: pretty; }
  .ila-q figcaption { font-size: 14px; color: var(--ivory-dim); }
  .ila-q__dots { grid-row: 3; display: flex; gap: 4px; margin-top: 18px; }
  .ila-q__dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
  .ila-q__dots button::before { content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: rgba(251,246,236,.35); transition: background .2s ease, transform .2s ease; }
  .ila-q__dots button:hover::before { background: rgba(251,246,236,.7); }
  .ila-q__dots button[aria-current]::before { background: var(--gold); transform: scale(1.25); }
  @media (prefers-reduced-motion: reduce) { .ila-q, .ila-q.is-on { transition: none; } }
}

/* The column */
body.ila #login, .ila-foot { flex: none; }
/* Centred when the window has room; otherwise it starts at the top, with the body's padding above it (never cut off). */
body.ila #login { margin-top: auto !important; }
body.ila .ila-foot { margin-bottom: auto !important; }
body.ila #login { width: min(440px, calc(100% - 40px)); margin: 0 auto; padding: 0; }
body.ila .wp-login-logo { margin: 0 0 30px; text-align: left; }
body.ila .wp-login-logo a { display: block; width: 190px; height: 25px; margin: 0; background: url('../../plugins/integral-site-chrome/assets/logo-light.png') left center / contain no-repeat; text-indent: -9999px; overflow: hidden; }
body.ila .ila-head { margin: 0 0 24px; }
body.ila .ila-kick { margin: 0 0 6px; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.3; color: var(--gold); }
body.ila .ila-h1 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4vw, 44px); line-height: 1.06; letter-spacing: -0.01em; color: #FBF6EC; text-wrap: balance; }
body.ila .ila-h1 em { font-style: italic; font-weight: 400; color: #F6CF7E; }
body.ila .ila-lede { margin: 12px 0 0; font-size: 16.5px; color: var(--ivory-dim); text-wrap: pretty; }
body.ila .ila-alt { margin: -8px 0 22px; font-size: 15px; color: var(--ivory-dim); }

/* Fields and buttons (the email-link form and WordPress's own forms) */
body.ila label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ivory); }
body.ila input[type="email"], body.ila input[type="text"], body.ila input[type="password"] {
  width: 100%; min-height: 50px; margin: 0; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--field); color: #FBF6EC; font: 400 16px/1.2 var(--sans); box-shadow: none; transition: border-color .2s ease, background .2s ease;
}
body.ila input::placeholder { color: #7D8190; opacity: 1; }
body.ila input[type="email"]:focus, body.ila input[type="text"]:focus, body.ila input[type="password"]:focus { border-color: var(--gold); background: rgba(237,232,220,.09); outline: none; box-shadow: 0 0 0 3px rgba(242,196,107,.18); }
body.ila input:-webkit-autofill { -webkit-text-fill-color: #FBF6EC; -webkit-box-shadow: 0 0 0 40px #171A26 inset; caret-color: #FBF6EC; }
body.ila .ila-btn, body.ila .button-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; height: auto; padding: 0 24px;
  border: 0; border-radius: 999px; background: var(--gold); color: #17130A; font: 700 16px/1.2 var(--sans); text-shadow: none; box-shadow: 0 12px 34px -14px rgba(242,196,107,.6);
  cursor: pointer; transition: background .2s ease, transform .15s ease;
}
body.ila .ila-btn:hover, body.ila .button-primary:hover, body.ila .button-primary:focus { background: var(--gold-2); color: #17130A; }
body.ila .ila-btn:active, body.ila .button-primary:active { transform: translateY(1px); }
body.ila .ila-btn[aria-busy="true"] { pointer-events: none; opacity: .9; }
body.ila .ila-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(23,19,10,.25); border-top-color: #17130A; animation: ila-spin .7s linear infinite; }
@keyframes ila-spin { to { transform: rotate(360deg); } }

/* The email link */
.ila-link__form { display: flex; flex-direction: column; gap: 12px; }
.ila-link__form label { margin: 0; }
.ila-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
body.ila .ila-note { margin: 0; font-size: 14px; color: var(--mist); }
body.ila .ila-msg { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(240,163,163,.1); box-shadow: inset 0 0 0 1px rgba(240,163,163,.35); color: #F7C9C9; font-size: 14.5px; }
.ila-sent { padding: 20px 22px; border-radius: 18px; background: rgba(242,196,107,.08); box-shadow: inset 0 0 0 1px rgba(242,196,107,.4); outline: none; }
.ila-sent p { margin: 0 0 8px; color: var(--ivory-dim); }
.ila-sent p:last-child { margin: 0; }
.ila-sent b { color: #FBF6EC; font-weight: 600; word-break: break-all; }
body.ila .ila-sent__h { margin: 0 0 6px; font-family: var(--serif); font-weight: 300; font-size: 28px; line-height: 1.1; color: #FBF6EC; }
body.ila .ila-quiet { padding: 0; border: 0; background: none; color: var(--gold); font: inherit; font-weight: 600; cursor: pointer; }
body.ila .ila-quiet:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Google (Nextend's button, moved here by auth.js) */
.ila-google { margin-top: 16px; }
.ila-google:empty { display: none; }
body.ila .ila-google .nsl-container { display: block !important; margin: 0; padding: 0; }
body.ila .ila-google .nsl-container-buttons { display: flex !important; flex-direction: column; width: 100% !important; max-width: none !important; padding: 0 !important; }
body.ila .ila-google .nsl-container-buttons a { display: block !important; flex: 1 1 auto; width: 100% !important; max-width: none !important; margin: 0 !important; text-decoration: none !important; }
body.ila .ila-google .nsl-button { display: flex !important; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; margin: 0 !important;
  border-radius: 999px !important; background: #FFFFFF !important; color: #1F1F1F !important; box-shadow: 0 1px 0 rgba(0,0,0,.2) !important; font: 600 16px/1.2 var(--sans); transition: background .2s ease; }
body.ila .ila-google .nsl-button:hover { background: #F2F2F2 !important; }
body.ila .ila-google .nsl-button-svg-container { flex: none; display: flex; padding: 0 !important; }
body.ila .ila-google .nsl-button-svg-container svg { width: 20px; height: 20px; }
body.ila .ila-google .nsl-button-label-container { flex: 0 0 auto !important; margin: 0 !important; padding: 0 !important; font: inherit !important; color: inherit !important; }
body.ila .ila-google .nsl-button-label-container b { font-weight: inherit; }
/* Anywhere else Nextend drew it (lost password, reset): not needed there. */
body.ila form .nsl-container, body.ila #nsl-custom-login-form-main:empty { display: none !important; }

.ila-or { display: flex; align-items: center; gap: 14px; margin: 28px 0 22px; font-size: 14px; color: var(--mist); }
.ila-or::before, .ila-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* WordPress's forms */
body.ila form, body.ila #loginform, body.ila #lostpasswordform, body.ila #resetpassform, body.ila #registerform {
  margin: 0; padding: 0; border: 0; background: none; box-shadow: none; overflow: visible; font-weight: 400;
}
body.ila form p, body.ila #loginform > p, body.ila #lostpasswordform > p { margin: 0 0 16px; }
body.ila .user-pass-wrap { margin: 0 0 16px; }
body.ila .wp-pwd { position: relative; margin: 0; }
body.ila .wp-pwd input { padding-right: 52px; }
body.ila .wp-hide-pw { position: absolute; top: 0; right: 4px; width: 46px; height: 50px; min-height: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; color: var(--mist); }
body.ila .wp-hide-pw:hover, body.ila .wp-hide-pw:focus { color: var(--gold); background: none; }
body.ila .wp-hide-pw .dashicons { width: 20px; height: 20px; font-size: 20px; line-height: 20px; }
body.ila .forgetmenot { float: none; display: flex; align-items: center; gap: 10px; margin: 0 0 18px !important; }
body.ila .forgetmenot label { display: inline; margin: 0; font-weight: 500; font-size: 14.5px; color: var(--ivory-dim); }
body.ila .forgetmenot .wp-tooltip, body.ila .wp-tooltip { display: none; }
body.ila input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; margin: 0; border: 1px solid rgba(237,232,220,.4); border-radius: 6px; background: transparent; box-shadow: none; }
body.ila input[type="checkbox"]:checked { background: var(--gold); border-color: var(--gold); }
body.ila input[type="checkbox"]:checked::before { content: ''; display: block; width: 6px; height: 11px; margin: 2px auto 0; border: solid #17130A; border-width: 0 2px 2px 0; transform: rotate(45deg); }
body.ila .submit { float: none; margin: 0 !important; padding: 0; }
body.ila .button-primary { float: none; }
body.ila #wp-submit { width: 100%; }
/* The password one is the secondary way in, so its button is quieter. */
body.ila--login #loginform .button-primary { background: transparent; color: #FBF6EC; box-shadow: inset 0 0 0 1px rgba(237,232,220,.45); }
body.ila--login #loginform .button-primary:hover { background: rgba(237,232,220,.08); color: #FFFFFF; box-shadow: inset 0 0 0 1px var(--ivory); }

/* Reset: strength meter and the suggest button */
body.ila #pass-strength-result { width: 100%; margin: 10px 0 0; padding: 8px 12px; border: 0; border-radius: 10px; background: rgba(237,232,220,.08); color: var(--ivory); font-weight: 600; font-size: 13.5px; text-align: left; }
body.ila #pass-strength-result.short, body.ila #pass-strength-result.bad { background: rgba(240,163,163,.16); color: #F7C9C9; }
body.ila #pass-strength-result.good { background: rgba(242,196,107,.16); color: var(--gold-2); }
body.ila #pass-strength-result.strong { background: rgba(127,201,160,.16); color: #A9E2C2; }
body.ila .pw-weak { margin: 10px 0 0; }
body.ila .pw-weak label { display: inline; font-weight: 500; }
body.ila .description.indicator-hint { margin: 10px 0 16px; font-size: 13.5px; color: var(--mist); }
body.ila .reset-pass-submit { display: flex; flex-direction: column-reverse; gap: 10px; }
body.ila .reset-pass-submit .button { float: none; width: 100%; min-height: 48px; margin: 0; border-radius: 999px; }
body.ila .reset-pass-submit .wp-generate-pw { border: 0; background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1px rgba(242,196,107,.5); font-weight: 600; }

/* WordPress's notes and errors */
body.ila #login_error, body.ila .message, body.ila .notice, body.ila .success {
  margin: 0 0 18px; padding: 12px 16px; border: 0; border-radius: 14px; box-shadow: none; font-size: 14.5px; line-height: 1.5; color: var(--ivory);
  background: rgba(242,196,107,.08); box-shadow: inset 0 0 0 1px rgba(242,196,107,.35);
}
body.ila #login_error, body.ila .notice-error { background: rgba(240,163,163,.1); box-shadow: inset 0 0 0 1px rgba(240,163,163,.4); color: #F7C9C9; }
body.ila #login_error a, body.ila .notice-error a { color: #FFDADA; text-decoration: underline; }
body.ila #login_error p, body.ila .message p, body.ila .notice p { margin: 0; padding: 0; }
body.ila.ila--checkemail .message, body.ila.ila--rp .message, body.ila.ila--login.ila-out .message, body.ila.ila--checkemail #loginform, body.ila.ila--checkemail .ila-or { display: none; }

body.ila .ila-go { margin: 0; }
body.ila .ila-go .ila-btn:hover { text-decoration: none; color: #17130A; }

/* What follows the form */
body.ila #nav, body.ila #backtoblog, body.ila .privacy-policy-page-link, body.ila .language-switcher { display: none; }
.ila-foot { width: min(440px, calc(100% - 40px)); margin: 28px auto 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--mist); }
.ila-foot p { margin: 0 0 8px; }
.ila-foot a { font-weight: 600; }

/* Shake on a wrong password: keep it, but small */
body.ila.login-action-login #login.shake { animation-duration: .35s; }
@media (prefers-reduced-motion: reduce) { body.ila #login.shake { animation: none; } }

@media (max-width: 600px) {
  body.ila { padding-bottom: 48px; }
  body.ila #login { margin-top: 0 !important; }
  body.ila .wp-login-logo { position: absolute; top: 22px; left: 20px; margin: 0; }
  body.ila .ila-h1 { font-size: 34px; }
}
