/* Login screen (core wp-login.php at /login) — Claude Design "Login.dc.html".
 * Loads after core's login.css and overrides it; markup comes from inc/login.php. */

:root {
	--pf-navy: #142340;
	--pf-navy-deep: #0B1426;
	--pf-navy-raised: #1f3358;
	--pf-signal: #2BB0D6;
	--pf-slate: #5B6B84;
	--pf-ink: #3a4a63;
	--pf-line: #e3e7ee;
	--pf-mist-light: #c5d0e0;
	--pf-link-hover: #1d8fb0;
	--pf-err: #b3261e;
	--pf-sans: 'IBM Plex Sans', sans-serif;
	--pf-mono: 'IBM Plex Mono', monospace;
}

body.login.pf-login-page { margin: 0; padding: 0; min-height: 100vh; background: #fff; font-family: var(--pf-sans); color: var(--pf-navy); -webkit-font-smoothing: antialiased; }
body.pf-login-page *, body.pf-login-page *::before, body.pf-login-page *::after { box-sizing: border-box; }
body.pf-login-page a { color: var(--pf-navy); text-decoration: none; }
body.pf-login-page a:hover { color: var(--pf-link-hover); }
body.pf-login-page a:focus { box-shadow: none; outline: 2px solid var(--pf-signal); outline-offset: 2px; }

/* ── Split layout ────────────────────────────────────────────────────────── */
.pf-login { min-height: 100vh; display: flex; flex-wrap: wrap; }

.pf-login__aside {
	flex: 1 1 420px; min-width: 0; background: var(--pf-navy); color: #fff;
	padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
	position: relative; overflow: hidden;
}
body.pf-login-page .pf-login__brand { position: relative; display: flex; align-items: center; gap: 10px; color: #fff; width: max-content; }
body.pf-login-page .pf-login__brand:hover { color: #fff; }
.pf-login__mark { width: 32px; height: 32px; border: 2px solid #fff; display: flex; flex: none; }
.pf-login__mark-fill { flex: 1; background: #fff; }
.pf-login__mark-plug { width: 3px; background: var(--pf-signal); }
.pf-login__mark-bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 1px; padding-bottom: 2px; }
.pf-login__mark-bars span { width: 3px; background: #fff; }
.pf-login__wordmark { display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 21px; letter-spacing: -.02em; }
.pf-login__wordmark-bar { width: 3px; height: 22px; background: var(--pf-signal); }

.pf-login__pitch { position: relative; display: flex; flex-direction: column; gap: 18px; max-width: 380px; }
.pf-login__headline { margin: 0; font-size: clamp(28px, 3vw, 38px); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.pf-login__motto { display: flex; gap: 12px; align-items: center; font-family: var(--pf-mono); font-size: 13px; letter-spacing: .08em; color: var(--pf-mist-light); }
.pf-login__motto-bar { width: 2px; height: 14px; background: var(--pf-signal); }

/* Rising bars, bleeding off the bottom edge */
.pf-login__bars { display: flex; align-items: flex-end; gap: clamp(12px, 2vw, 20px); margin-bottom: calc(-1 * clamp(28px, 5vw, 64px)); pointer-events: none; }
.pf-login__bars span { width: clamp(24px, 3vw, 40px); background: var(--pf-navy-raised); }
.pf-login__bars span:nth-child(2) { height: clamp(36px, 6vh, 64px); }
.pf-login__bars span:nth-child(3) { height: clamp(64px, 11vh, 116px); }
.pf-login__bars span:nth-child(4) { height: clamp(96px, 17vh, 176px); }
.pf-login__bars .pf-login__bars-signal { width: 8px; height: clamp(120px, 22vh, 220px); background: var(--pf-signal); margin-right: clamp(8px, 1.5vw, 16px); }

.pf-login__main { flex: 1 1 480px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 64px); }

/* ── Core #login box ─────────────────────────────────────────────────────── */
body.pf-login-page #login { width: 100%; max-width: 400px; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
body.pf-login-page #login > * { margin: 0; }
body.pf-login-page #login h1.wp-login-logo { display: none; } /* logo lives in the aside */

.pf-login__head { display: flex; flex-direction: column; gap: 10px; }
.pf-login__eyebrow { font-family: var(--pf-mono); font-size: 12px; letter-spacing: .08em; color: var(--pf-slate); }
.pf-login__title { margin: 0; font-weight: 600; font-size: 36px; letter-spacing: -.02em; line-height: 1.1; color: var(--pf-navy); }

/* Messages: errors (#login_error) and notices (.message / .notice) */
body.pf-login-page #login_error,
body.pf-login-page .message,
body.pf-login-page .notice,
body.pf-login-page .success {
	position: relative; margin: 0; padding: 12px 14px 12px 29px; border: 0; box-shadow: none;
	font-size: 14px; line-height: 1.5; background: #e8f6fa; color: var(--pf-navy);
}
body.pf-login-page #login_error::before,
body.pf-login-page .message::before,
body.pf-login-page .notice::before,
body.pf-login-page .success::before { content: ""; position: absolute; left: 14px; top: 12px; bottom: 12px; width: 3px; background: var(--pf-signal); }
body.pf-login-page #login_error, body.pf-login-page .notice-error { background: #fbeceb; color: #8c1d18; }
body.pf-login-page #login_error::before, body.pf-login-page .notice-error::before { background: var(--pf-err); }
body.pf-login-page #login_error a, body.pf-login-page .notice-error a { color: #8c1d18; text-decoration: underline; }
body.pf-login-page .message p, body.pf-login-page .notice p, body.pf-login-page #login_error p { margin: 0; }

/* Forms (log in, lost password, reset password) */
body.pf-login-page #login form { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; overflow: visible; display: flex; flex-direction: column; gap: 18px; }
body.pf-login-page #login form p { margin: 0; }
body.pf-login-page #login form > p:not(.submit):not(.forgetmenot),
body.pf-login-page .user-pass-wrap { display: flex; flex-direction: column; gap: 6px; }
body.pf-login-page #login label { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--pf-navy); }
body.pf-login-page #login form .description,
body.pf-login-page #login .indicator-hint { font-size: 13px; color: var(--pf-slate); }

body.pf-login-page #login form .input,
body.pf-login-page #login input[type=text],
body.pf-login-page #login input[type=email],
body.pf-login-page #login input[type=password] {
	width: 100%; height: 50px; min-height: 0; margin: 0; padding: 0 14px;
	font-family: inherit; font-size: 16px; line-height: normal; color: var(--pf-navy); background: #fff;
	border: 1.5px solid var(--pf-mist-light); border-radius: 0; box-shadow: none; outline: none;
}
body.pf-login-page #login input::placeholder { color: #8796ad; opacity: 1; }
body.pf-login-page #login form .input:focus,
body.pf-login-page #login input[type=text]:focus,
body.pf-login-page #login input[type=email]:focus,
body.pf-login-page #login input[type=password]:focus { border-color: var(--pf-navy); box-shadow: none; }

/* Password + Show/Hide: one bordered box, as designed */
body.pf-login-page .wp-pwd { position: relative; display: flex; border: 1.5px solid var(--pf-mist-light); background: #fff; height: 50px; }
body.pf-login-page .wp-pwd:focus-within { border-color: var(--pf-navy); }
body.pf-login-page #login .wp-pwd input.password-input,
body.pf-login-page #login .wp-pwd input[type=password],
body.pf-login-page #login .wp-pwd input[type=text] { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0 14px; background: transparent; }
body.pf-login-page #login .button.wp-hide-pw {
	position: static; flex: none; height: 100%; min-width: 60px; width: auto; padding: 0 14px; margin: 0;
	border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--pf-slate);
	font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1; cursor: pointer;
}
body.pf-login-page #login .button.wp-hide-pw:hover { color: var(--pf-navy); }
body.pf-login-page #login .button.wp-hide-pw:focus { outline: 2px solid var(--pf-signal); outline-offset: -2px; box-shadow: none; }
body.pf-login-page #login .button.wp-hide-pw .dashicons { display: none; }
body.pf-login-page #login .button.wp-hide-pw::after { content: "Show"; }
body.pf-login-page #login .button.wp-hide-pw[data-toggle="1"]::after { content: "Hide"; }

/* Password label row with "Forgot password?" on the right (moved there by login.js) */
.pf-login__pw-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
body.pf-login-page .pf-login__pw-label a { font-size: 14px; font-weight: 400; color: var(--pf-slate); }
body.pf-login-page .pf-login__pw-label a:hover { color: var(--pf-navy); }

/* Keep me logged in */
body.pf-login-page .forgetmenot { float: none; display: flex; align-items: center; gap: 10px; min-height: 44px; }
body.pf-login-page .forgetmenot label { font-size: 15px; font-weight: 400; color: var(--pf-ink); cursor: pointer; }
/* Native checkbox (core draws its own; the design uses the browser's, tinted navy) */
body.pf-login-page #login input[type=checkbox] { appearance: auto; -webkit-appearance: auto; width: 18px; height: 18px; margin: 0; border: 0; border-radius: 0; box-shadow: none; accent-color: var(--pf-navy); }
body.pf-login-page #login input[type=checkbox]:checked::before { content: none; }

/* Primary button */
body.pf-login-page #login .submit { float: none; padding: 10px 0 0; }
body.pf-login-page #login .button-primary {
	float: none; width: 100%; min-height: 52px; height: auto; padding: 0 24px; margin: 0;
	background: var(--pf-navy); color: #fff; border: 0; border-radius: 0; box-shadow: none; text-shadow: none;
	font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1; cursor: pointer;
}
body.pf-login-page #login .button-primary:hover,
body.pf-login-page #login .button-primary:focus { background: var(--pf-navy-deep); color: #fff; }
body.pf-login-page #login .button-primary:focus { outline: 2px solid var(--pf-signal); outline-offset: 2px; box-shadow: none; }
body.pf-login-page #login .button:not(.button-primary):not(.wp-hide-pw) { border-radius: 0; border-color: var(--pf-navy); color: var(--pf-navy); background: #fff; }

/* Links under the form */
body.pf-login-page #nav { padding: 0; font-size: 15px; color: var(--pf-ink); }
body.pf-login-page #nav:empty, body.pf-login-page #nav.is-empty { display: none; }
body.pf-login-page #backtoblog { padding: 20px 0 0; border-top: 1px solid var(--pf-line); font-size: 15px; color: var(--pf-ink); }
body.pf-login-page #backtoblog a { font-weight: 600; border-bottom: 1.5px solid var(--pf-signal); }
body.pf-login-page .privacy-policy-page-link { text-align: left; font-size: 13px; }
body.pf-login-page .privacy-policy-page-link a { color: var(--pf-slate); }

/* Admin "session expired" modal: just the form */
body.pf-login-page.interim-login .pf-login__aside { display: none; }
body.pf-login-page.interim-login .pf-login__main { padding: 24px; }
