/* Login moderno - mantiene la paleta de marca del sistema (#0070BA / #33338c) */

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

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
	width: 100%;
	overflow-x: hidden;
}

body {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(circle at 20% 20%, #0d8ae0 0%, #0070BA 45%, #33338c 100%);
	font-family: "Segoe UI", "Calibri", Arial, sans-serif;
}

body > div {
	width: 100%;
	min-width: 0;
}

.login-wrapper {
	width: 100%;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.login-wrapper > form {
	width: 100%;
	min-width: 0;
	max-width: 380px;
}

.login-box {
	position: relative;
	width: 380px;
	max-width: 100%;
	padding: 40px 36px 32px;
	background: #f0f0f0;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(10, 20, 50, 0.35);
	color: #000000;
	text-align: center;
	box-sizing: border-box;
}

.login-box h2 {
	margin: 0 0 28px;
	padding: 0;
	color: #000000;
	font-size: 26px;
	font-weight: 600;
	letter-spacing: 0.2px;
}

.login-error {
	margin: 0 0 20px;
	padding: 10px 14px;
	background: #fdecea;
	border: 1px solid #f3b3ae;
	color: #7a1f1f;
	border-radius: 10px;
	font-size: 13px;
	text-align: left;
}

.login-field {
	position: relative;
	margin-bottom: 18px;
	text-align: left;
}

.login-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #000000;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

.login-field .field-icon {
	position: absolute;
	left: 14px;
	top: 38px;
	width: 18px;
	height: 18px;
	color: #555555;
	pointer-events: none;
}

.form-login {
	width: 100%;
	padding: 12px 14px 12px 42px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 10px;
	background: #ffffff;
	font-size: 15px;
	color: #000000;
	box-sizing: border-box;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.form-login::placeholder {
	color: #767676;
}

.form-login:focus {
	outline: none;
	border-color: #0070BA;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(0, 112, 186, 0.2);
}

.login-submit {
	width: 100%;
	margin-top: 8px;
	padding: 13px 16px;
	border: none;
	border-radius: 10px;
	background: linear-gradient(135deg, #0d8ae0, #33338c);
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.3px;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
	box-shadow: 0 10px 24px rgba(13, 30, 70, 0.35);
}

.login-submit:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(13, 30, 70, 0.45);
}

.login-submit:active {
	transform: translateY(0);
}

.login-box-options {
	clear: both;
	margin-top: 18px;
	font-size: 12px;
	text-align: center;
}

.login-box-options a {
	color: #333333;
	font-size: 12px;
	text-decoration: none;
}

.login-box-options a:hover {
	color: #000000;
	text-decoration: underline;
}

.login-brand {
	margin-top: 22px;
	text-align: center;
}

.login-brand img {
	width: 120px;
	opacity: 0.85;
	border: none;
	border-radius: 6px;
	transition: opacity 0.15s ease;
}

.login-brand a:hover img {
	opacity: 1;
}

@media (max-width: 460px) {
	.login-box {
		padding: 32px 24px 26px;
		border-radius: 16px;
	}
}
