/* Tela de login. Escopado em body.login-wg para não afetar o painel. */
body.login-wg {
	min-height: 100vh;
	margin: 0;
	overflow-x: hidden;
	background-color: #070e1c;
	color: #1a2332;
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
body.login-wg.login-wg--foto {
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	background-attachment: fixed;
}
.login-veil {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(900px 520px at 12% 8%, rgba(55, 98, 176, 0.28), transparent 62%),
		radial-gradient(720px 480px at 88% 92%, rgba(28, 58, 120, 0.22), transparent 58%),
		linear-gradient(180deg, #0d1830 0%, #070e1c 100%);
}
body.login-wg--foto .login-veil {
	background:
		radial-gradient(980px 640px at 50% 42%, rgba(6, 12, 24, 0.2), rgba(4, 8, 16, 0.62) 78%),
		linear-gradient(180deg, rgba(8, 14, 28, 0.32), rgba(5, 10, 20, 0.52));
}
.login-stage {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 16px 84px;
}
.login-card {
	width: min(448px, 100%);
	max-width: 100%;
	min-width: 0;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
	overflow: hidden;
}
.login-card-bar {
	height: 4px;
	background: linear-gradient(90deg, #3b6cff 0 74%, #ff5d4d 74% 100%);
}
.login-card-body {
	padding: 28px 30px 20px;
}
.login-brand {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
	margin-bottom: 22px;
}
.login-logo-link {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
}
.login-logo {
	display: block;
	height: auto;
	width: auto;
	max-height: 42px;
	max-width: 100%;
	object-fit: contain;
	object-position: left center;
}
.login-badge {
	flex: 0 1 auto;
	min-width: 0;
	max-width: 46%;
	margin: 0;
	padding: 6px 10px;
	border-radius: 999px;
	background: #f2f5fa;
	color: #5c6b82;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.25;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.login-title {
	margin: 0 0 6px;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: #1a2332;
}
.login-lead {
	margin: 0 0 22px;
	max-width: 36ch;
	color: #7b8494;
	font-size: 14px;
	line-height: 1.45;
}
.login-alert {
	margin-bottom: 14px;
	border-radius: 10px;
	font-size: 14px;
}
.login-label {
	display: block;
	margin: 0 0 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: #3c4656;
}
.login-field {
	position: relative;
	display: flex;
	align-items: center;
	margin-bottom: 16px;
}
.login-field-icon {
	position: absolute;
	left: 14px;
	display: flex;
	color: #9aa3b2;
	pointer-events: none;
}
.login-icon {
	width: 18px;
	height: 18px;
	display: block;
}
.login-input {
	width: 100%;
	height: 44px;
	border: 1px solid #e4e8ef;
	border-radius: 8px;
	padding: 0 14px 0 42px;
	background: #fff;
	color: #1c2430;
	font-size: 14.5px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.login-input--secret {
	padding-right: 44px;
}
.login-input::placeholder {
	color: #a8b0bd;
}
.login-input:focus {
	border-color: #3d7eff;
	box-shadow: 0 0 0 3px rgba(61, 126, 255, 0.16);
}
.login-input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px #fff inset;
	-webkit-text-fill-color: #1c2430;
}
.login-eye {
	position: absolute;
	right: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #8b95a5;
	cursor: pointer;
}
.login-eye:hover,
.login-eye:focus-visible {
	color: #3a74f2;
	background: #f3f6fb;
}
.login-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 16px;
}
.login-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: #4b5565;
	font-size: 13.5px;
	font-weight: 500;
	cursor: pointer;
	user-select: none;
}
.login-check input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #3a74f2;
	cursor: pointer;
}
.login-forgot {
	border: 0;
	padding: 0;
	background: none;
	color: #3a74f2;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
}
.login-forgot:hover,
.login-forgot:focus-visible {
	text-decoration: underline;
}
.login-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 46px;
	margin-top: 4px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(180deg, #4d86f8 0%, #3a74f2 100%);
	box-shadow: 0 8px 18px rgba(58, 116, 242, 0.28);
	color: #fff;
	font-size: 15.5px;
	font-weight: 600;
	cursor: pointer;
}
.login-submit:hover {
	background: linear-gradient(180deg, #4d86f8 0%, #2f68e6 100%);
}
.login-submit:focus-visible {
	outline: 3px solid rgba(58, 116, 242, 0.35);
	outline-offset: 2px;
}
.login-submit:disabled {
	opacity: 0.75;
	cursor: wait;
}
.login-submit-arrow {
	width: 16px;
	height: 16px;
}
.login-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 16px;
	color: #9aa3b2;
	font-size: 12.5px;
}
.login-foot {
	position: fixed;
	z-index: 2;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 22px 16px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 13px;
}
.login-help {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	text-decoration: none;
}
.login-help:hover,
.login-help:focus-visible {
	color: #fff;
}
.login-help-mark {
	width: 22px;
	height: 22px;
	border: 1.5px solid rgba(255, 255, 255, 0.78);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}
.login-wg .modal-content {
	border: 0;
	border-radius: 16px;
	overflow: hidden;
}
.login-wg .modal-header {
	border-bottom: 1px solid #eef1f6;
}
.login-wg .modal .btn-primary {
	background: #3a74f2;
	border-color: #3a74f2;
}
.login-wg .modal .btn-primary:hover,
.login-wg .modal .btn-primary:focus {
	background: #2f68e6;
	border-color: #2f68e6;
}
@media (max-width: 520px) {
	.login-card-body {
		padding: 22px 18px 16px;
	}
	.login-title {
		font-size: 23px;
	}
	.login-brand {
		flex-wrap: wrap;
		row-gap: 8px;
	}
	.login-logo {
		max-height: 36px;
		max-width: 190px;
	}
	.login-logo-link {
		flex: 1 1 auto;
	}
	.login-badge {
		max-width: 100%;
		font-size: 9px;
		padding: 5px 8px;
	}
	.login-options {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}
	.login-foot {
		font-size: 12px;
		padding: 12px 14px 14px;
	}
}
@media (max-height: 700px) {
	.login-stage {
		align-items: flex-start;
		padding-top: 24px;
	}
}
