/* Portal authentication pages — v0.2.40 */
body.ep-portal-page .ep-auth-page,
.ep-auth-page {
	width: 100%;
	min-height: calc(100vh - 80px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 16px;
	background:
		radial-gradient(circle at top right, rgba(10, 70, 105, .15), transparent 30%),
		radial-gradient(circle at bottom left, rgba(17, 26, 47, .08), transparent 24%),
		var(--ep-bg);
	box-sizing: border-box;
}

.ep-auth-shell {
	width: min(1120px, 100%);
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 26px;
	align-items: stretch;
}

.ep-auth-showcase {
	position: relative;
	padding: 38px;
	border-radius: 28px;
	background:
		linear-gradient(145deg, rgba(17, 26, 47, .98), rgba(10, 70, 105, .96));
	color: #fff;
	box-shadow: 0 24px 60px rgba(17, 26, 47, .24);
	overflow: hidden;
}

.ep-auth-showcase::before,
.ep-auth-showcase::after {
	content: "";
	position: absolute;
	border-radius: 999px;
	background: rgba(255, 255, 255, .07);
}

.ep-auth-showcase::before {
	right: -42px;
	top: -42px;
	width: 180px;
	height: 180px;
}

.ep-auth-showcase::after {
	left: -26px;
	bottom: -26px;
	width: 130px;
	height: 130px;
}

.ep-auth-badge {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.ep-auth-showcase h1 {
	position: relative;
	z-index: 1;
	margin: 18px 0 12px;
	color: #fff;
	font-size: 42px;
	line-height: 1.05;
	font-weight: 900;
}

.ep-auth-showcase > p {
	position: relative;
	z-index: 1;
	max-width: 520px;
	margin: 0 0 26px;
	color: rgba(255, 255, 255, .86);
	font-size: 16px;
	line-height: 1.7;
}

.ep-auth-points {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 14px;
}

.ep-auth-point {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 18px;
	border: 1px solid rgba(255, 255, 255, .10);
	border-radius: 18px;
	background: rgba(255, 255, 255, .07);
	backdrop-filter: blur(6px);
}

.ep-auth-point span {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	border-radius: 999px;
	background: rgba(255,255,255,.14);
	color: #fff;
	font-size: 16px;
	font-weight: 900;
	line-height: 1;
}

.ep-auth-point strong {
	display: block;
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
}

.ep-auth-point small {
	display: block;
	margin-top: 5px;
	color: rgba(255, 255, 255, .78);
	font-size: 13px;
	line-height: 1.5;
}

.ep-auth-card {
	width: 100%;
	padding: 30px;
	border: 1px solid var(--ep-border);
	border-radius: 28px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 24px 55px rgba(30, 45, 80, .11);
	backdrop-filter: blur(8px);
	box-sizing: border-box;
}

.ep-auth-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
}

.ep-auth-logo {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	border-radius: 14px;
	background: var(--ep-primary);
	color: #fff;
	font-size: 20px;
	font-weight: 900;
	box-shadow: 0 12px 26px rgba(10, 70, 105, .22);
}

.ep-auth-brand strong {
	display: block;
	color: var(--ep-text);
	font-size: 28px;
	font-weight: 900;
	line-height: 1.1;
}

.ep-auth-brand small {
	display: block;
	margin-top: 4px;
	color: var(--ep-muted);
	font-size: 13px;
	line-height: 1.5;
}

.ep-auth-card .forminator-ui {
	margin: 0 !important;
}

.ep-auth-card .forminator-row,
.ep-auth-card .forminator-col,
.ep-auth-card .forminator-field {
	margin-bottom: 14px !important;
}

.ep-auth-card .forminator-label,
.ep-auth-card label {
	color: var(--ep-text) !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	letter-spacing: .01em !important;
}

.ep-auth-card .forminator-input,
.ep-auth-card .forminator-textarea,
.ep-auth-card .forminator-select,
.ep-auth-card input[type="text"],
.ep-auth-card input[type="email"],
.ep-auth-card input[type="password"] {
	min-height: 48px !important;
	padding: 12px 14px !important;
	border: 1px solid var(--ep-border) !important;
	border-radius: 13px !important;
	background: #fff !important;
	color: var(--ep-text) !important;
	box-shadow: none !important;
	font-size: 14px !important;
}

.ep-auth-card .forminator-input:focus,
.ep-auth-card .forminator-textarea:focus,
.ep-auth-card .forminator-select:focus,
.ep-auth-card input[type="text"]:focus,
.ep-auth-card input[type="email"]:focus,
.ep-auth-card input[type="password"]:focus {
	border-color: rgba(10, 70, 105, .38) !important;
	box-shadow: 0 0 0 4px rgba(10, 70, 105, .08) !important;
}

.ep-auth-card .forminator-checkbox__label,
.ep-auth-card .forminator-consent__label {
	color: var(--ep-muted) !important;
	font-size: 13px !important;
	line-height: 1.5 !important;
}

.ep-auth-card .forminator-button,
.ep-auth-card button[type="submit"] {
	width: 100% !important;
	min-height: 50px !important;
	margin-top: 6px !important;
	border-radius: 13px !important;
	background: var(--ep-primary) !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 900 !important;
	letter-spacing: .01em !important;
	box-shadow: 0 14px 30px rgba(10, 70, 105, .20) !important;
}

.ep-auth-card .forminator-button:hover,
.ep-auth-card button[type="submit"]:hover {
	background: var(--ep-primary-dark) !important;
	transform: translateY(-1px);
}

.ep-auth-switch {
	margin: 18px 0 0;
	color: var(--ep-muted);
	font-size: 13px;
	text-align: center;
}

.ep-auth-switch a {
	color: var(--ep-primary);
	font-weight: 800;
	text-decoration: none;
}

.ep-auth-switch a:hover {
	text-decoration: underline;
}

.ep-auth-already {
	padding: 22px;
	border: 1px solid rgba(10, 70, 105, .12);
	border-radius: 16px;
	background: rgba(10, 70, 105, .05);
}

.ep-auth-already h2 {
	margin: 0 0 8px;
	color: var(--ep-text);
	font-size: 22px;
	line-height: 1.2;
}

.ep-auth-already p {
	margin: 0 0 16px;
	color: var(--ep-muted);
	font-size: 14px;
	line-height: 1.6;
}

.ep-auth-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 18px;
	border-radius: 12px;
	background: var(--ep-primary);
	color: #fff !important;
	font-size: 14px;
	font-weight: 850;
	text-decoration: none !important;
	box-shadow: 0 10px 24px rgba(10, 70, 105, .20);
}

@media (max-width: 980px) {
	.ep-auth-shell {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.ep-auth-showcase,
	.ep-auth-card {
		border-radius: 22px;
	}

	.ep-auth-showcase {
		padding: 28px;
	}

	.ep-auth-showcase h1 {
		font-size: 34px;
	}
}

@media (max-width: 620px) {
	.ep-auth-page {
		min-height: 100vh;
		padding: 16px 12px;
	}

	.ep-auth-showcase {
		padding: 22px 18px;
		border-radius: 18px;
	}

	.ep-auth-showcase h1 {
		font-size: 28px;
	}

	.ep-auth-showcase > p {
		font-size: 14px;
		line-height: 1.6;
		margin-bottom: 18px;
	}

	.ep-auth-point {
		padding: 14px;
		border-radius: 14px;
	}

	.ep-auth-card {
		padding: 20px 16px;
		border-radius: 18px;
	}

	.ep-auth-brand strong {
		font-size: 24px;
	}
}



/* Dashboard-matched authentication UI — v0.2.41 */
.ep-auth-page {
	background:
		radial-gradient(circle at 86% 8%, rgba(10, 70, 105, .13), transparent 30%),
		linear-gradient(135deg, #eef3fb 0%, #f7faff 48%, #eef3fb 100%) !important;
}

.ep-auth-shell {
	align-items: stretch;
}

.ep-auth-showcase {
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(223, 230, 242, .9);
	background:
		linear-gradient(145deg, rgba(255,255,255,.95), rgba(238,243,251,.95)) !important;
	color: var(--ep-text) !important;
	box-shadow: 0 18px 50px rgba(30, 45, 80, .10) !important;
}

.ep-auth-showcase::before {
	background: rgba(10, 70, 105, .08) !important;
}

.ep-auth-showcase::after {
	background: rgba(17, 26, 47, .05) !important;
}

.ep-auth-badge {
	border-color: rgba(10, 70, 105, .12) !important;
	background: rgba(10, 70, 105, .08) !important;
	color: var(--ep-primary) !important;
}

.ep-auth-showcase h1 {
	color: var(--ep-text) !important;
}

.ep-auth-showcase > p {
	color: var(--ep-muted) !important;
}

.ep-auth-point {
	border-color: var(--ep-border) !important;
	background: #fff !important;
	box-shadow: 0 10px 26px rgba(30, 45, 80, .06);
}

.ep-auth-point span {
	background: rgba(10, 70, 105, .10) !important;
	color: var(--ep-primary) !important;
}

.ep-auth-point strong {
	color: var(--ep-text) !important;
}

.ep-auth-point small {
	color: var(--ep-muted) !important;
}

.ep-auth-dashboard-preview {
	position: relative;
	z-index: 1;
	margin-top: auto;
	padding: 16px;
	border: 1px solid var(--ep-border);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 16px 34px rgba(30, 45, 80, .08);
}

.ep-auth-preview-top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 13px;
}

.ep-auth-preview-top span {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--ep-primary);
	box-shadow: 0 8px 18px rgba(10, 70, 105, .20);
}

.ep-auth-preview-top strong {
	color: var(--ep-text);
	font-size: 14px;
	font-weight: 900;
}

.ep-auth-preview-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 9px;
	margin-bottom: 11px;
}

.ep-auth-preview-grid span {
	display: block;
	height: 54px;
	border: 1px solid var(--ep-border);
	border-radius: 14px;
	background:
		linear-gradient(180deg, #fff, #f8fbff);
	position: relative;
	overflow: hidden;
}

.ep-auth-preview-grid span::before {
	content: "";
	position: absolute;
	left: 10px;
	top: 12px;
	width: 34px;
	height: 7px;
	border-radius: 999px;
	background: #dfe6f2;
}

.ep-auth-preview-grid span::after {
	content: "";
	position: absolute;
	left: 10px;
	bottom: 12px;
	width: 52px;
	height: 9px;
	border-radius: 999px;
	background: rgba(10, 70, 105, .18);
}

.ep-auth-preview-chart {
	height: 92px;
	border: 1px solid var(--ep-border);
	border-radius: 16px;
	background:
		linear-gradient(180deg, rgba(10, 70, 105, .05), rgba(10, 70, 105, 0)),
		repeating-linear-gradient(
			to bottom,
			transparent 0,
			transparent 22px,
			rgba(113, 128, 159, .14) 23px
		);
	position: relative;
	overflow: hidden;
}

.ep-auth-preview-chart i {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 18px;
	height: 42px;
	border-radius: 999px 999px 0 0;
	border-top: 4px solid var(--ep-primary);
	border-left: 0;
	border-right: 0;
	transform: skewX(-10deg);
	opacity: .95;
}

.ep-auth-card {
	border-color: rgba(223, 230, 242, .95) !important;
	background: #ffffff !important;
	box-shadow: 0 18px 50px rgba(30, 45, 80, .10) !important;
}

.ep-auth-logo {
	background: var(--ep-primary) !important;
	box-shadow: 0 12px 26px rgba(10, 70, 105, .24) !important;
}

.ep-auth-card .forminator-input,
.ep-auth-card .forminator-textarea,
.ep-auth-card .forminator-select,
.ep-auth-card input[type="text"],
.ep-auth-card input[type="email"],
.ep-auth-card input[type="password"] {
	background: #f8fbff !important;
}

.ep-auth-card .forminator-input:focus,
.ep-auth-card .forminator-textarea:focus,
.ep-auth-card .forminator-select:focus,
.ep-auth-card input[type="text"]:focus,
.ep-auth-card input[type="email"]:focus,
.ep-auth-card input[type="password"]:focus {
	background: #fff !important;
}

.ep-auth-card .forminator-button,
.ep-auth-card button[type="submit"],
.ep-auth-primary {
	background: var(--ep-primary) !important;
	box-shadow: 0 14px 28px rgba(10, 70, 105, .22) !important;
}

.ep-auth-card .forminator-button:hover,
.ep-auth-card button[type="submit"]:hover,
.ep-auth-primary:hover {
	background: var(--ep-primary-dark) !important;
}

@media (max-width: 980px) {
	.ep-auth-dashboard-preview {
		display: none;
	}
}

@media (max-width: 620px) {
	.ep-auth-showcase {
		padding: 20px 16px !important;
	}

	.ep-auth-points {
		display: none;
	}

	.ep-auth-showcase h1 {
		margin-bottom: 8px;
	}

	.ep-auth-showcase > p {
		margin-bottom: 0;
	}
}



/* Auth page loading and theme reset fix — v0.2.42 */
body.ep-auth-template {
	background: #eef3fb !important;
}

body.ep-auth-template .site,
body.ep-auth-template .site-main,
body.ep-auth-template #content,
body.ep-auth-template .site-content,
body.ep-auth-template .content-area,
body.ep-auth-template article,
body.ep-auth-template .entry-content,
body.ep-auth-template .page-content,
body.ep-auth-template .elementor,
body.ep-auth-template .elementor-section,
body.ep-auth-template .elementor-container,
body.ep-auth-template .elementor-widget-container {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

body.ep-auth-template .entry-title,
body.ep-auth-template .page-title,
body.ep-auth-template header.entry-header {
	display: none !important;
}

body.ep-auth-template .ep-auth-page {
	min-height: 100vh !important;
	margin: 0 !important;
}

body.ep-auth-template .ep-auth-showcase ul,
body.ep-auth-template .ep-auth-showcase li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
