/* Fondo general del login */
body {
	margin: 0;
	font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	min-height: 100vh;
	background: radial-gradient(circle at top left, #e5edff 0, #f3f4f6 45%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.auth-wrapper {
	width: 100%;
	max-width: 420px;
	padding: 1.5rem;
}

.auth-card {
	background-color: #ffffff;
	border-radius: 1.2rem;
	padding: 2rem 2.2rem;
	box-shadow:
		0 18px 45px rgba(15, 23, 42, 0.13),
		0 0 0 1px rgba(148, 163, 184, 0.25);
}

.auth-logo {
	text-align: center;
	margin-bottom: 1.2rem;
}

.auth-logo span.main {
	display: block;
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
	font-size: 1.15rem;
	color: #1f3c88;
	letter-spacing: 0.02em;
}

.auth-logo span.sub {
	display: block;
	font-size: 0.85rem;
	color: #6b7280;
	margin-top: 0.25rem;
}

.auth-icon {
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: linear-gradient(135deg, #1f3c88, #273c75);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	font-size: 1.4rem;
	box-shadow: 0 10px 22px rgba(31, 60, 136, 0.35);
}

.auth-title {
	text-align: center;
	margin-bottom: 0.4rem;
	font-family: "Montserrat", sans-serif;
	font-size: 1.2rem;
	color: #111827;
}

.auth-subtitle {
	text-align: center;
	font-size: 0.9rem;
	color: #6b7280;
	margin-bottom: 1.6rem;
}

.login-form label {
	display: block;
	font-size: 0.9rem;
	font-weight: 500;
	margin-bottom: 0.3rem;
	color: #374151;
}

.login-form input[type="text"],
.login-form input[type="password"] {
	width: 100%;
	margin-bottom: 0.9rem;
}

.password-wrapper {
	position: relative;
}

.password-wrapper input {
	padding-right: 40px;
}

.toggle-password {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	opacity: 0.6;
	font-size: 0.95rem;
	user-select: none;
}

.toggle-password:hover {
	opacity: 1;
}

.auth-footer {
	margin-top: 1.4rem;
	text-align: center;
	font-size: 0.8rem;
	color: #9ca3af;
}

.auth-footer span {
	opacity: 0.9;
}

.alert.error {
	margin-bottom: 1rem;
}

@media (max-width: 480px) {
	.auth-card {
		padding: 1.7rem 1.5rem;
		border-radius: 1rem;
	}
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #f9fafb;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: #1f3c88;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 60, 136, 0.2);
}

.btn-back {
    background-color: #e5e7eb;
    color: #374151;
    border: 1px solid #d1d5db !important;
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    transition: all 0.15s ease;
    text-decoration: none;
}