@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700&display=swap');

.nm-login {
	margin: 0;
	min-height: 100vh;
	font-family: Inter, sans-serif;
	background: #eef2ff;
	color: #111827;
}

.nm-login *,
.nm-login *::before,
.nm-login *::after {
	box-sizing: border-box;
}

.nm-login-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.nm-login-card {
	width: 100%;
	max-width: 960px;
	min-height: 580px;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 24px 64px rgba(99, 102, 241, 0.10);
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.nm-login-form-col {
	padding: 48px 52px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.nm-login-form-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 44px;
}

.nm-login-logo {
	height: 36px;
	width: auto;
	border-radius: 10px;
	display: block;
}

.nm-login-lang {
	position: relative;
}

.nm-login-lang-btn {
	font-size: 13px;
	color: #6b7280;
	background: none;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 6px 14px;
	cursor: pointer;
	font-family: Inter, sans-serif;
}

.nm-login-lang-menu {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	min-width: 10rem;
	padding: 6px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
	z-index: 20;
}

.nm-login-lang-menu.is-open {
	display: block;
}

.nm-login-lang-menu a {
	display: block;
	padding: 8px 10px;
	border-radius: 8px;
	color: #374151;
	text-decoration: none;
	font-size: 13px;
}

.nm-login-lang-menu a:hover {
	background: #f3f4f6;
}

.nm-login-heading {
	margin-bottom: 32px;
}

.nm-login-heading h1 {
	font-size: 24px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 8px;
	font-family: 'Plus Jakarta Sans', sans-serif;
	letter-spacing: -0.4px;
}

.nm-login-heading p {
	font-size: 14px;
	color: #6b7280;
	margin: 0;
}

.nm-login-field {
	margin-bottom: 18px;
}

.nm-login-field label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	margin-bottom: 6px;
}

.nm-login-field-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.nm-login-field-row label {
	margin-bottom: 0;
}

.nm-login-forgot {
	font-size: 13px;
	color: #6366f1;
	background: none;
	border: none;
	cursor: pointer;
	font-family: Inter, sans-serif;
	font-weight: 500;
	padding: 0;
	text-decoration: none;
}

.nm-login-forgot:hover {
	color: #4338ca;
}

.nm-login-field input[type="text"],
.nm-login-field input[type="password"],
.nm-login-field input[type="email"] {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	font-size: 14px;
	color: #111827;
	font-family: Inter, sans-serif;
	outline: none;
	transition: border-color 0.2s;
	background: #fff;
}

.nm-login-field input::placeholder {
	color: #a8b3c1;
}

.nm-login-field input:focus {
	border-color: #6366f1;
}

.nm-login-password-wrap {
	position: relative;
}

.nm-login-password-wrap input {
	padding-right: 42px;
}

.nm-login-eye {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: #9ca3af;
	padding: 0;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nm-login-eye .nm-eye-hide {
	display: none;
}

.nm-login-eye.is-visible .nm-eye-show {
	display: none;
}

.nm-login-eye.is-visible .nm-eye-hide {
	display: block;
}

.nm-login-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	margin-bottom: 28px;
	user-select: none;
}

.nm-login-remember input {
	width: 18px;
	height: 18px;
	accent-color: #6366f1;
	cursor: pointer;
}

.nm-login-remember span {
	font-size: 14px;
	color: #374151;
}

.nm-login-submit {
	width: 100%;
	padding: 13px;
	background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	font-family: 'Plus Jakarta Sans', sans-serif;
	letter-spacing: 0.1px;
	box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
	transition: opacity 0.2s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.nm-login-submit:hover {
	opacity: 0.9;
}

.nm-login-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.nm-login-spinner {
	display: none;
	width: 1rem;
	height: 1rem;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: nm-login-spin 0.7s linear infinite;
}

@keyframes nm-login-spin {
	to { transform: rotate(360deg); }
}

.nm-login-signup {
	text-align: center;
	font-size: 14px;
	color: #6b7280;
	margin: 24px 0 0;
}

.nm-login-signup a {
	color: #6366f1;
	font-weight: 600;
	text-decoration: none;
}

.nm-login-signup a:hover {
	color: #4338ca;
}

.nm-login-terms {
	text-align: center;
	font-size: 12px;
	color: #9ca3af;
	margin: 18px 0 0;
}

.nm-login-terms a {
	color: #9ca3af;
	text-decoration: underline;
}

.nm-login-alert {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 500;
	text-align: left;
}

.nm-login-alert--danger {
	background: #fef2f2;
	color: #dc2626;
	border: 1px solid #fecaca;
}

.nm-login-alert--success {
	background: #f0fdf4;
	color: #16a34a;
	border: 1px solid #bbf7d0;
}

.nm-login-posts-col {
	background: linear-gradient(155deg, #312e81 0%, #3730a3 40%, #4338ca 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 48px 40px;
	position: relative;
	overflow: hidden;
}

.nm-login-posts-decor {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
	pointer-events: none;
}

.nm-login-posts-decor--tl {
	top: -80px;
	right: -80px;
	width: 280px;
	height: 280px;
}

.nm-login-posts-decor--br {
	bottom: -60px;
	left: -60px;
	width: 220px;
	height: 220px;
}

.nm-login-carousel {
	width: 100%;
	max-width: 340px;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	z-index: 1;
}

.nm-login-carousel-media {
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 20px 56px rgba(0, 0, 0, 0.35);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.nm-login-carousel.is-fading .nm-login-carousel-media,
.nm-login-carousel.is-fading .nm-login-caption {
	opacity: 0;
	transform: translateY(6px);
}

.nm-login-slide {
	display: none;
	margin: 0;
}

.nm-login-slide.is-active {
	display: block;
}

.nm-login-slide img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	display: block;
}

.nm-login-caption {
	color: rgba(255, 255, 255, 0.92);
	font-size: 15px;
	font-weight: 500;
	text-align: center;
	margin: 24px 0 0;
	line-height: 1.6;
	max-width: 300px;
	transition: opacity 0.35s ease, transform 0.35s ease;
	font-family: 'Plus Jakarta Sans', sans-serif;
}

.nm-login-dots {
	display: flex;
	gap: 6px;
	margin-top: 24px;
}

.nm-login-dot {
	width: 6px;
	height: 6px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.3);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: all 0.3s ease;
}

.nm-login-dot.is-active {
	width: 22px;
	background: #fff;
}

@media (max-width: 900px) {
	.nm-login-card {
		grid-template-columns: 1fr;
		max-width: 480px;
		min-height: auto;
	}

	.nm-login-posts-col {
		display: none;
	}

	.nm-login-form-col {
		padding: 36px 28px;
	}
}

.nm-login .d-none {
	display: none !important;
}

.nm-login-field .input-group {
	display: flex;
	width: 100%;
}

.nm-login-field .input-group-text {
	display: flex;
	align-items: center;
	padding: 0 12px;
	border: 1.5px solid #e5e7eb;
	border-right: 0;
	border-radius: 10px 0 0 10px;
	background: #f9fafb;
	color: #6b7280;
	font-size: 14px;
}

.nm-login-field .input-group .form-control,
.nm-login-field .form-control {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	font-size: 14px;
	color: #111827;
	font-family: Inter, sans-serif;
	outline: none;
	transition: border-color 0.2s;
	background: #fff;
}

.nm-login-field .input-group .form-control {
	border-radius: 0 10px 10px 0;
}

.nm-login-field .form-control:focus,
.nm-login-field .input-group .form-control:focus {
	border-color: #6366f1;
}

.nm-login-field .invalid-feedback {
	display: none;
	color: #dc2626;
	font-size: 12px;
	margin-top: 6px;
}

.nm-login-terms-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 20px;
	font-size: 13px;
	color: #374151;
	line-height: 1.45;
}

.nm-login-terms-check input {
	margin-top: 2px;
	accent-color: #6366f1;
}

.nm-login-terms-check a {
	color: #6366f1;
	font-weight: 500;
	text-decoration: underline;
}

.nm-login-terms-check .text-warning {
	color: #d97706;
	display: block;
	margin-top: 6px;
}

.nm-login-otp {
	display: flex;
	gap: 8px;
	margin: 16px 0;
}

.nm-login-otp input {
	flex: 1;
	height: 56px;
	text-align: center;
	font-size: 20px;
	font-weight: 600;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	outline: none;
}

.nm-login-otp input:focus {
	border-color: #6366f1;
}

.nm-auth-modal .modal-content {
	border: none;
	border-radius: 16px;
	overflow: hidden;
}

.nm-auth-modal .modal-header {
	background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
	color: #fff;
	border: none;
}

.nm-auth-modal .modal-title {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 700;
}

.nm-auth-modal .btn-primary,
.nm-auth-modal .btn-success {
	background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
	border: none;
	border-radius: 10px;
	font-weight: 600;
}

.nm-auth-modal .btn-secondary,
.nm-auth-modal .btn-light {
	border-radius: 10px;
}
