@CHARSET "UTF-8";

/* includes.jsp only loads Roboto — Inter is needed for the redesign's true letterforms */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* PROPS-3590 — Redesigned Login Page (PropStream only), scoped under body.redesign */

body.redesign {
	--login-orange-500: #F16722;
	--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 #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 — pinned via min-height so the card can grow past 100vh */
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 sizing which left unfilled space */
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": gap:96px + space-between between logo, .content-middle, #copyright */
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;
}

/* Pages with a back-button use a 32px top gap instead of 64px */
body.redesign #form-content:has(.back-button) {
	padding-top: 32px;
}

/* margin:0 overrides login.jsp's inline margins; !important beats style.css's mobile hide rule */
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 as one flex item so #form-content's space-between treats it as a unit */
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);
}

/* ATAI-240 — Reset Password/Check Your Email/Link Expired headers are 30px, full 304px width */
body.redesign .welcome-header.compact {
	width: 100%;
}

body.redesign .welcome-header.compact h1 {
	font-size: 30px;
}

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);
}

body.redesign #loginForm,
body.redesign #passwordForm,
body.redesign #resendForm,
body.redesign #resetPasswordForm,
body.redesign .divider,
body.redesign .support-hours {
	align-self: stretch;
	width: 100%;
	box-sizing: border-box;
}

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

/* #resendForm uses .button-group's 8px gap, not the 12px used for input+button forms */
body.redesign #resendForm {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* 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; #form-inner scope beats style.css's ID-selector input rule */
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);
	/* Figma "State=Active": background reverts to white on focus (matters on Grey/50 default fields) */
	background: var(--White, #FFF);
}

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

/* ATAI-240 — collapse .password-mismatch-error's reserved space until .show is added */
body.redesign .password-mismatch-error {
	margin-top: 0;
	min-height: 0;
	display: none;
}

body.redesign .password-mismatch-error.show {
	display: block;
	margin-top: 8px;
	min-height: 14px;
}

/* ATAI-240 — the READONLY email field on Set New Password uses Grey/50; password fields stay white */
body.redesign #resetPasswordForm #emailDisplay {
	background: #EFF2F6;
	/* style.css's global input:disabled rule forces Grey/500 !important — override back to Figma's Grey/800 */
	color: var(--Grey-800, #3C4654) !important;
}

/* Figma error state is always 1px solid, even while focused */
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); top:22px = half the 44px input height */
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: line-height 100% = 18px */
	color: inherit;
	height: 18px;
	white-space: nowrap;
	text-align: center;
}

/* Figma "Continue" label: 80x18px Hug, scoped to this button only */
body.redesign #passwordSubmitBtn .btnText {
	width: 80px;
}

/* Figma "Open PropStream" label: 218x18px Hug */
body.redesign #openMobileAppBtn .btnText {
	width: 218px;
}

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;
}

/* ATAI-240 — Reset Password's CTA is teal per Figma, unlike Login's orange button */
body.redesign .btn-primary.btn-teal {
	background: var(--Teal-500, #128292);
}

body.redesign .btn-primary.btn-teal:hover {
	background: #0E6673;
}

body.redesign .btn-primary.btn-teal:active {
	background: #0A464F;
}

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

/* Ported from the main app's shared spinner (spinnerLoader.scss "l4" loader) */
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 .subtext rule */
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;
}

/* ATAI-240 — "Forgot username?" block (Figma Frame 88) hugs narrower than the full column */
body.redesign .help-links {
	width: 258px;
	margin: 0 auto;
}

/* 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 */
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 inline styling so it renders as plain text */
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: 304x36 Fixed; !important beats style.css's mobile hide rule */
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);
}

/* zeroes <sup>'s own line-height so "&reg;" doesn't inflate the 18px box */
body.redesign #form-inner #copyright sup {
	line-height: 0;
}

/* overrides brand orange to teal; margin widens gap between footer links */
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 */
	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 for #copyright clearance from the screen edge */
	body.redesign #form-content {
		padding: 32px 24px 32px 24px;
	}

	/* Set New Password / Password Reset Confirmed keep a 64px top gap at this breakpoint too */
	body.redesign #form-content:has(#resetPasswordForm),
	body.redesign #form-content:has(#openMobileAppBtn) {
		padding-top: 64px;
	}

	/* mobile padding shrinks to 24px each side, widening the column past 304px — pin the button to Figma's fixed 304px width instead of stretching */
	body.redesign #openMobileAppBtn {
		width: 304px;
		margin: 0 auto;
	}
}

/* Figma "Buttons/Text Button": in-flow, left-aligned at the top of .content-middle */
body.redesign .back-button {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	padding: 0 19px;
	border: none;
	border-radius: 50px;
	background: var(--White, #FFF);
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 100%;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.15s ease;
}

/* #form-inner a in style.css is an ID selector that otherwise beats a plain .back-button rule */
body.redesign #form-inner .back-button {
	color: var(--Teal-500, #128292);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

body.redesign .back-button svg {
	flex-shrink: 0;
}

body.redesign .back-button span {
	width: 43px;
	height: 18px;
}

/* password.jsp only: below 768px the label swaps from "Back" to "PropStream App" */
body.redesign .back-button .back-button-label-mobile {
	display: none;
	width: auto;
}

@media (max-width: 768px) {
	body.redesign .back-button .back-button-label-desktop {
		display: none;
	}

	body.redesign .back-button .back-button-label-mobile {
		display: inline;
	}
}

/* Figma states: Default bg White/teal text, Hover bg Teal/700, Pressed bg Teal/900, white text */
body.redesign #form-inner .back-button:hover {
	background: #0E6673;
	color: var(--White, #FFF);
	text-decoration: none;
}

body.redesign #form-inner .back-button:active {
	background: #0A464F;
	color: var(--White, #FFF);
	text-decoration: none;
}

/* ATAI-240 — Figma "Frame 37": header+copy grouped as one zero-gap block */
body.redesign .header-copy-group {
	display: flex;
	flex-direction: column;
	width: 100%;
}

body.redesign .email-sent-copy-group {
	display: flex;
	flex-direction: column;
}

/* Figma "Frame 41": resend button + troubleshooting text grouped with a 12px gap */
body.redesign .resend-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

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

body.redesign .email-reflection {
	font-weight: 700;
	color: var(--Grey-700, #66707D);
	overflow-wrap: break-word;
}

/* Resend button: gray+disabled during cooldown, teal once enabled per Figma */
body.redesign .btn-resend {
	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-border-default, #DFE1E4);
	color: #99A0AA;
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	cursor: default;
	transition: background-color 0.15s ease, color 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
	outline: none;
	box-shadow: none;
}

body.redesign .btn-resend:not(:disabled) {
	background: var(--Teal-500, #128292);
	color: var(--White, #FFF);
	cursor: pointer;
}

body.redesign .btn-resend:not(:disabled):hover {
	background: #0E6673;
}

body.redesign .btn-resend:not(:disabled):active {
	background: #0A464F;
}

/* style.css's unscoped .btnText wins via inheritance priority — same fix as .btn-primary .btnText */
body.redesign .btn-resend .btnText {
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 18px;
	color: inherit;
	text-align: center;
}
