/* Sign-in screen in the Friends of PACTPAN look */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-wght.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-wght.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
	--bg: #F3F3EE; --surface: #FFFFFF; --ink: #131815; --night: #0F1B17;
	--accent: #F4B41A; --accent-hover: #FFC53D; --accent-ink: #1B1505;
	--muted: #5B625D; --line: #D8DAD2; --on-night: #EEF0EA; --on-night-muted: #A9B3AC; --gold-text: #7A5700;
	--display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
	--text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.login {
	--panel: clamp(0px, calc(100vw - 520px), 58vw);
	display: flex; flex-direction: column; min-height: 100vh; padding-left: var(--panel); box-sizing: border-box;
	background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 16px;
}

/* Brand panel */
.fopp-login-panel {
	position: fixed; inset: 0 auto 0 0; width: var(--panel); box-sizing: border-box;
	display: flex; flex-direction: column; justify-content: space-between; padding: 48px clamp(32px, 5vw, 72px);
	color: var(--on-night);
	background: linear-gradient(180deg, rgba(15, 27, 23, .55) 0%, rgba(15, 27, 23, .92) 75%), var(--fopp-hero) center / cover no-repeat, var(--night);
}
.fopp-login-panel__brand { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 750; letter-spacing: -0.01em; }
.fopp-login-panel__brand span { display: block; font-family: var(--text); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--on-night-muted); }
.fopp-login-panel__eyebrow { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.fopp-login-panel__title { margin: 0; max-width: 14ch; font-family: var(--display); font-size: clamp(36px, 4vw, 56px); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; }

/* Form column */
#login { width: 100%; max-width: 400px; margin: 0 auto; padding: clamp(40px, 9vh, 96px) 24px 32px; box-sizing: border-box; }
.login h1.wp-login-logo { margin-bottom: 28px; }
.login h1.wp-login-logo a {
	width: 64px; height: 64px; margin: 0; background: var(--fopp-logo) center / contain no-repeat;
	border-radius: 50%; outline-offset: 4px;
}
.fopp-login-intro { margin-bottom: 22px; }
.fopp-login-intro h2 { margin: 0 0 6px; font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); }
.fopp-login-intro p { margin: 0; color: var(--muted); font-size: 16px; }

.login form {
	margin: 0; padding: 0; background: none; border: 0; box-shadow: none; overflow: visible;
}
.login label { margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.login form .input, .login input[type="text"], .login input[type="password"], .login input[type="email"], .login input[type="number"] {
	min-height: 50px; margin: 0 0 18px; padding: 10px 14px; font-family: var(--text); font-size: 16px; line-height: 1.4;
	color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; box-shadow: none;
}
.login form .input:focus, .login input[type="text"]:focus, .login input[type="password"]:focus, .login input[type="email"]:focus {
	border-color: var(--ink); box-shadow: 0 0 0 3px rgba(244, 180, 26, .45); outline: none;
}
.login .wp-pwd .button.wp-hide-pw { min-height: 50px; height: 50px; color: var(--muted); }
.login .wp-pwd .button.wp-hide-pw:focus { box-shadow: 0 0 0 3px rgba(244, 180, 26, .45); border-color: transparent; }
.login .button.wp-hide-pw .dashicons { top: .3rem; }

.login .forgetmenot { display: flex; align-items: center; gap: 6px; float: none; margin: 2px 0 22px; }
.login .forgetmenot label { margin: 0; font-weight: 600; font-size: 14.5px; }
.login input[type="checkbox"] { width: 18px; height: 18px; border: 1.5px solid #9DA39C; border-radius: 4px; box-shadow: none; }
.login input[type="checkbox"]:checked::before { filter: brightness(0); }
.login input[type="checkbox"]:focus { box-shadow: 0 0 0 3px rgba(244, 180, 26, .45); border-color: var(--ink); }
.login .wp-tooltip__toggle { color: var(--muted); }

.login .submit { float: none; margin: 0; }
.login .button-primary, .wp-core-ui .button-primary.button-large {
	float: none; width: 100%; height: auto; min-height: 52px; padding: 12px 24px; line-height: 1.2; font-family: var(--text); font-size: 16px; font-weight: 700;
	color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 999px; box-shadow: none; text-shadow: none;
	transition: background-color .2s, transform .2s;
}
.login .button-primary:hover, .login .button-primary:focus { color: var(--accent-ink); background: var(--accent-hover); }
.login .button-primary:focus { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.login .button-primary:active { transform: translateY(1px); }
.login .button-secondary:not(.wp-hide-pw) { min-height: 44px; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; padding: 6px 18px; }

.login #nav, .login #backtoblog { margin: 22px 0 0; padding: 0; font-size: 15px; text-align: left; }
.login #backtoblog { margin-top: 10px; }
.login #nav a, .login #backtoblog a, .login .privacy-policy-page-link a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.login #nav a:hover, .login #backtoblog a:hover { color: var(--gold-text); }

/* Messages and errors */
.login .message, .login .notice, .login .success, .login #login_error {
	margin: 0 0 20px; padding: 12px 16px; border: 0; border-left: 4px solid var(--accent); border-radius: 8px;
	background: #FFF5D9; box-shadow: none; font-size: 15px; color: var(--ink);
}
.login #login_error, .login .notice-error { border-left-color: #9B2C1F; background: #F8E4E0; }
.login .success, .login .notice-success { border-left-color: #12684A; background: #E1F0E8; }
.login #login_error a { color: inherit; font-weight: 700; }

.login .privacy-policy-page-link { text-align: left; max-width: 400px; margin: 0 auto; padding: 0 24px; }

/* Limit Login Attempts notice, kept but quiet */
#llar-login-page-gdpr {
	position: static; max-width: 400px; width: 100%; margin: auto auto 0; padding: 0 24px 28px;
	background: none; border: 0; box-shadow: none; box-sizing: border-box;
}
#llar-login-page-gdpr .llar-login-page-gdpr__message { color: var(--muted); font-size: 12.5px; line-height: 1.5; padding: 0; }
#llar-login-page-gdpr .llar-login-page-gdpr__close { display: none; }

@media (max-width: 860px) {
	body.login { padding-left: 0; }
	.fopp-login-panel { position: static; width: auto; padding: 22px 24px; background: var(--night); }
	.fopp-login-panel__copy { display: none; }
	#login { padding-top: 36px; }
}
