@CHARSET "UTF-8";

/* PROPS-3590 — Redesigned Login Page (PropStream only). Scoped under body.redesign
   so other brands/winback keep the original layout. Values match Figma dev-mode CSS. */

body.redesign {
	--login-orange-500: #F16722; /* brand orange, reused from style.css */
	--login-orange-600: #D8571A;
	--login-orange-700: #B84813;
	--login-error-500: #CA1551; /* Figma: Rose/500 */
	--login-border-default: #DFE1E4; /* Figma: Grey/200 */
	--login-placeholder: #808894; /* Figma: Grey/600 */
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	margin: 0;
	overflow: hidden;
}

body.redesign #form-outer {
	position: relative;
	height: 100vh;
	overflow-x: hidden;
	overflow-y: auto; /* page-level scroll when the card grows taller than 100vh */
	background-color: var(--Grey-800, #3C4654);
}

/* fixed (not absolute) so the background always covers the viewport even when
   the card grows taller than 100vh and #form-outer scrolls */
body.redesign #bg-layer {
	position: fixed;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Figma "Frame 42" gradient overlay; fixed for the same reason as #bg-layer */
body.redesign #bg-gradient-overlay {
	position: fixed;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0) 13.42%, rgba(0, 0, 0, 0.2) 94.59%);
	pointer-events: none;
}

body.redesign #form-container {
	position: relative;
	z-index: 2;
	height: 100%;
	display: block;
	overflow: visible;
}

/* Figma "Form": 432 wide, padding 32/64, radius 12, two-layer shadow. Pinned to
   top with min-height (not top+bottom pin) so the card can grow past 100vh;
   flex column so .form-sides fills it via flex-grow (height:100% didn't
   reliably resolve through this many block ancestors). */
body.redesign #form-inner {
	position: absolute;
	top: 32px;
	bottom: auto;
	min-height: calc(100vh - 64px);
	right: 32px;
	width: 432px;
	min-width: 0;
	max-width: calc(100% - 48px);
	margin: 0;
	background: var(--White, #FFF);
	border-radius: 12px;
	box-shadow: 0px 20px 25px rgba(0, 0, 0, 0.08), 0px 2px 16px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
}

body.redesign .form-sides {
	position: static;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
}

/* overrides style.css's legacy #form-left (max-height:90%, align-items:center,
   min-height:644px) which left unfilled space and shrink-wrapped content */
body.redesign #form-left {
	width: 100%;
	min-height: 0;
	max-height: none;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	padding-bottom: 0;
}

body.redesign #form-right {
	display: none; /* superseded by #bg-layer */
}

/* Figma "Sign In Form": 3 children (logo, .content-middle, #copyright),
   gap:96px + space-between per Figma Layout panel; min-height:630px is
   Figma's literal spec, shrinks no further via flex. */
body.redesign #form-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 96px;
	flex: 1 1 auto;
	min-height: 630px;
	box-sizing: border-box;
	width: auto;
	margin: 0;
	padding: 64px 64px 32px 64px;
	text-align: center;
}

/* margin:0 overrides login.jsp's inline margin-top/bottom (spacing now comes
   from #form-content's gap); !important beats style.css's mobile
   display:none !important that otherwise hides the logo below 600px */
body.redesign #form-logo-container {
	display: block !important;
	margin: 0;
	text-align: center;
	flex-shrink: 0;
}

/* Fixed 229x75 per Figma, rather than the image's own aspect ratio */
body.redesign #form-logo-container img {
	width: 229px;
	height: 75px;
}

/* Groups logo-to-copyright content as one flex item so #form-content's
   space-between treats it as a single unit. min/max-height per Figma "Frame
   30"; overflow:visible so a present holiday message is never clipped. */
body.redesign .content-middle {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	width: 100%;
	min-height: 405px;
	max-height: 534px;
	overflow: visible;
}

body.redesign .welcome-header {
	width: 255px;
	max-width: 100%;
}

body.redesign .welcome-header h1 {
	margin: 0;
	font-size: 36px;
	line-height: 150%;
	font-weight: 600;
	color: var(--Grey-800, #3C4654);
}

body.redesign .welcome-header .brand-highlight {
	color: var(--login-orange-500);
}

body.redesign .welcome-subtext {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 150%;
	color: var(--Grey-700, #66707D);
}

/* full-width children below the headline: form, links, divider, support hours */
body.redesign #loginForm,
body.redesign .divider,
body.redesign .support-hours {
	align-self: stretch;
	width: 100%;
	box-sizing: border-box;
}

body.redesign #loginForm {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
body.redesign #form-inner #loginForm + .subtext {
	margin-top: -12px;
}

/* Figma "Frame 41" */
body.redesign .input-fields {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Figma "Frame 87" */
body.redesign .button-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

body.redesign .input-group {
	position: relative;
}

/* Figma Input Field spec; scoped with #form-inner to beat style.css's ID-selector
   input rule (font-size:13px, radius:4px, height:42px) on specificity */
body.redesign #form-inner .input-group .styled-input {
	width: 100%;
	height: 44px;
	box-sizing: border-box;
	border: 1px solid var(--login-border-default);
	border-radius: 12px;
	padding: 0 16px;
	margin: 0;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	color: var(--Grey-800, #3C4654);
	background: var(--White, #FFF);
	transition: border-color 0.15s ease;
}

body.redesign #form-inner .input-group .styled-input::placeholder {
	color: var(--login-placeholder);
}

body.redesign #form-inner .input-group .styled-input:hover {
	border-width: 2px;
}

body.redesign #form-inner .input-group .styled-input:focus {
	outline: none;
	border-width: 2px;
	border-color: var(--Teal-500, #128292);
}

body.redesign #form-inner .input-group.password-input-wrapper .styled-input {
	padding-right: 48px;
}

/* Figma error state is always 1px solid #CA1551, even while focused — without
   this, a field that's both focused and in error inherits :focus's 2px width */
body.redesign #form-inner .input-group.input-error .styled-input {
	border-width: 1px;
	border-color: var(--login-error-500);
}

/* Figma "Error Message" */
body.redesign .field-error-text {
	margin-top: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 150%;
	color: var(--login-error-500);
	text-align: left;
}

/* Figma "An unexpected error occurred..." message */
body.redesign .form-error-text {
	font-size: 14px;
	font-weight: 600;
	line-height: 150%;
	color: var(--login-error-500);
	text-align: center;
}

/* icon shows only when focused/filled (Figma Frame 52), hidden by default.
   top:22px (half the 44px input height), not 50% — 50% would center within
   the taller .input-group when an error message is also showing. */
body.redesign .password-toggle-icon {
	position: absolute;
	right: 12px;
	top: 22px;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	display: none;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 0;
}

body.redesign #form-inner .input-group .styled-input:focus ~ .password-toggle-icon,
body.redesign #form-inner .input-group .styled-input:not(:placeholder-shown) ~ .password-toggle-icon {
	display: flex;
}

body.redesign .password-toggle-icon svg {
	width: 100%;
	height: 100%;
	fill: var(--Teal-500, #128292);
}

/* Figma "Buttons/Text Button" */
body.redesign .btn-primary {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 44px;
	box-sizing: border-box;
	border: none;
	border-radius: 50px;
	background: var(--login-orange-500);
	color: var(--White, #FFF);
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
	outline: none;
	box-shadow: none;
}

body.redesign .btn-primary:hover,
body.redesign .btn-primary:active,
body.redesign .btn-primary:focus {
	outline: none;
	box-shadow: none;
}

body.redesign .btn-primary .btnText {
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 18px; /* Figma: 100%, "identical to box height" — browser default line-height otherwise exceeds the explicit 18px box */
	color: inherit;
	width: 53px;
	height: 18px;
	text-align: center; /* fixed-width flex item was left-aligning its own text by default */
}

body.redesign .btn-primary:hover {
	background: var(--login-orange-600);
}

body.redesign .btn-primary:active {
	background: var(--login-orange-700);
}

body.redesign .btn-primary:disabled {
	cursor: default;
}

body.redesign .btn-primary.loading .btnText {
	visibility: hidden;
}

/* PropStream's actual shared spinner (src/components/base/SVG/spinnerLoader.scss
   in the main app, the "l4" box-shadow loader behind every <SVG icon="spinner">)
   ported here 1:1 — two orbiting blobs clipped via an animated inset, recolored
   to white the same way LoadingButtonSpinner does for buttons. */
body.redesign .btn-primary .btn-loading-icon {
	display: none;
	position: absolute;
	box-sizing: border-box;
	width: 30px;
	height: 30px;
	container-type: size;
}

body.redesign .btn-primary.loading .btn-loading-icon {
	display: inline-block;
}

body.redesign .btn-primary .btn-loading-icon::before,
body.redesign .btn-primary .btn-loading-icon::after {
	content: "";
	position: absolute;
	border-radius: 77cqmin;
	box-shadow: 0 0 0 31cqmin inset var(--White, #FFF);
	animation: login-btn-spin-l4 3s infinite;
}

body.redesign .btn-primary .btn-loading-icon::after {
	animation-delay: -1.5s;
}

@keyframes login-btn-spin-l4 {
	0%    { inset: 0 53.125% 53.125% 0; }
	12.5% { inset: 0 0 53.125% 0; }
	25%   { inset: 0 0 53.125% 53.125%; }
	37.5% { inset: 0 0 0 53.125%; }
	50%   { inset: 53.125% 0 0 53.125%; }
	62.5% { inset: 53.125% 0 0 0; }
	75%   { inset: 53.125% 53.125% 0 0; }
	87.5% { inset: 0 53.125% 0 0; }
	100%  { inset: 0 53.125% 53.125% 0; }
}

/* Figma "Inline Text Button" links; #form-inner scope beats style.css's ID-selector
   .subtext rule (margin-top:20px, font-size:13px) on specificity */
body.redesign #form-inner .subtext {
	margin-top: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 150%;
	color: var(--Grey-700, #66707D);
	text-align: center;
}

/* matches includes.jsp's ".login #form-inner a" ID selector to override brand orange */
body.redesign #form-inner .subtext a {
	color: var(--Teal-500, #128292);
	text-decoration: none;
}

/* Figma link states: hover = Teal/700 + underline, pressed = Teal/900 + underline */
body.redesign #form-inner .subtext a:hover {
	color: #0E6673;
	text-decoration: underline;
}

body.redesign #form-inner .subtext a:active {
	color: #0A464F;
	text-decoration: underline;
}

/* overrides style.css's legacy #account-footer (border-top, margin:70px auto) */
body.redesign #account-footer {
	display: flex;
	justify-content: center;
	border-top: none;
	margin: 0;
	padding-top: 0;
	margin-top: -12px;
}

/* Figma "Vector 1" */
body.redesign .divider {
	height: 0;
	border-top: 1px solid var(--Grey-300, #CED1D6);
}

body.redesign .support-hours {
	font-size: 14px;
	font-weight: 500;
	line-height: 150%;
	color: var(--Grey-700, #66707D);
	text-align: center;
}

/* Figma "Frame 97" holiday message: teal/50 box, rounded 12px, rotated icon.
   Wraps the server-configured s.holidayMessage string to match spec and contain it. */
body.redesign .holiday-message {
	align-self: stretch;
	box-sizing: border-box;
	max-width: 100%;
	overflow: visible; /* hidden clipped wrapped lines once the icon narrowed the text column */
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	background: #E2F7FA;
	border-radius: 12px;
}

/* Figma "Vector": icon's own silhouette, not a circular badge */
body.redesign .holiday-message-icon {
	flex: none;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94C9D1;
	transform: rotate(-10deg);
}

body.redesign .holiday-message-icon svg {
	width: 100%;
	height: 100%;
}

body.redesign .holiday-message-text {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: break-word;
	font-size: 14px;
	font-weight: 600;
	line-height: 150%;
	color: var(--Teal-500, #128292);
	text-align: left;
}

/* strips s.holidayMessage's pre-existing inline box styling so it renders as
   plain text inside our .holiday-message container instead of a nested box */
body.redesign .holiday-message-text * {
	all: unset !important;
	max-height: none !important;
	height: auto !important;
	overflow: visible !important;
	color: inherit !important;
	font: inherit !important;
	line-height: inherit !important;
}

/* Figma copyright: width 304 (Hug) x height 36 (Fixed) — fixed width forces
   the 2-line wrap; explicit height:36px overrides the browser's auto 40px.
   Direct child of #form-content now, so it uses that padding/centering.
   !important beats style.css's mobile display:none !important (see logo above). */
body.redesign #form-inner #copyright {
	display: block !important;
	position: static !important;
	flex-shrink: 0 !important;
	box-sizing: border-box;
	width: 304px;
	height: 36px;
	max-width: 100%;
	overflow-wrap: break-word;
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
	text-align: center;
	color: var(--Grey-700, #66707D);
}

/* <sup> raises "&reg;" via vertical-align, but its own line-height also
   contributes to the line box, inflating it ~4px past the set 18px — zeroing
   it out here stops that without affecting the visual raise */
body.redesign #form-inner #copyright sup {
	line-height: 0;
}

/* matches style.css's two-ID selector to override brand orange to teal.
   margin widens the gap between Cookie Policy / Privacy Policy / Public
   Search to match Figma's visual spacing (wider than a plain text space) */
body.redesign #form-outer #copyright a {
	color: var(--Teal-500, #128292);
	margin: 0 4px;
}

/* Figma link states: hover = Teal/700 + underline, pressed = Teal/900 + underline */
body.redesign #form-outer #copyright a:hover {
	color: #0E6673;
	text-decoration: underline;
}

body.redesign #form-outer #copyright a:active {
	color: #0A464F;
	text-decoration: underline;
}

/* Mobile / small tablet — hide the full-bleed background entirely per PRD */
@media (max-width: 768px) {

	body.redesign {
		overflow: visible;
	}

	body.redesign #bg-layer,
	body.redesign #bg-gradient-overlay {
		display: none;
	}

	body.redesign #form-outer {
		height: auto;
		min-height: 100vh;
		overflow-y: auto;
	}

	body.redesign #form-container {
		height: auto;
	}

	/* min-height floor replaces the top/bottom pin used above 768px; #form-outer
	   scrolls the whole page here instead of an internal scrollbar */
	body.redesign #form-inner {
		position: static;
		top: auto;
		bottom: auto;
		width: 100%;
		max-width: none;
		min-height: 100vh;
		border-radius: 0;
		box-shadow: none;
	}

	/* padding-bottom stays 32px — #copyright is a direct child of #form-content
	   now and needs it for clearance from the screen edge */
	body.redesign #form-content {
		padding: 32px 24px 32px 24px;
	}
}
