/* =========================================================
	EMY TECH SOLUTIONS
	MODAL ACCESS / LOGIN
========================================================= */

.emy-login-modal {
	z-index: 1060;
}

.emy-login-modal .modal-dialog {
	max-width: 520px;
	padding: 14px;
}

.emy-login-modal .emy-login-content {
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 26px;
	background:
		radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 34%),
		radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.08), transparent 32%),
		#ffffff;
	color: #0f172a;
	box-shadow: 0 28px 80px rgba(2, 6, 23, 0.28);
	overflow: hidden;
	opacity: 1;
}

[data-theme="dark"] .emy-login-modal .emy-login-content {
	border-color: rgba(148, 163, 184, 0.16);
	background:
		radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 34%),
		radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.14), transparent 32%),
		#020617;
	color: #f8fafc;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.emy-login-header {
	padding: 26px 28px 16px;
}

.emy-login-title-wrap {
	display: flex;
	align-items: center;
	gap: 14px;
}

.emy-login-icon {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 18px;
	color: #ffffff;
	font-size: 1.35rem;
	flex-shrink: 0;
}

.emy-login-title {
	margin: 0;
	color: #0f172a;
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: -0.03em;
}

[data-theme="dark"] .emy-login-title {
	color: #f8fafc;
}

.emy-login-subtitle,
.emy-login-help,
.emy-login-text {
	color: #475569;
	font-size: 0.82rem;
}

[data-theme="dark"] .emy-login-subtitle,
[data-theme="dark"] .emy-login-help,
[data-theme="dark"] .emy-login-text {
	color: #94a3b8;
}

.emy-login-close {
	opacity: 0.85;
	transition: all 0.25s ease;
}

.emy-login-close:hover {
	transform: rotate(90deg);
	opacity: 1;
}

[data-theme="dark"] .emy-login-close {
	filter: invert(1) grayscale(100%) brightness(200%);
}

.emy-login-body {
	padding: 0 28px 28px;
}

.emy-login-welcome {
	padding: 16px;
	margin-bottom: 20px;
	border: 1px solid rgba(148, 163, 184, 0.20);
	border-radius: 20px;
	background: #f8fafc;
}

[data-theme="dark"] .emy-login-welcome {
	border-color: rgba(148, 163, 184, 0.12);
	background: #0f172a;
}

.emy-login-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 8px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(34, 211, 238, 0.10);
	color: #0891b2;
	font-size: 0.74rem;
	font-weight: 700;
}

[data-theme="dark"] .emy-login-badge {
	color: #67e8f9;
}

.emy-login-label {
	color: #0f172a;
	font-size: 0.82rem;
	font-weight: 700;
	margin-bottom: 8px;
}

[data-theme="dark"] .emy-login-label {
	color: #cbd5e1;
}

.emy-login-input-group {
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 14px 35px rgba(2, 6, 23, 0.10);
}

[data-theme="dark"] .emy-login-input-group {
	box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

.emy-login-addon,
.emy-login-input {
	border-color: rgba(148, 163, 184, 0.28);
	background: #ffffff;
	color: #0f172a;
}

[data-theme="dark"] .emy-login-addon,
[data-theme="dark"] .emy-login-input {
	border-color: rgba(148, 163, 184, 0.16);
	background: #0f172a;
	color: #e2e8f0;
}

.emy-login-addon {
	color: #2563eb;
	min-width: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
}

[data-theme="dark"] .emy-login-addon {
	color: #38bdf8;
}

.emy-login-input {
	min-height: 48px;
	font-size: 0.95rem;
	box-shadow: none !important;
}

.emy-login-input::placeholder {
	color: #64748b;
	opacity: 0.8;
}

.emy-login-input:focus {
	border-color: #2563eb;
	background: #ffffff;
	color: #0f172a;
	box-shadow: none;
}

[data-theme="dark"] .emy-login-input:focus {
	border-color: rgba(34, 211, 238, 0.55);
	background: #0f172a;
	color: #ffffff;
}

.emy-login-addon-btn {
	cursor: pointer;
	transition: all 0.25s ease;
}

.emy-login-addon-btn:hover {
	background: rgba(37, 99, 235, 0.08);
	color: #2563eb;
}

[data-theme="dark"] .emy-login-addon-btn:hover {
	background: rgba(34, 211, 238, 0.12);
	color: #67e8f9;
}

.emy-login-help {
	display: block;
	margin-top: 6px;
	font-size: 0.76rem;
}

.emy-login-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 8px 0 24px;
	flex-wrap: wrap;
}

.emy-login-check {
	display: flex;
	align-items: center;
	gap: 8px;
}

.emy-login-check .form-check-input {
	cursor: pointer;
	border-color: rgba(148, 163, 184, 0.50);
}

.emy-login-check .form-check-input:checked {
	background-color: #2563eb;
	border-color: #2563eb;
}

.emy-login-check label {
	color: #475569;
	font-size: 0.82rem;
	cursor: pointer;
}

[data-theme="dark"] .emy-login-check label {
	color: #94a3b8;
}

.emy-login-forgot {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	color: #2563eb;
	font-size: 0.82rem;
	font-weight: 700;
	border: 0;
	background: transparent;
	text-decoration: none;
	transition: all 0.25s ease;
}

[data-theme="dark"] .emy-login-forgot {
	color: #38bdf8;
}

.emy-login-forgot:hover {
	color: #22d3ee;
	transform: translateX(2px);
}

.emy-login-submit {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 52px;
	padding: 0 18px;
	border: 0;
	border-radius: 18px;
	color: #ffffff;
	font-weight: 800;
	font-size: 0.95rem;
	transition: all 0.25s ease;
}

.emy-login-submit span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.emy-login-submit:hover {
	transform: translateY(-2px);
	color: #ffffff;
	box-shadow: 0 22px 45px rgba(34, 211, 238, 0.28);
}

.emy-login-input.is-valid {
	border-color: #22c55e !important;
}

.emy-login-input.is-invalid {
	border-color: #ef4444 !important;
}

#loginUserStateIcon.bi-check-circle-fill {
	color: #22c55e;
}

#loginUserStateIcon.bi-x-circle-fill {
	color: #ef4444;
}

.modal-backdrop.show {
	opacity: 0.62;
}

@media (max-width: 575px) {
	.emy-login-modal .modal-dialog {
		padding: 8px;
	}

	.emy-login-header,
	.emy-login-body {
		padding-left: 20px;
		padding-right: 20px;
	}

	.emy-login-title {
		font-size: 1.08rem;
	}

	.emy-login-options {
		align-items: flex-start;
		flex-direction: column;
	}

	.emy-login-submit {
		min-height: 50px;
		font-size: 0.9rem;
	}
}

/* ===== LOGIN MODAL PREMIUM EFFECTS ===== */
.emy-login-input-group {
	transition:
		transform 0.28s ease,
		box-shadow 0.28s ease,
		filter 0.28s ease;
}

.emy-login-input-group:hover {
	transform: translateY(-3px);
	box-shadow:
		0 16px 34px rgba(37, 99, 235, 0.14),
		0 0 0 3px rgba(6, 182, 212, 0.10);
}

[data-theme="dark"] .emy-login-input-group:hover {
	box-shadow:
		0 16px 34px rgba(0, 0, 0, 0.35),
		0 0 0 3px rgba(34, 211, 238, 0.10);
}

.emy-login-input-group:hover .emy-login-addon {
	color: #ffffff;
	background: var(--emy-gradient-dropdown-active);
}

.emy-login-input-group:hover .emy-login-input {
	border-color: rgba(37, 99, 235, 0.42);
	background: rgba(255, 255, 255, 0.98);
}

[data-theme="dark"] .emy-login-input-group:hover .emy-login-input {
	border-color: rgba(34, 211, 238, 0.42);
	background: rgba(15, 23, 42, 0.92);
}

.emy-login-label {
	transition:
		color 0.25s ease,
		transform 0.25s ease,
		letter-spacing 0.25s ease;
}

.mb-3:hover .emy-login-label {
	color: #2563eb;
	transform: translateX(4px);
	letter-spacing: 0.02em;
}

[data-theme="dark"] .mb-3:hover .emy-login-label {
	color: #22d3ee;
}

.emy-login-submit {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.emy-login-submit::before {
	content: '';
	position: absolute;
	top: 0;
	left: -120%;
	width: 75%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.34),
		transparent
	);
	transform: skewX(-18deg);
	transition: left 0.55s ease;
	z-index: 1;
}

.emy-login-submit:hover::before {
	left: 135%;
}

.emy-login-submit span,
.emy-login-submit i {
	position: relative;
	z-index: 2;
}

.emy-login-submit:hover {
	transform: translateY(-3px) scale(1.01);
	box-shadow:
		0 22px 48px rgba(37, 99, 235, 0.28),
		0 0 0 4px rgba(34, 211, 238, 0.14);
}

.emy-login-submit i {
	transition: transform 0.25s ease;
}

.emy-login-submit:hover i {
	transform: translateX(4px) rotate(-8deg);
}

/* =========================================================
	EMY TECH SOLUTIONS
	MODAL RECOVER PASSWORD
========================================================= */

.emy-recover-modal {
	z-index: 1070;
}

.emy-recover-modal .modal-dialog {
	max-width: 560px;
	padding: 14px;
}

.emy-recover-content {
	border: 1px solid rgba(148, 163, 184, 0.24);
	border-radius: 26px;
	background:
		radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 34%),
		radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.08), transparent 32%),
		#ffffff;
	color: #0f172a;
	box-shadow: 0 35px 90px rgba(2, 6, 23, 0.32);
	overflow: hidden;
	opacity: 1;
}

[data-theme="dark"] .emy-recover-content {
	border-color: rgba(148, 163, 184, 0.18);
	background:
		radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 34%),
		radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.14), transparent 32%),
		#020617;
	color: #f8fafc;
	box-shadow: 0 35px 90px rgba(0, 0, 0, 0.58);
}

.emy-recover-header {
	padding: 26px 28px 14px;
}

.emy-recover-title-wrap {
	display: flex;
	align-items: center;
	gap: 14px;
}

.emy-recover-icon {
	width: 54px;
	height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 18px;
	color: #ffffff;
	font-size: 1.5rem;
	flex-shrink: 0;
}

.emy-recover-title {
	margin: 0 0 2px;
	color: #0f172a;
	font-weight: 900;
	font-size: 1.25rem;
	letter-spacing: -0.03em;
}

[data-theme="dark"] .emy-recover-title {
	color: #f8fafc;
}

.emy-recover-subtitle {
	color: #475569;
	font-size: 0.9rem;
	font-weight: 500;
}

[data-theme="dark"] .emy-recover-subtitle {
	color: #cbd5e1;
}

.emy-recover-close {
	opacity: 0.85;
	transition: all 0.25s ease;
}

.emy-recover-close:hover {
	transform: rotate(90deg);
	opacity: 1;
}

[data-theme="dark"] .emy-recover-close {
	filter: invert(1) grayscale(100%) brightness(200%);
}

.emy-recover-body {
	padding: 16px 28px 10px;
}

.emy-recover-alert {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 15px 16px;
	margin-bottom: 22px;
	border-radius: 18px;
	background: #eff6ff;
	border: 1px solid rgba(37, 99, 235, 0.22);
	color: #0f172a;
	font-size: 0.92rem;
	line-height: 1.55rem;
	font-weight: 500;
}

[data-theme="dark"] .emy-recover-alert {
	background: #0f172a;
	border-color: rgba(34, 211, 238, 0.24);
	color: #e2e8f0;
}

.emy-recover-alert i {
	color: #2563eb;
	font-size: 1.15rem;
	margin-top: 2px;
	flex-shrink: 0;
}

[data-theme="dark"] .emy-recover-alert i {
	color: #38bdf8;
}

.emy-recover-modal .emy-form-label {
	color: #0f172a;
	font-size: 0.84rem;
	font-weight: 800;
	margin-bottom: 9px;
}

[data-theme="dark"] .emy-recover-modal .emy-form-label {
	color: #f8fafc;
}

.emy-recover-modal .emy-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
	border-radius: 18px;
	background: #ffffff;
	border: 1px solid rgba(148, 163, 184, 0.55);
	box-shadow: 0 14px 35px rgba(2, 6, 23, 0.14);
	overflow: hidden;
	transition: all 0.25s ease;
}

[data-theme="dark"] .emy-recover-modal .emy-input-wrap {
	background: #0f172a;
	border-color: rgba(148, 163, 184, 0.28);
	box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
}

.emy-recover-modal .emy-input-icon {
	width: 52px;
	min-width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #2563eb;
	background: #ffffff;
	border-right: 1px solid rgba(148, 163, 184, 0.35);
	font-size: 1.15rem;
}

[data-theme="dark"] .emy-recover-modal .emy-input-icon {
	color: #38bdf8;
	background: #0f172a;
	border-right-color: rgba(148, 163, 184, 0.22);
}

.emy-recover-modal .emy-input {
	min-height: 52px;
	border: 0;
	background: #ffffff !important;
	color: #0f172a !important;
	font-size: 0.98rem;
	font-weight: 600;
	box-shadow: none !important;
}

[data-theme="dark"] .emy-recover-modal .emy-input {
	background: #0f172a !important;
	color: #f8fafc !important;
}

.emy-recover-modal .emy-input::placeholder {
	color: #64748b;
	opacity: 1;
	font-weight: 600;
}

[data-theme="dark"] .emy-recover-modal .emy-input::placeholder {
	color: #94a3b8;
}

.emy-recover-modal .emy-input:focus {
	background: #ffffff !important;
	color: #0f172a !important;
	box-shadow: none !important;
}

[data-theme="dark"] .emy-recover-modal .emy-input:focus {
	background: #0f172a !important;
	color: #ffffff !important;
}

.emy-recover-modal .emy-input-wrap:hover,
.emy-recover-modal .emy-input-wrap:focus-within {
	transform: translateY(-3px);
	border-color: rgba(37, 99, 235, 0.60);
	box-shadow:
		0 18px 38px rgba(37, 99, 235, 0.18),
		0 0 0 4px rgba(6, 182, 212, 0.12);
}

[data-theme="dark"] .emy-recover-modal .emy-input-wrap:hover,
[data-theme="dark"] .emy-recover-modal .emy-input-wrap:focus-within {
	border-color: rgba(34, 211, 238, 0.48);
	box-shadow:
		0 18px 38px rgba(0, 0, 0, 0.45),
		0 0 0 4px rgba(34, 211, 238, 0.12);
}

.emy-recover-modal .emy-input-state {
	width: 52px;
	min-width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	border-left: 1px solid rgba(148, 163, 184, 0.35);
}

[data-theme="dark"] .emy-recover-modal .emy-input-state {
	background: #0f172a;
	border-left-color: rgba(148, 163, 184, 0.22);
}

.emy-recover-footer {
	padding: 18px 28px 28px;
	gap: 12px;
}

.emy-btn-ghost {
	border-radius: 16px;
	border: 1px solid rgba(148, 163, 184, 0.50);
	color: #0f172a;
	background: #f8fafc;
	font-weight: 800;
	padding: 12px 20px;
	transition: all 0.25s ease;
}

[data-theme="dark"] .emy-btn-ghost {
	color: #f8fafc;
	background: #0f172a;
	border-color: rgba(148, 163, 184, 0.22);
}

.emy-btn-ghost:hover {
	transform: translateY(-2px);
	color: #2563eb;
	background: #ffffff;
	border-color: rgba(37, 99, 235, 0.45);
	box-shadow: 0 14px 28px rgba(2, 6, 23, 0.10);
}

[data-theme="dark"] .emy-btn-ghost:hover {
	color: #67e8f9;
	background: #111827;
	border-color: rgba(34, 211, 238, 0.35);
}

.emy-btn-primary {
	border: none;
	border-radius: 16px;
	color: #ffffff;
	font-weight: 900;
	padding: 12px 22px;
	box-shadow: 0 18px 35px rgba(37, 99, 235, 0.30);
	transition: all 0.25s ease;
}

.emy-btn-primary:hover {
	transform: translateY(-2px);
	color: #ffffff;
	box-shadow: 0 22px 45px rgba(37, 99, 235, 0.38);
}

/* ===== RECOVER BUTTON PREMIUM FLASH EFFECT ===== */
.emy-btn-primary {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.emy-btn-primary::before {
	content: '';
	position: absolute;
	top: 0;
	left: -120%;
	width: 75%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.34),
		transparent
	);
	transform: skewX(-18deg);
	transition: left 0.55s ease;
	z-index: 1;
}

.emy-btn-primary:hover::before {
	left: 135%;
}

.emy-btn-primary span,
.emy-btn-primary i {
	position: relative;
	z-index: 2;
}

.emy-btn-primary:hover {
	transform: translateY(-3px) scale(1.01);
	box-shadow:
		0 22px 48px rgba(37, 99, 235, 0.28),
		0 0 0 4px rgba(34, 211, 238, 0.14);
}

.emy-btn-primary i {
	transition: transform 0.25s ease;
}

.emy-btn-primary:hover i {
	transform: translateX(4px) rotate(-8deg);
}

@media (max-width: 575px) {
	.emy-recover-modal .modal-dialog {
		padding: 8px;
	}

	.emy-recover-header,
	.emy-recover-body,
	.emy-recover-footer {
		padding-left: 20px;
		padding-right: 20px;
	}

	.emy-recover-footer {
		flex-direction: column-reverse;
	}

	.emy-recover-footer .btn {
		width: 100%;
	}
}

.emy-login-icon,
.emy-recover-icon {
	background: var(--emy-gradient-dropdown-active);
	box-shadow: 0 14px 30px var(--emy-glow-blue);
}

.emy-login-submit,
.emy-btn-primary {
	background: var(--emy-gradient-cta);
	box-shadow: 0 18px 38px var(--emy-glow-blue);
}

.emy-login-submit:hover,
.emy-btn-primary:hover {
	transform: translateY(-3px) scale(1.01);
	box-shadow:
		0 22px 48px var(--emy-glow-cyan),
		0 0 0 4px rgba(34, 211, 238, 0.14);
}

.emy-login-input-group:hover .emy-login-addon,
.emy-recover-modal .emy-input-wrap:hover .emy-input-icon,
.emy-recover-modal .emy-input-wrap:focus-within .emy-input-icon {
	color: #ffffff;
	background: var(--emy-gradient-dropdown-active);
}