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: 1px 4px 45px 0 rgba(0, 0, 0, 0.1);
	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: #0f1f3e;
	font-size: 1.2rem;
	font-weight: 700;
}

.login-intro p {
	margin: 0;
	color: #707070;
	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 #dddddd;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-field:hover,
.form-field:focus {
	border-color: #ff7300;
	box-shadow: 0 0 0 2px rgba(255, 115, 0, 0.25);
}

.input-group:hover .form-field,
.input-group:hover .toggle-password .input-group-text,
.input-group:focus-within .form-field,
.input-group:focus-within .toggle-password .input-group-text {
	border-color: #ff7300;
}

.input-group:hover .form-field,
.input-group:focus-within .form-field {
	box-shadow: 0 0 0 2px rgba(255, 115, 0, 0.25);
}

.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 #dddddd;
	border-left: 0;
	border-top-right-radius: 8px;
	border-bottom-right-radius: 8px;
	color: #707070;
	cursor: pointer;
	transition: color 0.18s ease;
}

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

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

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

.btn-sign:hover {
	background: #2a31a0 !important;
	color: #fff !important;
	box-shadow: 0 6px 14px rgba(50, 58, 188, 0.35);
	transform: translateY(-1px);
}

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

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

.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: #0f1f3e;
	font-size: 0.85rem;
	font-weight: 600;
	border: 1px solid #dddddd;
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-o365-primary {
	padding: 13px 18px;
	background: #323abc;
	color: #fff;
	font-size: 0.95rem;
	border-color: #323abc;
	border-radius: 8px;
	box-shadow: 0 6px 14px rgba(50, 58, 188, 0.22);
	transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn-o365-primary:hover {
	background: #2a31a0;
	color: #fff;
	box-shadow: 0 9px 20px rgba(50, 58, 188, 0.32);
	transform: translateY(-1px);
}

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

.btn-o365-primary:hover {
	background: #2a31a0;
	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: #323abc;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.manual-access-link:hover {
	color: #2a31a0;
	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;
	color: #0f1f3e;
	border-top: 1px solid #eff3f6;
}

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

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

.btn-custom:hover {
	background: #2a31a0 !important;
	color: #fff !important;
}

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

.login-box-footer {
	height: 6px;
	background: #ff7300;
	border-radius: 0 0 10px 10px;
}

.bg-aza {
	color: #323abc;
}

@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;
	}
}

.access-method-dialog {
	max-width: 920px;
	margin: 1rem auto;
}

.access-method-dialog .modal-content {
	max-height: calc(100vh - 2rem);
	border: 0;
	border-radius: 8px;
	overflow: hidden;
}

.access-method-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0c3b6e;
	color: #fff;
	border-bottom: 0;
	padding: 0.9rem 3rem;
}

.access-method-title {
	margin: 0;
	color: #fff;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
}

.access-method-header .close {
	position: absolute;
	right: 0.85rem;
	top: 50%;
	transform: translateY(-50%);
	float: none;
	margin: 0;
	color: #fff;
	opacity: 1;
	text-shadow: none;
	font-size: 1.8rem;
	line-height: 1;
}

.access-method-body {
	overflow-y: auto;
	padding: 1.25rem 1.5rem 1.1rem;
	color: #1a1a1a;
	text-align: left;
}

.access-method-notice {
	margin: 0 0 1rem;
	font-size: 1rem;
	line-height: 1.45;
}

.access-method-columns {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.access-method-card img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	cursor: default;
}

.access-method-steps h3 {
	margin: 0 0 0.75rem;
	color: #1a1a1a;
	font-size: 1.35rem;
	font-weight: 700;
}

.access-method-steps p {
	margin: 0 0 0.85rem;
	font-size: 1rem;
	line-height: 1.45;
}

.access-method-footer {
	margin: 0.4rem 0 0;
	font-size: 1.05rem;
	line-height: 1.4;
	text-align: center;
}

.access-method-footer a {
	color: inherit;
	text-decoration: underline;
}

@media (min-width: 768px) {
	.access-method-columns {
		flex-direction: row;
		align-items: flex-start;
	}

	.access-method-card,
	.access-method-steps {
		flex: 1 1 0;
		min-width: 0;
	}
}

@media (max-width: 575.98px) {
	.access-method-header {
		padding: 0.6rem 2.6rem;
	}

	.access-method-title {
		font-size: 1.15rem;
	}

	.access-method-body {
		padding: 0.9rem 1rem 0.8rem;
	}

	.access-method-notice {
		margin-bottom: 0.75rem;
	}

	.access-method-columns {
		gap: 0.9rem;
	}

	.access-method-card {
		text-align: center;
	}

	.access-method-card img {
		width: auto;
		max-width: 200px;
		margin: 0 auto;
	}

	.access-method-steps h3 {
		margin-bottom: 0.5rem;
	}

	.access-method-steps p {
		margin-bottom: 0.5rem;
	}

	.access-method-footer {
		margin-top: 0.3rem;
	}
}

