html,
body {
	height: 100%;
	font-size: 16px;
	font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.login-page {
	background: url('../img/background.jpg') center fixed no-repeat;
	background-size: cover;
	overflow-x: hidden;
	overflow-y: auto;
}

.login-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 10px;
}

.box-wrapper-login {
	width: 100%;
	max-width: 380px;
	transform: translateY(-44px);
}

.login-box {
	background: #fff;
	border: none !important;
	border-radius: 10px 10px 0 0;
	box-shadow: 0 18px 45px rgba(15, 38, 66, 0.25);
	overflow: hidden;
}

.form-body {
	padding: 28px 32px 20px;
}

.logo-wrap {
	text-align: center;
	margin-bottom: 18px;
}

.logo-wrap img {
	width: min(200px, 70%);
	height: auto;
}

.login-intro {
	margin-bottom: 18px;
}

.login-intro h1 {
	margin: 0 0 6px;
	color: #1a5ba3;
	font-size: 1.2rem;
	font-weight: 700;
}

.login-intro p {
	margin: 0;
	color: #666;
	font-size: 0.86rem;
	line-height: 1.35;
}

.form-field {
	height: 40px;
	font-size: 0.875rem;
	margin-bottom: 12px !important;
	border-radius: 8px;
	border: 1px solid #d8dde3;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-field:focus {
	border-color: #1a5ba3;
	box-shadow: 0 0 0 3px rgba(26, 91, 163, 0.12);
}

.input-group .form-field {
	margin-bottom: 0 !important;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	border-right: 0;
}

.toggle-password .input-group-text {
	background: #fff;
	border: 1px solid #d8dde3;
	border-left: 0;
	border-top-right-radius: 8px;
	border-bottom-right-radius: 8px;
	color: #9aa3ad;
	cursor: pointer;
	transition: color 0.18s ease;
}

.toggle-password:hover .input-group-text {
	color: #1a5ba3;
}

.input-group {
	margin-bottom: 12px;
}

.btn-sign {
	background: #d54599 !important;
	color: #fff !important;
	border-radius: 15px;
	font-size: 0.875rem;
	padding: 6px 24px;
	margin-top: 10px;
	box-shadow: 0 4px 10px rgba(213, 69, 153, 0.28);
	transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn-sign:hover {
	background: #bf3c88 !important;
	color: #fff !important;
	box-shadow: 0 6px 14px rgba(213, 69, 153, 0.35);
	transform: translateY(-1px);
}

.divider-o365 {
	display: flex;
	align-items: center;
	margin: 18px 0 14px;
	color: #aab2bb;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.divider-o365::before,
.divider-o365::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid #e8e8e8;
}

.divider-o365 span {
	padding: 0 10px;
}

.btn-o365 {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 8px 16px;
	background: #fff;
	color: #5e5e5e;
	font-size: 0.85rem;
	font-weight: 600;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-o365-primary {
	padding: 13px 18px;
	background: #1a5ba3;
	color: #fff;
	font-size: 0.95rem;
	border-color: #1a5ba3;
	border-radius: 8px;
	box-shadow: 0 6px 14px rgba(26, 91, 163, 0.22);
	transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn-o365-primary:hover {
	background: #164f8d;
	color: #fff;
	box-shadow: 0 9px 20px rgba(26, 91, 163, 0.32);
	transform: translateY(-1px);
}

.btn-o365:hover {
	background: #f5f5f5;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	color: #333;
	text-decoration: none;
}

.btn-o365-primary:hover {
	background: #164f8d;
	color: #fff;
	text-decoration: none;
}

.o365-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.btn-o365-primary .o365-icon {
	width: 22px;
	height: 22px;
	padding: 2px;
	background: #fff;
	border-radius: 4px;
}

.manual-access-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
	border: 0;
	color: #1a5ba3;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.manual-access-link:hover {
	color: #164f8d;
	text-decoration: underline;
}

.manual-back-wrap {
	margin-top: 16px;
	text-align: center;
}

.manual-login-form {
	display: none;
	margin-top: 18px;
	text-align: left;
}

.manual-login-form.is-visible {
	display: block;
}

.soporte-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	padding: 10px 20px 12px;
	font-size: 0.82rem;
	border-top: 1px solid #f0f0f0;
}

.soporte-bar .fa-stack {
	font-size: 0.75rem;
}

.btn-custom {
	padding: 2px 14px !important;
	font-size: 0.82rem !important;
	background: #1a5ba3 !important;
	color: #fff !important;
}

.btn-rounded {
	border-radius: 12px;
}

.login-box-footer {
	height: 6px;
	background: linear-gradient(90deg, #d64498 0%, #1a5ba3 100%);
	border-radius: 0 0 10px 10px;
}

.bg-aza {
	color: #175198;
}

@media (max-width: 575.98px) {
	html,
	body {
		font-size: 16px;
	}

	.login-page {
		background-attachment: scroll;
	}

	.login-wrapper {
		align-items: flex-start;
		padding: 10px;
	}

	.box-wrapper-login {
		max-width: 100%;
		transform: none;
	}

	.form-body {
		padding: 22px 20px 16px;
	}

	.logo-wrap {
		margin-bottom: 16px;
	}

	.logo-wrap img {
		width: min(170px, 68%);
	}

	.login-intro {
		margin-bottom: 16px;
	}

	.login-intro h1 {
		font-size: 1.1rem;
	}

	.login-intro p {
		font-size: 0.82rem;
	}

	.form-field {
		height: 36px;
	}

	.btn-sign {
		width: 100%;
		margin-top: 8px;
		padding: 7px 18px;
	}

	.divider-o365 {
		margin: 12px 0 10px;
	}

	.btn-o365 {
		padding: 8px 12px;
		font-size: 0.82rem;
	}

	.btn-o365-primary {
		padding: 11px 14px;
		font-size: 0.9rem;
	}

	.soporte-bar {
		justify-content: center;
		padding: 10px 16px;
		text-align: center !important;
	}
}

@media (max-height: 640px) and (min-width: 576px) {
	.login-wrapper {
		padding: 10px 16px;
	}

	.box-wrapper-login {
		transform: translateY(-24px);
	}

	.form-body {
		padding: 22px 30px 16px;
	}

	.logo-wrap {
		margin-bottom: 16px;
	}

	.logo-wrap img {
		width: min(170px, 62%);
	}

	.login-intro {
		margin-bottom: 14px;
	}

	.login-intro h1 {
		font-size: 1.1rem;
	}

	.login-intro p {
		font-size: 0.82rem;
	}

	.form-field {
		height: 36px;
		margin-bottom: 10px !important;
	}

	.input-group {
		margin-bottom: 10px;
	}

	.btn-sign {
		margin-top: 6px;
		padding: 5px 20px;
	}

	.divider-o365 {
		margin: 10px 0 9px;
	}

	.btn-o365 {
		padding: 7px 14px;
	}

	.btn-o365-primary {
		padding: 10px 14px;
	}

	.soporte-bar {
		padding: 8px 18px 9px;
	}

	.login-box-footer {
		height: 6px;
	}
}

