/* Shared EmployeeFactor auth pages (login / forgot / force-change) */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body.login-body {
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	height: 100vh;
	color: #1f2937;
	background: #e8eef8;
	overflow: hidden;
}

.login-page {
	position: relative;
	height: 100vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.login-bg {
	position: absolute;
	inset: 0;
	background: url("../../images/bg-auth.jpg") center / cover no-repeat;
	z-index: 0;
}

.login-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.08) 46%, rgba(15, 23, 42, 0.16) 100%);
}

.login-shell {
	position: relative;
	z-index: 1;
	flex: 1;
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 16px 24px 8px;
	display: grid;
	grid-template-columns: 1fr 0.9fr;
	gap: 24px;
	align-items: center;
	min-height: 0;
}

.promo-panel {
	color: #111827;
	animation: fadeInLeft 0.7s ease;
}

.promo-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.promo-brand img {
	height: 34px;
	width: auto;
	object-fit: contain;
	border-radius: 6px;
	background: #fff;
	padding: 3px 6px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.promo-brand-text strong {
	display: block;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.2px;
}

.promo-brand-text span {
	font-size: 11px;
	color: #6b7280;
}

.promo-title {
	font-size: 26px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.5px;
	margin-bottom: 8px;
	max-width: 480px;
}

.promo-title .accent {
	color: #6366f1;
}

.promo-subtitle {
	font-size: 13px;
	line-height: 1.45;
	color: #4b5563;
	max-width: 440px;
	margin-bottom: 14px;
}

.feature-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
}

.feature-card {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 10px;
	padding: 8px 10px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
	backdrop-filter: blur(10px);
}

.feature-icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 15px;
	color: #fff;
}

.feature-icon.purple { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.feature-icon.green { background: linear-gradient(135deg, #10b981, #34d399); }
.feature-icon.blue { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.feature-icon.orange { background: linear-gradient(135deg, #f59e0b, #fb923c); }

.feature-copy {
	flex: 1;
	min-width: 0;
}

.feature-copy strong {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: #111827;
}

.feature-copy span {
	font-size: 11px;
	color: #6b7280;
}

.feature-card > i {
	color: #9ca3af;
	font-size: 14px;
}

.trust-bar {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.trust-item {
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.72);
	border-radius: 10px;
	padding: 7px 8px;
	border: 1px solid rgba(255, 255, 255, 0.65);
}

.trust-item .t-icon {
	width: 28px;
	height: 28px;
	border-radius: 7px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 13px;
	flex-shrink: 0;
}

.trust-item .t-icon.purple { background: #6366f1; }
.trust-item .t-icon.green { background: #10b981; }
.trust-item .t-icon.blue { background: #3b82f6; }

.trust-item strong {
	display: block;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
}

.trust-item span {
	font-size: 9px;
	color: #6b7280;
}

.auth-panel {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	animation: fadeInUp 0.75s ease;
}

.login-card {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 360px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 16px;
	padding: 18px 20px 14px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	text-align: center;
}

.logo-container {
	margin-bottom: 4px;
}

.logo {
	display: block;
	max-width: 140px;
	max-height: 40px;
	width: auto;
	height: auto;
	margin: 0 auto 6px;
	object-fit: contain;
}

.login-card h2 {
	margin: 0 0 2px;
	font-size: 20px;
	font-weight: 800;
	color: #111827;
	letter-spacing: -0.3px;
}

.tagline {
	font-size: 12px;
	color: #6b7280;
	margin-bottom: 10px;
}

.alert {
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 500;
	margin-bottom: 10px;
	border: none;
	display: flex;
	align-items: flex-start;
	gap: 6px;
	text-align: left;
}

.alert-danger {
	background: #fee2e2;
	color: #991b1b;
	border-left: 4px solid #dc2626;
}

.alert-success {
	background: #d1fae5;
	color: #065f46;
	border-left: 4px solid #10b981;
}

.alert-warning {
	background: #fef3c7;
	color: #92400e;
	border-left: 4px solid #f59e0b;
}

.alert-info {
	background: #eef2ff;
	color: #3730a3;
	border-left: 4px solid #6366f1;
}

.login-form,
.password-reset-form,
.password-change-form {
	margin-top: 2px;
}

.login-field {
	position: relative;
	margin-bottom: 10px;
	text-align: left;
}

.login-field label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: #374151;
	margin-bottom: 4px;
}

.input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.input-wrapper > i:first-child {
	position: absolute;
	left: 12px;
	color: #9ca3af;
	font-size: 15px;
	z-index: 2;
	top: 50%;
	transform: translateY(-50%);
}

.input-wrapper input {
	width: 100%;
	padding: 9px 12px 9px 38px;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	outline: none;
	font-size: 13px;
	background: #ffffff;
	color: #1f2937;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	font-family: inherit;
}

.input-wrapper input.has-toggle,
.input-wrapper input#password,
.input-wrapper input#newPassword,
.input-wrapper input#retypePassword,
.input-wrapper input#confirmPassword {
	padding-right: 42px;
}

.input-wrapper input:focus {
	border-color: #6366f1;
	box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.input-wrapper:focus-within > i:first-child {
	color: #6366f1;
}

.input-wrapper input::placeholder {
	color: #9ca3af;
}

.password-toggle {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	color: #9ca3af;
	font-size: 16px;
	z-index: 3;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.password-toggle:hover {
	color: #6366f1;
}

.field-error {
	display: none;
	font-size: 11px;
	color: #dc2626;
	margin-top: 4px;
	text-align: left;
}

.field-error.show {
	display: block;
}

.password-requirements {
	margin-top: 8px;
	padding: 8px 10px;
	border-radius: 8px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	text-align: left;
	font-size: 11px;
	color: #64748b;
}

.password-requirements strong {
	display: block;
	margin-bottom: 4px;
	color: #334155;
	font-size: 11px;
}

.password-requirements ul {
	margin: 0;
	padding-left: 16px;
}

.password-requirements li.valid {
	color: #059669;
}

.hint-text {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	color: #6b7280;
	text-align: left;
}

.remember-me {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	font-size: 12px;
}

.checkbox-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
}

.checkbox-wrapper input[type="checkbox"] {
	width: 16px;
	height: 16px;
	cursor: pointer;
	accent-color: #6366f1;
}

.checkbox-wrapper label {
	margin: 0;
	color: #4b5563;
	font-weight: 500;
	cursor: pointer;
	user-select: none;
}

.forgot-link {
	color: #6366f1;
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
}

.forgot-link:hover {
	color: #4f46e5;
	text-decoration: underline;
}

.recaptcha-container {
	margin: 12px 0;
	display: flex;
	justify-content: center;
}

.btn-login {
	width: 100%;
	padding: 10px 14px;
	background: linear-gradient(90deg, #6366f1 0%, #4f46e5 55%, #7c3aed 100%);
	border: none;
	border-radius: 10px;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(99, 102, 241, 0.3);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	position: relative;
	overflow: hidden;
	font-family: inherit;
	text-decoration: none;
}

.btn-login:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(99, 102, 241, 0.42);
	color: #fff;
}

.btn-login:disabled {
	opacity: 0.75;
	cursor: not-allowed;
	transform: none;
}

.btn-login .btn-arrow {
	margin-left: auto;
}

.btn-login.loading span,
.btn-login.loading i {
	opacity: 0;
}

.btn-login.loading::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	top: 50%;
	left: 50%;
	margin: -9px 0 0 -9px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

.back-to-login {
	margin-top: 12px;
	font-size: 12px;
}

.back-to-login a {
	color: #6366f1;
	text-decoration: none;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.back-to-login a:hover {
	color: #4f46e5;
	text-decoration: underline;
}

.card-trust {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #eef2f7;
}

.card-trust-item {
	text-align: center;
}

.card-trust-item i {
	display: inline-flex;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	background: rgba(99, 102, 241, 0.1);
	color: #6366f1;
	font-size: 12px;
	margin-bottom: 2px;
}

.card-trust-item strong {
	display: block;
	font-size: 10px;
	font-weight: 700;
	color: #111827;
}

.card-trust-item span {
	font-size: 9px;
	color: #9ca3af;
}

.login-footer {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 6px 16px 10px;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
	flex-shrink: 0;
}

.login-footer a {
	color: rgba(255, 255, 255, 0.95);
	text-decoration: none;
	margin: 0 6px;
}

.login-footer a:hover {
	text-decoration: underline;
}

.login-footer .sep {
	opacity: 0.55;
	margin: 0 2px;
}

.d-none {
	display: none !important;
}

@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(28px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
	from { opacity: 0; transform: translateX(-24px); }
	to { opacity: 1; transform: translateX(0); }
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 992px) {
	body.login-body,
	.login-page {
		height: auto;
		min-height: 100vh;
		overflow-x: hidden;
		overflow-y: auto;
	}

	.login-shell {
		grid-template-columns: 1fr;
		padding: 16px 16px 8px;
		gap: 16px;
	}

	.promo-panel {
		order: 2;
	}

	.auth-panel {
		order: 1;
	}

	.promo-title {
		font-size: 22px;
	}

	.trust-bar {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.login-card {
		padding: 16px 14px 12px;
		border-radius: 14px;
	}

	.promo-title {
		font-size: 20px;
	}

	.feature-list {
		margin-bottom: 10px;
	}

	.login-footer {
		font-size: 10px;
		line-height: 1.6;
	}
}

@media (max-height: 760px) and (min-width: 993px) {
	.promo-subtitle,
	.feature-copy span,
	.trust-item span,
	.card-trust-item span {
		display: none;
	}

	.promo-title {
		font-size: 22px;
		margin-bottom: 6px;
	}

	.feature-list {
		margin-bottom: 10px;
	}

	.login-card {
		padding: 14px 16px 12px;
	}
}
