#login h1 a,
.login h1 a,
#login h1 .ppf-login-brand,
.login h1 .ppf-login-brand {
	display: block;
	padding-bottom: 30px;
}

/* Placeholder shown only for the brief moment before login.js (footer-enqueued)
   replaces this link with the real <img> or the text fallback. The SVG's own
   viewBox is 320x80 (4:1) — 25px height keeps it at the same 100px-wide scale
   used everywhere else here. */
#login h1 a,
.login h1 a {
	background-image: url('../images/ppf-login-logo.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	width: 100px;
	height: 25px;
	margin: 0 auto;
}

/* Business logo — capped to a max width, height scales automatically to
   preserve its natural aspect ratio. Matches the CLIENT plugin's
   .ppf-quotes-chat-logo sizing approach (chat.css), using width as the
   constraint since logos vary in aspect ratio per business. */
#login h1 img.ppf-login-brand,
.login h1 img.ppf-login-brand {
	max-width: 100px;
	height: auto;
	margin: 0 auto;
}

/* Text fallback — shown when no business logo is configured. */
.ppf-login-text-logo {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-indent: 0 !important;
	overflow: visible !important;
	text-decoration: none;
}

.ppf-login-text-logo__name {
	display: block;
	font-size: 1.55rem;
	font-weight: 700;
	color: #1d2327;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.ppf-login-text-logo__subtitle {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: #6b7280;
	margin-top: 5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ========================================
   MODERN SAAS LOGIN PAGE
   ========================================
   The logo/brand area above was the only thing previously customized —
   the actual login form (the white card, inputs, button, links, error
   messages) was 100% stock WordPress. This is a self-contained page with
   no shared token system to import from (no .ppf-quotes-admin-page
   wrapper here, no dark-mode toggle infrastructure), so brand colors are
   literal hex values matching this plugin's admin design system
   (assets/css/admin-design-system.css's --ppf-brand family) rather than
   CSS custom properties.
   @since 4.7.7 */

body.login {
	background: #f0f2f5;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* The form card itself */
#login form#loginform,
#login form#registerform,
#login form#lostpasswordform,
#login form#resetpassform {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 4px 8px rgba(15, 23, 42, 0.04);
	padding: 32px 32px 26px;
}

#login form .forgetmenot {
	margin-bottom: 16px;
}

#login label {
	color: #334155;
	font-size: 13.5px;
	font-weight: 500;
}

/* Text inputs */
#login form input[type="text"],
#login form input[type="password"],
#login form input[type="email"] {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: none;
	color: #0f172a;
	font-size: 15px;
	padding: 9px 12px;
}

#login form input[type="text"]:focus,
#login form input[type="password"]:focus,
#login form input[type="email"]:focus {
	border-color: #2a78d6;
	box-shadow: 0 0 0 3px rgba(42, 120, 214, 0.15);
	outline: none;
}

#login form .input {
	box-shadow: none;
}

/* Primary submit button */
#login form .button-primary,
#login form .wp-core-ui .button-primary,
.wp-core-ui #login form .button-primary {
	background: #2a78d6;
	border: 1px solid #184f95;
	border-radius: 8px;
	box-shadow: none;
	font-size: 14px;
	font-weight: 600;
	height: auto;
	letter-spacing: 0.01em;
	line-height: 1.4;
	padding: 9px 18px;
	text-shadow: none;
	transition: background 0.15s ease, box-shadow 0.15s ease;
	width: 100%;
}

#login form .button-primary:hover,
#login form .button-primary:focus {
	background: #184f95;
	border-color: #184f95;
	box-shadow: 0 3px 8px rgba(42, 120, 214, 0.3);
}

/* Links below the form: lost password, back-to-site, register */
#nav,
#backtoblog {
	margin-top: 16px;
}

#nav a,
#backtoblog a {
	color: #64748b;
	font-size: 13px;
	text-decoration: none;
}

#nav a:hover,
#backtoblog a:hover {
	color: #2a78d6;
	text-decoration: underline;
}

/* Error / info messages (invalid password, password reset sent, etc.) */
#login .message,
#login #login_error {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-left: 4px solid #2a78d6;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	color: #334155;
	padding: 12px 14px;
}

#login #login_error {
	border-left-color: #ef4444;
}

#login .message {
	border-left-color: #10b981;
}

/* Checkbox accent color, where the browser supports it */
#login form input[type="checkbox"] {
	accent-color: #2a78d6;
}
