@charset "UTF-8";
/**
 * Unified Login — standalone branded login page styles
 *
 * Extracted from inline <style> block in unified-login.php in v1.8.230.
 * Loaded by the template via a <link rel="stylesheet"> in its <head>.
 *
 * This page is a fully self-contained HTML document (no CRM shell, no
 * theme) — it renders for /dashboard/ and similar unified login
 * entry points. The standalone nature means it ships its own complete
 * stylesheet rather than relying on inherited CRM/theme styles.
 *
 * @package MLS_Genie
 * @since   1.7.467
 */

/* ── Reset ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

/* ── Brand tokens from client settings ── */
/* Brand colors are set per-installation via an inline `style="--ul-primary:..."` */
/* attribute on the <html> element in the template (HTML carries configuration  */
/* data, this stylesheet stays static). Defaults below are MLS Genie brand and  */
/* render if the installation has no brand override configured.                 */
:root {
	--ul-primary:   #1e88e5;
	--ul-dark:      #0d47a1;
	--ul-neutral:   #64748b;
	--ul-bg:        #f1f5f9;
	--ul-surface:   #ffffff;
	--ul-border:    #e2e8f0;
	--ul-text:      #1e293b;
	--ul-muted:     #64748b;
	--ul-error:     #dc2626;
	--ul-radius:    12px;
}

/* ── Layout ── */
html,body{min-height:100%;background:#fff;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;}

.ul-page{
	min-height:100dvh;
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	padding:24px 16px;
}

/* ── Card ── */
.ul-card{
	width:100%;
	max-width:400px;
	/* Unitless, so a theme that sets body line-height in px or em (e.g.
	   1.5em computes to a fixed 30px) cannot leak into this form. */
	line-height:1.5;
	padding:32px 28px 28px;
	display:flex;
	flex-direction:column;
	gap:16px;
}
/* .ul-card sets its own display:flex at the same specificity as the
   browser's built-in [hidden]{display:none}, and author styles win a tie —
   so without this, the hidden attribute on the step-2 code card is
   silently ignored and both steps render at once. */
.ul-card[hidden]{display:none;}

/* ── Logo / brand ── */
.ul-brand{
	text-align:center;
	display:flex;
	flex-direction:column;
	align-items:center;
	gap:10px;
}
.ul-brand__logo-link{display:block;line-height:0;}
.ul-brand__logo{width:280px;max-width:100%;object-fit:contain;display:block;}
.ul-brand__name{
	font-size:22px;
	font-weight:800;
	color:var(--ul-dark);
	letter-spacing:-.03em;
}
/* The page heading: a real heading for screen readers, drawn as the quiet line under the logo. */
.ul-brand__sub{margin:0;font-size:0.9375rem;font-weight:500;line-height:1.4;color:var(--ul-muted);}

/* ── Error ── */
.ul-error{
	/* Tokens, with the old literals as fallbacks: this stylesheet loads on
	   the sign-in page, which renders before the shell's token sheet. */
	background:var(--mlsg-danger-bg, #fef2f2);
	border:1px solid var(--mlsg-danger-border, #fecaca);
	border-radius:8px;
	padding:10px 14px;
	font-size:13px;
	color:var(--ul-error);
	display:none;
}
.ul-error.is-visible{display:block;}
.ul-error.is-info{background:#f0fdf4;border-color:#bbf7d0;color:#15803d;}

/* ── Google button ── */
.ul-google-btn{
	display:flex;
	align-items:center;
	justify-content:center;
	gap:10px;
	width:100%;
	height:44px;
	background:#fff;
	border:1.5px solid var(--ul-border);
	border-radius:8px;
	font-size:14px;
	font-weight:600;
	color:var(--ul-text);
	cursor:pointer;
	text-decoration:none;
	transition:border-color .15s,box-shadow .15s;
}
.ul-google-btn:hover{
	border-color:var(--ul-primary);
	box-shadow:0 0 0 3px color-mix(in srgb, var(--ul-primary) 15%, transparent);
}
.ul-google-btn svg{flex-shrink:0;}

/* ── Divider ── */
.ul-divider{
	display:flex;
	align-items:center;
	gap:12px;
	color:var(--ul-muted);
	font-size:12px;
}
.ul-divider::before,.ul-divider::after{
	content:'';
	flex:1;
	height:1px;
	background:var(--ul-border);
}

/* ── Form fields ── */
.ul-field{display:flex;flex-direction:column;gap:5px;}
.ul-field label{font-size:13px;font-weight:600;color:var(--ul-text);}
.ul-field input{
	height:42px;
	padding:0 12px;
	border:1.5px solid var(--ul-border);
	border-radius:8px;
	font-size:14px;
	font-family:inherit;
	color:var(--ul-text);
	background:#fff;
	transition:border-color .15s;
	width:100%;
}
.ul-field input:focus{
	outline:none;
	border-color:var(--ul-primary);
	box-shadow:0 0 0 3px color-mix(in srgb, var(--ul-primary) 15%, transparent);
}

/* ── Password wrapper ── */
.ul-pw-wrap{position:relative;}
.ul-pw-wrap input{padding-right:44px;}
.ul-pw-toggle{
	position:absolute;
	right:0;top:0;bottom:0;
	width:42px;
	background:none;border:none;
	cursor:pointer;
	color:var(--ul-muted);
	display:flex;align-items:center;justify-content:center;
}

/* ── Submit ── */
.ul-submit{
	width:100%;
	height:44px;
	background:var(--ul-primary);
	color:#fff;
	border:none;
	border-radius:8px;
	font-size:15px;
	font-weight:700;
	font-family:inherit;
	cursor:pointer;
	transition:filter .15s;
	display:flex;align-items:center;justify-content:center;gap:8px;
}
.ul-submit:hover{filter:brightness(.9);}
.ul-submit:disabled{opacity:.6;pointer-events:none;}

/* ── Spinner ── */
.ul-spinner{
	width:18px;height:18px;
	border:2px solid rgba(255,255,255,.3);
	border-top-color:#fff;
	border-radius:50%;
	animation:ul-spin .6s linear infinite;
	display:none;
}
.ul-spinner.is-visible{display:block;}
@keyframes ul-spin{to{transform:rotate(360deg)}}

/* ── Forgot password link ── */
.ul-forgot{
	text-align:center;
	font-size:13px;
	margin-top:-4px;
}
.ul-forgot a{
	color:var(--ul-muted);
	text-decoration:none;
	transition:color .15s;
}
.ul-forgot a:hover{
	color:var(--ul-primary);
	text-decoration:underline;
}
.ul-forgot a:focus-visible{
	outline:2px solid var(--ul-primary);
	outline-offset:2px;
	border-radius:4px;
}

/* ── Footer ── */
.ul-footer{text-align:center;font-size:12px;color:var(--ul-muted);}

/* ── Registration: name row ── */
.ul-name-row{display:flex;gap:12px;}
.ul-name-row .ul-field{flex:1;min-width:0;}

/* ── Registration: optional-label tag ── */
.ul-optional{font-weight:400;color:var(--ul-muted);}

/* ── Registration: code-step copy ── */
.ul-code-copy{font-size:13px;color:var(--ul-muted);line-height:1.5;text-align:center;}

/* ── Registration: persona picker ── */
.ul-persona{display:flex;gap:8px;}
.ul-persona__option{
	flex:1;
	height:38px;
	background:#fff;
	border:1.5px solid var(--ul-border);
	border-radius:8px;
	font-size:13px;
	font-weight:600;
	font-family:inherit;
	color:var(--ul-text);
	cursor:pointer;
	transition:border-color .15s,background .15s,color .15s;
}
.ul-persona__option:hover{border-color:var(--ul-primary);}
.ul-persona__option.is-selected{
	background:var(--ul-primary);
	border-color:var(--ul-primary);
	color:#fff;
}

/* ── Consent (registration) ── */
.ul-consent{
	display:flex;
	flex-direction:column;
	gap:10px;
	margin:4px 0;
}
.ul-consent__row{
	display:flex;
	align-items:flex-start;
	gap:0.625rem;
	font-size:0.9375rem;
	line-height:1.5;
	color:var(--ul-text);
	cursor:pointer;
}
/* 1.125rem box centred on the first 1.5-line of 0.9375rem text. */
.ul-consent__row input[type="checkbox"]{
	width:1.125rem;
	height:1.125rem;
	margin:0.140625rem 0 0;
	flex-shrink:0;
	accent-color:var(--ul-primary);
}
.ul-consent__row--terms{
	font-size:11px;
	line-height:1.5;
	color:var(--ul-text-muted, #6b7280);
}
.ul-consent__row--terms a{
	color:var(--ul-primary);
	text-decoration:underline;
}
.ul-consent__row--terms a:hover{
	text-decoration:none;
}

/* ── Mobile ── */
@media(max-width:440px){
	.ul-card{padding:28px 20px 24px;border-radius:16px;}
	.ul-name-row{flex-direction:column;gap:16px;}
}

/* ── TCPA disclosure (registration, v2.0.71) ──
   Replaced the consent tick-box: consent is given by submitting the form, so
   the disclosure has to be legible rather than tucked away. Deliberately not
   as small as fine print — it is the record of what the client agreed to. */
.ul-consent--disclosure{
	margin:8px 0 0;
}
.ul-consent__disclosure{
	margin:0;
	font-size:11px;
	line-height:1.55;
	color:var(--ul-text-muted, #6b7280);
}
.ul-consent__disclosure a{
	color:var(--ul-primary);
	text-decoration:underline;
}
.ul-consent__disclosure a:hover{
	text-decoration:none;
}

/* ── Password reset panel (v2.0.73) ──
   Reset happens inside the modal now rather than on the WordPress login
   screen, so these carry the same look as the sign-in and register panels. */
.ul-linkbtn{
	background:none;
	border:none;
	padding:0;
	font:inherit;
	color:var(--ul-primary);
	text-decoration:underline;
	cursor:pointer;
}
.ul-linkbtn:hover{
	text-decoration:none;
}
.ul-reset-intro{
	margin:0;
	font-size:13px;
	line-height:1.55;
	color:var(--ul-text-muted, #6b7280);
}
.ul-notice{
	padding:10px 12px;
	border-radius:8px;
	background:var(--mlsg-teal-bg, #f2f9fe);
	border:1px solid var(--ul-border, #e5e7eb);
	font-size:13px;
	line-height:1.5;
	color:var(--ul-text);
}

/* ── Set New Password page (v2.0.75) ──
   Reset now finishes inside the brand rather than on the WordPress login
   screen. Reuses .ul-page / .ul-card / .ul-brand; only the form needs its
   own spacing. */
.ul-reset-form{
	display:flex;
	flex-direction:column;
	gap:16px;
}
.ul-reset-heading{
	font-size:18px;
	text-align:center;
	margin:0;
}

/* ── Sign-up: "I am a" and opt-in boxes (v2.1.948) ──
   templates/shell/signup-profile-fields.php, shared by /register/ and the
   sign-up pop-up. "I am a" is a set of radios drawn as the existing persona
   buttons, so it is keyboard-reachable and announced as one choice. The
   opt-in boxes start unticked; their small print is what the consent history
   stores. */
.mlsg-signup__group{
	margin:0;
	padding:0;
	border:0;
	min-width:0;
}
.mlsg-signup__group legend{
	padding:0;
	margin-bottom:5px;
	font-size:0.8125rem;
	font-weight:600;
	color:var(--ul-text);
}
.mlsg-signup__req{
	color:var(--ul-error);
}
.mlsg-signup__answers{
	flex-wrap:wrap;
	gap:0.5rem;
}
/* Three per row: two even rows for the six answers. */
.mlsg-signup__choice{
	position:relative;
	display:flex;
	flex:0 0 calc((100% - 1rem) / 3);
	min-width:0;
	cursor:pointer;
}
@media(max-width:440px){
	.mlsg-signup__choice{flex-basis:calc((100% - 0.5rem) / 2);}
}
.mlsg-signup__choice input{
	position:absolute;
	width:1px;
	height:1px;
	opacity:0;
}
.mlsg-signup__choice .ul-persona__option{
	/* Drawn only by its outline, so it has to reach 3:1 on white. */
	border-color:color-mix(in srgb, var(--ul-muted) 75%, var(--ul-surface));
	display:flex;
	align-items:center;
	justify-content:center;
	width:100%;
	height:auto;
	min-height:2.75rem;
	padding:0.5rem 0.625rem;
	font-size:0.9375rem;
	line-height:1.25;
	text-align:center;
}
.mlsg-signup__choice input:checked + .ul-persona__option{
	background:var(--ul-primary);
	border-color:var(--ul-primary);
	color:var(--ul-surface);
}
.mlsg-signup__choice input:focus-visible + .ul-persona__option{
	outline:2px solid var(--ul-primary);
	outline-offset:2px;
}
.mlsg-signup__small{
	display:block;
	margin-top:2px;
	font-size:0.8125rem;
	line-height:1.5;
	color:var(--ul-muted);
}
.ul-consent .screen-reader-text{
	position:absolute;
	width:1px;
	height:1px;
	overflow:hidden;
	clip:rect(0 0 0 0);
	white-space:nowrap;
}

/* "Email me a sign-in link": the field and its button, spaced like the card (2.1.1603). */
.ul-link-form{display:flex;flex-direction:column;gap:16px;}
.ul-link-lead{margin:0;font-size:1rem;color:var(--ul-text);text-align:center;}
