﻿/* =========================================================
   TEXAS PROCESS SERVERS ACADEMY
   LOGIN PAGE
   ========================================================= */

/* BANNER */
.tpsa-login-hero {
	position: relative;
	min-height: 245px;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: linear-gradient( 90deg, rgba(244, 250, 255, .99) 0%, rgba(232, 245, 255, .96) 42%, rgba(237, 247, 255, .72) 62%, rgba(237, 247, 255, .20) 100% ), url("../images/login-banner.jpg") right center / cover no-repeat;
	border-bottom: 1px solid #dce9f4;
}

	.tpsa-login-hero::before {
		content: "";
		position: absolute;
		right: -90px;
		top: -170px;
		width: 480px;
		height: 480px;
		border-radius: 50%;
		background: rgba(7,137,249,.055);
		pointer-events: none;
	}

	.tpsa-login-hero::after {
		content: "";
		position: absolute;
		right: 170px;
		bottom: -180px;
		width: 360px;
		height: 360px;
		border: 1px solid rgba(7,137,249,.12);
		border-radius: 50%;
		pointer-events: none;
	}

	.tpsa-login-hero > .container {
		position: relative;
		z-index: 2;
		width: 100%;
		max-width: 1170px;
		margin-left: auto;
		margin-right: auto;
		padding-left: 15px;
		padding-right: 15px;
	}

.tpsa-login-hero__content {
	max-width: 720px;
	padding: 45px 0;
	animation: tpsaLoginHeroIn .7s ease both;
}

.tpsa-login-hero__eyebrow {
	display: block;
	margin-bottom: 11px;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 600;
	color: #355d84;
	animation: tpsaLoginFadeUp .6s .10s ease both;
}

.tpsa-login-hero h1 {
	margin: 0 0 12px;
	font-size: 44px;
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -.7px;
	color: #082e62;
	animation: tpsaLoginFadeUp .65s .18s ease both;
}

.tpsa-login-hero p {
	max-width: 680px;
	margin: 0;
	font-size: 17px;
	line-height: 1.65;
	color: #35536f;
	animation: tpsaLoginFadeUp .65s .26s ease both;
}

/* MAIN */
.tpsa-login-section {
	padding: 60px 0 72px;
	background: linear-gradient(180deg,#fff 0%,#fff 70%,#f8fbfe 100%);
}

.tpsa-login-layout {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0,1fr) 430px;
	gap: 72px;
	align-items: center;
}

/* LEFT CONTENT */
.tpsa-login-info {
	min-width: 0;
}

.tpsa-login-section-label {
	position: relative;
	display: block;
	margin: 0 0 13px;
	padding-left: 22px;
	font-size: 12px;
	line-height: 18px;
	font-weight: 800;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #456582;
}

	.tpsa-login-section-label::before {
		content: "";
		position: absolute;
		left: 2px;
		top: 4px;
		width: 10px;
		height: 10px;
		border-radius: 2px;
		background: #0789f9;
		transform: rotate(45deg);
	}

.tpsa-login-info > h2 {
	margin: 0 0 17px;
	font-size: 36px;
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -.5px;
	color: #082e62;
}

.tpsa-login-intro {
	max-width: 480px;
	margin: 0 0 30px;
	font-size: 16px;
	line-height: 1.75;
	color: #4d6883;
}

/* FEATURES */
.tpsa-login-feature {
	display: flex;
	align-items: center;
	gap: 15px;
	margin: 18px 0;
	padding: 8px;
	border-radius: 10px;
	transition: transform .25s ease, background-color .25s ease;
}

	.tpsa-login-feature:hover {
		transform: translateX(5px);
		background: #f4faff;
	}

.tpsa-login-feature__icon {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #e7f4ff;
	font-size: 18px;
	color: #0789f9;
	transition: transform .25s ease, background-color .25s ease, color .25s ease;
}

.tpsa-login-feature:hover .tpsa-login-feature__icon {
	transform: scale(1.08) rotate(-3deg);
	background: #0789f9;
	color: #fff;
}

.tpsa-login-feature__content {
	min-width: 0;
}

	.tpsa-login-feature__content h3 {
		margin: 0 0 3px;
		font-size: 15px;
		line-height: 1.4;
		font-weight: 800;
		color: #17375e;
	}

	.tpsa-login-feature__content p {
		margin: 0;
		font-size: 14px;
		line-height: 1.55;
		color: #647b95;
	}

/* LOGIN CARD */
.tpsa-login-card {
	position: relative;
	padding: 32px;
	overflow: hidden;
	border: 1px solid #d5e6f5;
	border-radius: 17px;
	background: radial-gradient(circle at 100% 0,rgba(7,137,249,.10),transparent 34%), linear-gradient(145deg,#fff 0%,#f7fbff 100%);
	box-shadow: 0 18px 48px rgba(8,46,98,.10);
	transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
	animation: tpsaLoginCardIn .7s .15s ease both;
}

	.tpsa-login-card::before {
		content: "";
		position: absolute;
		left: 0;
		top: 0;
		width: 5px;
		height: 100%;
		background: linear-gradient(180deg,#0789f9,#66bdf9);
	}

	.tpsa-login-card:hover {
		transform: translateY(-5px);
		border-color: #bcdcf5;
		box-shadow: 0 25px 58px rgba(8,46,98,.15);
	}

.tpsa-login-card__icon {
	width: 58px;
	height: 58px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #e4f3ff;
	font-size: 23px;
	color: #0789f9;
	transition: transform .25s ease, background-color .25s ease, color .25s ease;
}

.tpsa-login-card:hover .tpsa-login-card__icon {
	transform: scale(1.06);
	background: #0789f9;
	color: #fff;
}

.tpsa-login-card__heading {
	margin-bottom: 25px;
}

	.tpsa-login-card__heading > span {
		display: block;
		margin-bottom: 8px;
		font-size: 11px;
		line-height: 1.4;
		font-weight: 800;
		letter-spacing: 2.2px;
		text-transform: uppercase;
		color: #54728f;
	}

	.tpsa-login-card__heading h2 {
		margin: 0 0 9px;
		font-size: 25px;
		line-height: 1.28;
		font-weight: 800;
		letter-spacing: -.3px;
		color: #082e62;
	}

	.tpsa-login-card__heading p {
		margin: 0;
		font-size: 14px;
		line-height: 1.6;
		color: #647b95;
	}

/* FORM */
.tpsa-login-form {
	width: 100%;
	margin: 0;
	padding: 0;
}

.tpsa-form-group {
	margin-bottom: 21px;
}

	.tpsa-form-group > label,
	.tpsa-password-header label {
		display: block;
		margin: 0 0 8px;
		font-size: 13px;
		line-height: 1.4;
		font-weight: 800;
		color: #17375e;
	}

.tpsa-password-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
}

	.tpsa-password-header a {
		margin-bottom: 8px;
		font-size: 12px;
		line-height: 1.4;
		font-weight: 700;
		color: #0789f9;
		text-decoration: none;
	}

		.tpsa-password-header a:hover {
			color: #056ed0;
			text-decoration: underline;
		}

.tpsa-input-group {
	position: relative;
}

	.tpsa-input-group > .fa {
		position: absolute;
		z-index: 2;
		left: 15px;
		top: 50%;
		transform: translateY(-50%);
		font-size: 15px;
		color: #7891aa;
		pointer-events: none;
		transition: color .2s ease;
	}

	.tpsa-input-group .tpsa-login-input {
		width: 100%;
		height: 49px;
		padding: 10px 14px 10px 43px;
		border: 1px solid #cbddeb;
		border-radius: 8px;
		background: #fff;
		box-shadow: none;
		font-size: 14px;
		line-height: 1.4;
		color: #17375e;
		transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
	}

		.tpsa-input-group .tpsa-login-input:hover {
			border-color: #8fc5ee;
		}

	.tpsa-input-group:focus-within > .fa {
		color: #0789f9;
	}

	.tpsa-input-group .tpsa-login-input:focus {
		border-color: #0789f9;
		outline: 0;
		box-shadow: 0 0 0 3px rgba(7,137,249,.10);
	}

/* BUTTON */
.tpsa-login-submit {
	width: 100%;
	min-height: 49px;
	margin: 4px 0 0;
	padding: 12px 18px;
	border: 1px solid #0789f9;
	border-radius: 8px;
	background: #0789f9;
	color: #fff;
	font-size: 14px;
	line-height: 1.2;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(7,137,249,.18);
	transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

	.tpsa-login-submit:hover {
		background: #056ed0;
		border-color: #056ed0;
		transform: translateY(-2px);
		box-shadow: 0 12px 25px rgba(7,137,249,.24);
	}

	.tpsa-login-submit:focus {
		outline: 0;
		box-shadow: 0 0 0 3px rgba(7,137,249,.16);
	}

/* ENROLLMENT */
.tpsa-login-enroll {
	margin-top: 23px;
	padding-top: 20px;
	border-top: 1px solid #e1ecf5;
	text-align: center;
	font-size: 13px;
	line-height: 1.6;
	color: #647b95;
}

	.tpsa-login-enroll span {
		display: block;
		margin-bottom: 4px;
	}

	.tpsa-login-enroll a {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		font-weight: 800;
		color: #0789f9;
		text-decoration: none;
	}

		.tpsa-login-enroll a:hover {
			color: #056ed0;
		}

	.tpsa-login-enroll .fa {
		font-size: 11px;
		transition: transform .2s ease;
	}

	.tpsa-login-enroll a:hover .fa {
		transform: translateX(3px);
	}

/* MODAL */
.tpsa-login-modal {
	position: fixed;
	z-index: 99999;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	overflow: auto;
	background: rgba(4,27,55,.62);
}

	.tpsa-login-modal.is-open {
		display: flex;
	}

.tpsa-login-modal__dialog {
	width: 100%;
	max-width: 480px;
	animation: tpsaLoginModalIn .25s ease both;
}

.tpsa-login-modal__content {
	overflow: hidden;
	border: 1px solid #d5e6f5;
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 25px 70px rgba(0,0,0,.22);
}

.tpsa-login-modal__header {
	padding: 21px 23px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	background: #082e62;
}

	.tpsa-login-modal__header span {
		display: block;
		margin-bottom: 3px;
		font-size: 10px;
		line-height: 1.4;
		font-weight: 700;
		letter-spacing: 1.5px;
		text-transform: uppercase;
		color: #a9d5fa;
	}

	.tpsa-login-modal__header h2 {
		margin: 0;
		font-size: 21px;
		line-height: 1.3;
		font-weight: 800;
		color: #fff;
	}

.tpsa-modal-close {
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 29px;
	line-height: 1;
	cursor: pointer;
	opacity: .8;
}

	.tpsa-modal-close:hover {
		opacity: 1;
	}

.tpsa-login-modal__body {
	padding: 28px 24px;
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.tpsa-login-modal__icon {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #e8f5ff;
	font-size: 15px;
	color: #0789f9;
}

.tpsa-login-modal__message {
	padding-top: 7px;
	font-size: 15px;
	line-height: 1.7;
	font-weight: 600;
	color: #35536f;
}

.tpsa-login-modal__footer {
	padding: 15px 23px 20px;
	display: flex;
	justify-content: flex-end;
	border-top: 1px solid #edf3f8;
}

.tpsa-modal-button {
	min-width: 90px;
	padding: 10px 17px;
	border: 1px solid #0789f9;
	border-radius: 7px;
	background: #0789f9;
	color: #fff;
	font-size: 13px;
	line-height: 1.2;
	font-weight: 800;
	cursor: pointer;
}

	.tpsa-modal-button:hover {
		background: #056ed0;
		border-color: #056ed0;
	}

/* ANIMATION */
@keyframes tpsaLoginHeroIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes tpsaLoginFadeUp {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes tpsaLoginCardIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes tpsaLoginModalIn {
	from {
		opacity: 0;
		transform: translateY(12px) scale(.98);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* TABLET */
@media (max-width: 991px) {
	.tpsa-login-hero {
		min-height: 220px;
	}

	.tpsa-login-hero__content {
		padding: 40px 0;
	}

	.tpsa-login-hero h1 {
		font-size: 38px;
	}

	.tpsa-login-section {
		padding: 45px 0 55px;
	}

	.tpsa-login-layout {
		max-width: 680px;
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.tpsa-login-intro {
		max-width: none;
	}

	.tpsa-login-card {
		width: 100%;
	}
}

/* MOBILE */
@media (max-width: 767px) {
	.tpsa-login-hero {
		min-height: 200px;
		background: linear-gradient( 90deg, rgba(244,250,255,.99) 0%, rgba(232,245,255,.96) 60%, rgba(237,247,255,.75) 100% ), url("../images/login-banner.jpg") 68% center / cover no-repeat;
	}

		.tpsa-login-hero > .container {
			padding-left: 20px;
			padding-right: 20px;
		}

	.tpsa-login-hero__content {
		padding: 34px 0;
	}

	.tpsa-login-hero h1 {
		margin-bottom: 10px;
		font-size: 34px;
	}

	.tpsa-login-hero p {
		font-size: 15px;
		line-height: 1.6;
	}

	.tpsa-login-section {
		padding: 35px 0 45px;
	}

	.tpsa-login-layout {
		gap: 30px;
	}

	.tpsa-login-info > h2 {
		font-size: 30px;
	}

	.tpsa-login-card {
		padding: 28px 24px 25px;
		border-radius: 15px;
	}

	.tpsa-login-card__heading h2 {
		font-size: 23px;
	}
}

/* SMALL MOBILE */
@media (max-width: 480px) {
	.tpsa-login-hero {
		min-height: 185px;
	}

	.tpsa-login-hero__content {
		padding: 30px 0;
	}

	.tpsa-login-hero__eyebrow {
		margin-bottom: 8px;
		font-size: 12px;
	}

	.tpsa-login-hero h1 {
		font-size: 31px;
	}

	.tpsa-login-info > h2 {
		font-size: 27px;
	}

	.tpsa-login-feature {
		align-items: flex-start;
	}

	.tpsa-login-card {
		padding: 25px 20px 23px;
	}

	.tpsa-password-header {
		align-items: flex-start;
	}

		.tpsa-password-header a {
			text-align: right;
		}
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
	.tpsa-login-hero__content,
	.tpsa-login-hero__eyebrow,
	.tpsa-login-hero h1,
	.tpsa-login-hero p,
	.tpsa-login-card,
	.tpsa-login-modal__dialog {
		animation: none;
	}

	.tpsa-login-card,
	.tpsa-login-feature,
	.tpsa-login-feature__icon,
	.tpsa-login-card__icon,
	.tpsa-login-submit {
		transition: none;
	}

		.tpsa-login-card:hover,
		.tpsa-login-feature:hover,
		.tpsa-login-feature:hover .tpsa-login-feature__icon,
		.tpsa-login-card:hover .tpsa-login-card__icon,
		.tpsa-login-submit:hover {
			transform: none;
		}
}
