/* Layout base */
.login-root {
	display: flex;
	min-height: 100vh;
	background:
		radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 55%),
		radial-gradient(circle at bottom right, rgba(79, 70, 229, 0.20), transparent 55%),
		linear-gradient(135deg, #020617 0%, #020617 40%, #020617 100%);
	color: #e5e7eb;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.login-left,
.login-right {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 32px;
}

.login-inner {
	max-width: 460px;
	width: 100%;
}

/* Marca / topo */
.login-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 28px;
}

.brand-mark {
	width: 52px;
	height: 52px;
	border-radius: 18px;
	background: radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.25), transparent 55%),
				radial-gradient(circle at 100% 100%, rgba(99, 102, 241, 0.35), transparent 55%),
				rgba(15, 23, 42, 0.95);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.80);
}

.brand-icon {
	display: block;
}

.brand-title {
	margin: 0 0 2px;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.word-nexus {
	background: linear-gradient(120deg, #22d3ee, #2563eb, #6366f1);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.word-erp {
	color: #e5e7eb;
}

.brand-sub {
	margin: 0;
	color: #F0f0f0;
	font-size: 13px;
}

/* Card de login */
.card.login-card {
	background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
	border-radius: 18px;
	padding: 26px 26px 22px;
	border: 1px solid rgba(148, 163, 184, 0.32);
	box-shadow:
		0 22px 60px rgba(15, 23, 42, 0.85),
		0 0 0 1px rgba(15, 23, 42, 0.9);
	backdrop-filter: blur(12px);
}

.login-card-head h2 {
	margin: 0 0 6px;
	font-size: 21px;
	font-weight: 700;
    color: #FFFFFF;
}

.login-card-head p {
	margin: 0 0 18px;
	font-size: 13px;
	color: #edeff1;
}

/* Formulário */
.login-form .field {
	margin-bottom: 16px;
}

.login-form .label {
	display: block;
	font-size: 13px;
	margin-bottom: 5px;
	color: #e5e7eb;
}

.login-form input[type="email"],
.login-form input[type="password"] {
	width: 100%;
	border-radius: 10px;
	border: 1px solid #1f2937;
	background-color: #020617;
	color: #e5e7eb;
	padding: 9px 11px;
	font-size: 14px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.55);
	background-color: #020617;
}

.password-wrap {
	display: flex;
	align-items: center;
	border-radius: 10px;
	border: 1px solid #1f2937;
	background: #020617;
	overflow: hidden;
}

.password-wrap input {
	flex: 1;
	border: none;
	background: transparent;
	color: #e5e7eb;
	padding: 9px 11px;
	font-size: 14px;
	outline: none;
}

.btn-eye {
	border: none;
	background: transparent;
	color: #9ca3af;
	padding: 0 12px;
	cursor: pointer;
}

.btn-eye:hover {
	color: #e5e7eb;
}

.remember-field {
	margin-top: 4px;
	margin-bottom: 18px;
}

.remember-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 13px;
	color: #9ca3af;
}

.remember-track {
	width: 32px;
	height: 18px;
	border-radius: 999px;
	background: #020617;
	border: 1px solid #4b5563;
	display: inline-flex;
	align-items: center;
	padding: 0 2px;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.remember-thumb {
	width: 12px;
	height: 12px;
	border-radius: 999px;
	background: #9ca3af;
	transition: transform 0.16s ease, background-color 0.16s ease;
}

.remember-toggle input {
	display: none;
}

.remember-toggle input:checked + .remember-track .remember-thumb {
	transform: translateX(12px);
	background: #22c55e;
}

.btn.primary.btn-block {
	width: 100%;
	background: linear-gradient(135deg, #2563eb, #4f46e5, #6366f1);
	border: none;
	border-radius: 999px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	margin-top: 6px;
	box-shadow: 0 14px 30px rgba(37, 99, 235, 0.50);
	transition: filter 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease;
}

.btn.primary.btn-block:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 18px 40px rgba(37, 99, 235, 0.65);
}

.btn.primary.btn-block:active {
	transform: translateY(0);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.9);
}

.login-foot {
	margin-top: 18px;
	font-size: 12px;
	color: #6b7280;
}

/* Lado direito (hero) */
.login-right {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at top, rgba(56, 189, 248, 0.24), transparent 65%),
		radial-gradient(circle at bottom, rgba(129, 140, 248, 0.32), transparent 65%),
		linear-gradient(135deg, #020617 0%, #020617 35%, #020617 100%);
}

.login-right::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.2), transparent 55%),
					  radial-gradient(circle at 80% 70%, rgba(129, 140, 248, 0.3), transparent 60%);
	opacity: 0.5;
}

.hero-overlay {
	position: relative;
	max-width: 430px;
	z-index: 1;
}

.hero-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 11px;
	background: rgba(15, 23, 42, 0.80);
	border: 1px solid rgba(148, 163, 184, 0.60);
	margin-bottom: 12px;
}

.hero-overlay h2 {
	font-size: 24px;
	margin-bottom: 10px;
}

.hero-overlay p {
	font-size: 13px;
	color: #d1d5db;
	margin-bottom: 10px;
}

.hero-list {
	font-size: 13px;
	color: #e5e7eb;
	padding-left: 20px;
}

.hero-list li + li {
	margin-top: 4px;
}

/* Mensagem de erro */
.msg {
	margin-top: 8px;
	min-height: 16px;
	font-size: 13px;
}

/* Responsivo */
@media (max-width: 900px) {
	.login-root {
		flex-direction: column;
	}

	.login-left,
	.login-right {
		padding: 24px 18px;
	}

	.login-right {
		display: none;
	}

	.login-inner {
		max-width: 420px;
	}
}
