* {
	box-sizing: border-box;
}

html, body {
	width: 100%;
	min-height: 100%;
	margin: 0;
}


body.checkmate-login {
	min-height: 100vh;
	margin: 0;
	font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
	background: linear-gradient(155deg, #75b7a7 0%, #4c9894 28%, #176c87 68%, #07517d
		100%);
	color: #5f6e8d;
	overflow-x: hidden;
}

a:focus{
	border: none!important;
}

.login-layout {
	display: flex;
	width: 100%;
	min-height: 100vh;
	padding: 0px 4px;
}

/* =========================
   SECCIÓN IZQUIERDA
========================= */
.login-brand-section {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50%;
	min-height: calc(100vh - 8px);
	padding: 40px;
}

.brand-content {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.brand-logo {
	display: block;
	width: min(200px, 50%);
	height: auto;
	object-fit: contain;
}

.privacy-link {
	position: absolute;
	left: 34px;
	bottom: 28px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 12px;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.privacy-link:hover {
	color: #ffffff;
	opacity: 0.8;
	text-decoration: underline;
}

/* =========================
   PANEL DERECHO
========================= */
.login-panel {
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
	width: 50%;
	min-height: calc(100vh - 8px);
}

.login-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 620px;
	min-height: calc(100vh - 8px);
	padding: 48px 80px 30px;
	background: #ffffff;
	border-radius: 28px 0 0 28px;
	box-shadow: -8px 0 28px rgba(10, 55, 82, 0.08);
}

/* =========================
   ENCABEZADO
========================= */
.login-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	margin-top: 4px;
}

.login-logo {
	display: block;
	width: 92px;
	height: auto;
	margin-bottom: 18px;
	object-fit: contain;
}

.login-header h1 {
	margin: 0;
	color: #63718e;
	font-size: 34px;
	font-weight: 400;
	line-height: 1.2;
}

/* =========================
   FORMULARIO
========================= */
.login-form {
	position: relative;
	width: 100%;
	max-width: 340px;
	margin-top: 70px;
}

.login-input-group {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: 45px;
	margin-bottom: 34px;
	background: #ffffff;
	border: 1px solid #d6dae2;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(42, 58, 84, 0.08);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input-group:focus-within {
	border-color: #62ad9f;
	box-shadow: 0 0 0 3px rgba(98, 173, 159, 0.14);
}

.login-input-group>i {
	flex-shrink: 0;
	margin-left: 17px;
	color: #65728f;
	font-size: 15px;
}

.login-input-group input {
	width: 100%;
	height: 100%;
	padding: 0 44px 0 15px;
	color: #56637f;
	font-family: inherit;
	font-size: 12px;
	background: transparent;
	border: 0;
	outline: none;
}

.login-input-group input::placeholder {
	color: #73809a;
	opacity: 1;
}

/* =========================
   MENSAJE ERROR LOGIN
========================= */
.login-error-msg {
	margin-top: -25px; 
	margin-bottom: 25px; 
	padding-left: 5px;
	color: #ef4444;
	font-size: 11px;
	font-weight: 500;
	text-align: left;
}

.login-error-msg i {
	margin-right: 4px;
	font-size: 12px;
}

.password-toggle {
	position: absolute;
	top: 50%;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	color: #73809a;
	background: transparent;
	border: 0;
	border-radius: 50%;
	transform: translateY(-50%);
	cursor: pointer;
}

.password-toggle:hover {
	color: #4d5d7b;
	background: #f2f4f7;
}

.password-toggle:focus {
	outline: none;
	box-shadow: 0 0 0 2px rgba(98, 173, 159, 0.18);
}

/* =========================
   RECORDAR Y CONTRASEÑA
========================= */
.login-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-top: -18px;
	margin-bottom: 74px;
}

.remember-option {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	color: #687591;
	font-size: 10px;
	font-weight: 400;
	cursor: pointer;
}

.remember-option input {
	width: 14px;
	height: 14px;
	margin: 0;
	accent-color: #63ad9e;
	cursor: pointer;
}

.forgot-password {
	color: #687591;
	font-size: 10px;
	text-decoration: underline;
	white-space: nowrap;
}

.forgot-password:hover {
	color: #4a5876;
}

/* =========================
   BOTÓN
========================= */
.login-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 51px;
	padding: 0 20px;
	color: #ffffff;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	background: #64728f;
	border: 0;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(61, 77, 108, 0.15);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow
		0.2s ease;
}

.login-button:hover {
	background: #56647f;
	box-shadow: 0 6px 12px rgba(61, 77, 108, 0.2);
	transform: translateY(-1px);
}

.login-button:active {
	transform: translateY(0);
}

.login-button:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(100, 114, 143, 0.2), 0 4px 8px
		rgba(61, 77, 108, 0.15);
}

/* =========================
   QR Y FOOTER
========================= */
.login-bottom-links {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	margin-top: 26px;
}

.qr-login-link, .totp-recover-link {
	/* 	display: block; */
	/* 	margin-top: 26px; */
	color: #66738d;
	font-size: 10px;
	/* 	text-align: right; */
	text-decoration: none;
	transition: color 0.2s ease;
}

.qr-login-link:hover, .totp-recover-link:hover {
	color: #4c5975;
	text-decoration: underline;
}

.login-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	margin-top: auto;
	padding-top: 40px;
	color: #8b95aa;
	font-size: 8px;
	text-align: center;
}

/* =========================
   RESPONSIVE
========================= */
@media ( max-width : 991px) {
	.login-layout {
		padding: 0;
	}
	.login-brand-section {
		width: 42%;
		min-height: 100vh;
		padding: 25px;
	}
	.login-panel {
		width: 58%;
		min-height: 100vh;
	}
	.login-card {
		min-height: 100vh;
		padding: 45px 45px 25px;
	}
	.brand-logo {
		width: min(190px, 72%);
	}
}

@media ( max-width : 767px) {
	body.checkmate-login {
		overflow-y: auto;
	}
	.login-layout {
		display: block;
		min-height: 100vh;
		padding: 20px;
	}
	.login-brand-section {
		display: none;
	}
	.login-panel {
		display: block;
		width: 100%;
		min-height: auto;
	}
	.login-card {
		width: 100%;
		max-width: 460px;
		min-height: calc(100vh - 40px);
		margin: 0 auto;
		padding: 40px 28px 25px;
		border-radius: 25px;
	}
	.login-form {
		margin-top: 55px;
	}
	.login-options {
		margin-bottom: 55px;
	}
}

@media ( max-width : 420px) {
	.login-layout {
		padding: 12px;
	}
	.login-card {
		min-height: calc(100vh - 24px);
		padding: 35px 20px 22px;
	}
	.login-header h1 {
		font-size: 30px;
	}
	.login-form {
		margin-top: 45px;
	}
	.login-options {
		align-items: flex-start;
		margin-bottom: 48px;
	}
}

/* =========================================
   AVISO DE PRIVACIDAD
========================================= */
body.privacy-page {
	min-height: 100vh;
	overflow-x: hidden;
	overflow-y: auto;
}

.privacy-wrapper {
	width: 100%;
	min-height: 100vh;
	padding: 42px 24px;
}

.privacy-card {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	background: #ffffff;
	border-radius: 28px;
	box-shadow: 0 20px 60px rgba(5, 57, 82, 0.2);
	overflow: hidden;
}

/* =========================================
   ENCABEZADO
========================================= */
.privacy-header {
	position: relative;
	padding: 46px 70px 42px;
	background: linear-gradient(135deg, rgba(111, 184, 168, 0.14),
		rgba(21, 109, 137, 0.07)), #ffffff;
	border-bottom: 1px solid #e7ebef;
}

.privacy-back {
	position: absolute;
	top: 30px;
	left: 35px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #65728f;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease;
}

.privacy-back:hover {
	color: #54a897;
	transform: translateX(-2px);
}

.privacy-back i {
	font-size: 18px;
}

.privacy-logo {
	display: block;
	width: 90px;
	height: auto;
	margin: 0 auto 28px;
	object-fit: contain;
}

.privacy-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
}

.privacy-title-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	color: #ffffff;
	font-size: 26px;
	background: linear-gradient(135deg, #6ab3a4, #347f91);
	border-radius: 16px;
	box-shadow: 0 8px 18px rgba(52, 127, 145, 0.2);
}

.privacy-title h1 {
	margin: 0 0 5px;
	color: #5d6b88;
	font-size: 34px;
	font-weight: 600;
	line-height: 1.2;
}

.privacy-title p {
	margin: 0;
	color: #8993a6;
	font-size: 15px;
}

/* =========================================
   CONTENIDO
========================================= */
.privacy-content {
	padding: 58px 75px 30px;
	color: #5f6980;
	font-size: 15px;
	line-height: 1.75;
}

.privacy-content p {
	margin: 0 0 18px;
	text-align: justify;
}

.privacy-content a {
	color: #448f87;
	font-weight: 500;
	text-decoration: none;
}

.privacy-content a:hover {
	color: #34756f;
	text-decoration: underline;
}

.privacy-introduction {
	margin-bottom: 50px;
	padding: 28px 32px;
	background: #f5f9f8;
	border: 1px solid #e3eeeb;
	border-left: 5px solid #66ad9f;
	border-radius: 12px;
}

.privacy-introduction p:last-child {
	margin-bottom: 0;
}

/* =========================================
   SECCIONES
========================================= */
.privacy-section {
	margin-bottom: 55px;
	padding-bottom: 48px;
	border-bottom: 1px solid #e7eaef;
}

.privacy-section:last-child {
	margin-bottom: 0;
	border-bottom: 0;
}

.privacy-section-heading {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 25px;
}

.section-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	flex-shrink: 0;
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	background: #63718e;
	border-radius: 13px;
}

.privacy-section-heading h2 {
	margin: 0;
	color: #5e6c88;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.35;
	text-transform: uppercase;
}

.privacy-subtitle {
	position: relative;
	margin: 32px 0 16px;
	padding-left: 16px;
	color: #62708b;
	font-size: 17px;
	font-weight: 600;
}

.privacy-subtitle::before {
	position: absolute;
	top: 4px;
	left: 0;
	width: 4px;
	height: 18px;
	content: "";
	background: #64ad9f;
	border-radius: 20px;
}

/* =========================================
   LISTAS Y CAJAS
========================================= */
.privacy-list {
	margin: 22px 0 26px;
	padding: 0;
	list-style: none;
}

.privacy-list li {
	position: relative;
	margin-bottom: 12px;
	padding-left: 28px;
}

.privacy-list li::before {
	position: absolute;
	top: 9px;
	left: 4px;
	width: 8px;
	height: 8px;
	content: "";
	background: #65ad9f;
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(101, 173, 159, 0.13);
}

.privacy-info-box {
	margin-top: 30px;
	padding: 28px 30px;
	background: #f7f9fb;
	border: 1px solid #e5e8ed;
	border-radius: 14px;
}

.privacy-info-box h3 {
	margin: 0 0 20px;
	color: #63718e;
	font-size: 17px;
	font-weight: 600;
}

.privacy-info-box ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 35px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.privacy-info-box li {
	position: relative;
	padding-left: 23px;
}

.privacy-info-box li::before {
	position: absolute;
	top: 9px;
	left: 1px;
	width: 7px;
	height: 7px;
	content: "";
	background: #65ad9f;
	border-radius: 50%;
}

/* =========================================
   CONTACTO
========================================= */
.privacy-contact-box {
	display: flex;
	align-items: center;
	gap: 17px;
	margin-top: 28px;
	padding: 22px 25px;
	background: linear-gradient(135deg, rgba(100, 173, 159, 0.12),
		rgba(52, 127, 145, 0.08));
	border: 1px solid rgba(100, 173, 159, 0.25);
	border-radius: 13px;
}

.privacy-contact-box>i {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 43px;
	height: 43px;
	flex-shrink: 0;
	color: #ffffff;
	font-size: 19px;
	background: #62a99d;
	border-radius: 11px;
}

.privacy-contact-box div {
	display: flex;
	flex-direction: column;
}

.privacy-contact-box span {
	margin-bottom: 3px;
	color: #69748b;
	font-size: 13px;
}

.privacy-contact-box a {
	font-size: 15px;
	font-weight: 600;
}

.privacy-email-link, .privacy-website-link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 5px 0 15px;
	padding: 11px 17px;
	background: #f3f8f7;
	border: 1px solid #dbeae7;
	border-radius: 9px;
}

/* =========================================
   TARJETAS ARCO
========================================= */
.arco-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin: 30px 0 35px;
}

.arco-card {
	padding: 22px 20px;
	background: #ffffff;
	border: 1px solid #e2e6eb;
	border-radius: 14px;
	box-shadow: 0 6px 18px rgba(55, 72, 92, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.arco-card:hover {
	box-shadow: 0 10px 24px rgba(55, 72, 92, 0.1);
	transform: translateY(-3px);
}

.arco-card>span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin-bottom: 15px;
	color: #ffffff;
	font-size: 16px;
	font-weight: 700;
	background: #64ac9e;
	border-radius: 10px;
}

.arco-card h3 {
	margin: 0 0 10px;
	color: #62708b;
	font-size: 16px;
	font-weight: 600;
}

.arco-card p {
	margin: 0;
	color: #7a8498;
	font-size: 13px;
	line-height: 1.55;
	text-align: left;
}

/* =========================================
   CONSENTIMIENTO
========================================= */
.privacy-consent {
	padding: 30px;
	background: #f5f9f8;
	border: 1px solid #dfece9;
	border-radius: 15px;
}

.consent-item {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	margin-top: 18px;
	padding: 16px 18px;
	background: #ffffff;
	border-radius: 10px;
}

.consent-item i {
	margin-top: 2px;
	color: #61aa9c;
	font-size: 18px;
}

.consent-item span {
	color: #626e84;
	line-height: 1.6;
}

/* =========================================
   FOOTER
========================================= */
.privacy-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 32px;
	background: #f7f8fa;
	border-top: 1px solid #e6e9ed;
	text-align: center;
}

.privacy-footer img {
	width: 68px;
	height: auto;
	margin-bottom: 10px;
}

.privacy-footer p {
	margin: 0 0 8px;
	color: #9199a9;
	font-size: 10px;
}

.privacy-footer a {
	color: #65728e;
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
}

.privacy-footer a:hover {
	color: #59a497;
	text-decoration: underline;
}

/* =========================================
   RESPONSIVE
========================================= */
@media ( max-width : 991px) {
	.privacy-wrapper {
		padding: 25px 18px;
	}
	.privacy-header {
		padding: 50px 40px 35px;
	}
	.privacy-content {
		padding: 45px 42px 25px;
	}
	.arco-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media ( max-width : 767px) {
	.privacy-wrapper {
		padding: 12px;
	}
	.privacy-card {
		border-radius: 20px;
	}
	.privacy-header {
		padding: 62px 24px 30px;
	}
	.privacy-back {
		top: 22px;
		left: 22px;
	}
	.privacy-title {
		align-items: flex-start;
	}
	.privacy-title-icon {
		width: 48px;
		height: 48px;
		font-size: 22px;
		border-radius: 13px;
	}
	.privacy-title h1 {
		font-size: 27px;
	}
	.privacy-content {
		padding: 35px 24px 20px;
		font-size: 14px;
	}
	.privacy-content p {
		text-align: left;
	}
	.privacy-introduction {
		margin-bottom: 38px;
		padding: 22px;
	}
	.privacy-section {
		margin-bottom: 40px;
		padding-bottom: 35px;
	}
	.privacy-section-heading {
		align-items: flex-start;
	}
	.section-number {
		width: 40px;
		height: 40px;
		border-radius: 11px;
	}
	.privacy-section-heading h2 {
		font-size: 17px;
	}
	.privacy-info-box {
		padding: 22px;
	}
	.privacy-info-box ul {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.arco-grid {
		grid-template-columns: 1fr;
	}
}

@media ( max-width : 480px) {
	.privacy-title {
		display: block;
		text-align: center;
	}
	.privacy-title-icon {
		margin: 0 auto 14px;
	}
	.privacy-title h1 {
		font-size: 25px;
	}
	.privacy-contact-box {
		align-items: flex-start;
		padding: 18px;
	}
	.privacy-contact-box a {
		word-break: break-word;
	}
	.privacy-consent {
		padding: 20px;
	}
}

/* =========================================
   CONFIGURACIÓN MFA
========================================= */
.mfa-panel {
	align-items: stretch;
}

.mfa-card {
	justify-content: flex-start;
	max-width: 620px;
	padding: 44px 64px 36px;
}

.mfa-header {
	margin-top: 0;
}

.mfa-logo {
	width: 90px;
	margin-bottom: 18px;
}

.mfa-header h1 {
	color: #60708f;
	font-size: 25px;
	font-weight: 400;
	line-height: 1.3;
	text-align: center;
}

.mfa-content {
	width: 100%;
	max-width: 430px;
	margin: 28px auto 0;
	color: #62708d;
}

.mfa-content form {
	width: 100%;
}

.mfa-step {
	width: 100%;
	margin-bottom: 18px;
}

.mfa-step p {
	margin: 0;
	color: #64718e;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.55;
	text-align: left;
}

.mfa-step-number {
	margin-right: 3px;
	color: #5f6d89;
	font-weight: 500;
}

/* =========================================
   QR
========================================= */
.mfa-qr-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 12px 0 24px;
}

.mfa-qr {
	display: block;
	width: 140px;
	height: 140px;
	object-fit: contain;
	image-rendering: pixelated;
}

/* =========================================
   INPUTS DE CÓDIGO
========================================= */
.mfa-code-container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	margin: 24px 0 26px;
}

.mfa-code-input {
	width: 43px;
	height: 45px;
	padding: 0;
	color: #5d6b88;
	font-family: inherit;
	font-size: 20px;
	font-weight: 600;
	line-height: 45px;
	text-align: center;
	background: #ffffff;
	border: 1px solid #d7dce3;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(45, 60, 82, 0.08);
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s
		ease;
}

.mfa-code-input:hover {
	border-color: #bfc7d2;
}

.mfa-code-input:focus {
	border-color: #65ad9f;
	box-shadow: 0 0 0 3px rgba(101, 173, 159, 0.15);
	transform: translateY(-1px);
}

/* Elimina controles numéricos si posteriormente usas type="number" */
.mfa-code-input::-webkit-outer-spin-button, .mfa-code-input::-webkit-inner-spin-button
	{
	margin: 0;
	-webkit-appearance: none;
}

.mfa-final-step {
	margin-bottom: 30px;
}

/* =========================================
   BOTÓN
========================================= */
.mfa-button {
	width: 100%;
	height: 48px;
	margin: 0;
	font-size: 11px;
	background: #65738f;
}

.mfa-button:hover {
	background: #586682;
}

/* Card de asignación de rol */
.role-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: fit-content;
	padding: 14px 12px 10px;
	background-color: #ffffff;
	border: 1px solid #d8dce2;
	border-radius: 14px;
	box-shadow:
		0 2px 5px rgba(64, 75, 95, 0.18),
		0 8px 20px rgba(64, 75, 95, 0.06);
	overflow: hidden;
}

.role-card__title {
	margin: 0 0 14px;
	padding: 0 2px;
	color: #62708d;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

.role-card__content {
	flex: 1;
	min-height: 0;
}

.role-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.role-list__item {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	border-radius: 7px;
	transition:
		background-color 0.2s ease,
		transform 0.2s ease;
}

.role-list__item a {
	display: block;
	padding: 7px 10px;
	color: #586681;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.35;
	text-decoration: none;
	border-radius: 7px;
	transition:
		color 0.2s ease,
		background-color 0.2s ease;
}

/* Hover */
.role-list__item:not(.active):hover {
	background-color: #f3f7f7;
}

.role-list__item:not(.active):hover a {
	color: #4a9585;
}

/* Rol seleccionado */
.role-list__item.active {
	padding-left: 10px;
}

.role-list__item.active::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 1px;
	width: 6px;
	height: 6px;
	background-color: #5bae98;
	border-radius: 50%;
	transform: translateY(-50%);
}

.role-list__item.active a {
	color: #54a38f;
	font-weight: 500;
}

/* Pie y botón */
.role-card__footer {
	display: flex;
	justify-content: flex-end;
	padding-top: 16px;
	margin-top: auto;
}

.role-card__button {
	min-width: 102px;
	padding: 8px 15px;
	color: #ffffff;
	background-color: #58a38f;
	border: 1px solid #58a38f;
	border-radius: 9px;
	box-shadow: 0 3px 7px rgba(67, 137, 118, 0.18);
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.role-card__button:hover {
	color: #ffffff;
	background-color: #478f7d;
	border-color: #478f7d;
	box-shadow: 0 5px 10px rgba(67, 137, 118, 0.24);
	transform: translateY(-1px);
}

.role-card__button:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(88, 163, 143, 0.22);
}

.role-card__button:active {
	transform: translateY(0);
}

/* Mensaje cuando no existen roles */
.role-card__empty {
	padding: 25px 12px;
	color: #8a94a6;
	text-align: center;
}

.role-card__empty i {
	display: block;
	margin-bottom: 8px;
	color: #5bae98;
	font-size: 22px;
}

.role-card__empty p {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
}

/* Card de administración de empresas */
.company-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-height: 700px;
	padding: 14px 12px 18px;
	background-color: #ffffff;
	border: 1px solid #d8dce2;
	border-radius: 14px;
	box-shadow:
		0 2px 5px rgba(64, 75, 95, 0.18),
		0 8px 20px rgba(64, 75, 95, 0.06);
	overflow: hidden;
}

.permisos-card{
	display: flex;
	flex-direction: column;
	width: 100%;
	max-height: 620px;
	padding: 14px 12px 18px;
	background-color: #ffffff;
	border: 1px solid #d8dce2;
	border-radius: 14px;
	box-shadow:
		0 2px 5px rgba(64, 75, 95, 0.18),
		0 8px 20px rgba(64, 75, 95, 0.06);
	overflow: hidden;
	
}

.permisos-card__content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px;
    overflow-x: hidden;
}

.company-card__title {
	margin: 0 0 13px;
	padding: 0 2px;
	color: #62708d;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

.company-card__content {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding-right: 2px;
}

/* Empresa */
.company-item {
	margin: 0 0 3px;
}

.company-item__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 30px;
	padding: 4px 2px;
	border-radius: 7px;
	transition: background-color 0.2s ease;
}

.company-item__row:hover {
	background-color: #f5f8f8;
}

.company-item__name {
	display: flex;
	flex: 1;
	align-items: center;
	min-width: 0;
	padding-right: 8px;
	color: #596681;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.35;
}

.company-item__name span:last-child {
	overflow-wrap: anywhere;
}

/* El indicador solo aparece en empresas activas */
.company-item__indicator {
	display: none;
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	margin-right: 7px;
	background-color: #59ae98;
	border-radius: 50%;
}

.company-item.active > .company-item__row .company-item__indicator {
	display: inline-block;
}

.company-item.active > .company-item__row .company-item__name {
	color: #54a38f;
	font-weight: 500;
}

/* Proyectos */
.project-list {
	padding: 0 0 2px 16px;
}

.project-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 27px;
	padding: 3px 2px;
	border-radius: 7px;
	transition: background-color 0.2s ease;
}

.project-item:hover {
	background-color: #f5f7fa;
}

.project-item__name {
	display: flex;
	flex: 1;
	align-items: center;
	min-width: 0;
	padding-right: 8px;
	color: #71809a;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.35;
}

.project-item__name span:last-child {
	overflow-wrap: anywhere;
}

.project-item__indicator {
	flex: 0 0 auto;
	width: 4px;
	height: 4px;
	margin-right: 7px;
	background-color: #71809a;
	border-radius: 50%;
}

/* Columnas de checkbox */
.company-item__checkbox,
.project-item__checkbox {
	display: flex;
	flex: 0 0 22px;
	align-items: center;
	justify-content: center;
}

/* Checkbox Checkmate */
.checkmate-permission-checkbox {
	width: 15px;
	height: 15px;
	margin: 0;
	accent-color: #6c7893;
	cursor: pointer;
}

/* Estado vacío */
.company-card__empty {
	padding: 35px 12px;
	color: #919bad;
	text-align: center;
}

.company-card__empty i {
	display: block;
	margin-bottom: 8px;
	color: #5bae98;
	font-size: 23px;
}

.company-card__empty p {
	margin: 0;
	font-size: 12px;
}

/* Scroll interno */
.company-card__content::-webkit-scrollbar {
	width: 5px;
}

.company-card__content::-webkit-scrollbar-track {
	background-color: transparent;
}

.company-card__content::-webkit-scrollbar-thumb {
	background-color: #d5dbe2;
	border-radius: 10px;
}

.company-card__content::-webkit-scrollbar-thumb:hover {
	background-color: #b9c1cc;
}

/* =========================================
   ERROR
========================================= */
.mfa-error {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	padding: 12px 14px;
	color: #a25050;
	font-size: 11px;
	line-height: 1.4;
	background: #fff5f5;
	border: 1px solid #f0d4d4;
	border-radius: 8px;
}

.mfa-error i {
	flex-shrink: 0;
	font-size: 14px;
}


	.error-state {
		width: calc(100% - 40px);
		max-width: 480px;
		margin: 50px auto 0;
		padding: 38px 32px;
		background: #ffffff;
		border: 1px solid #e5e9ef;
		border-radius: 18px;
		box-shadow: 0 12px 35px rgba(72, 87, 112, 0.12);
		text-align: center;
	}

	.error-state__icon {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 72px;
		height: 72px;
		margin: 0 auto 22px;
		background: #fff4e2;
		border: 1px solid #ffe0ac;
		border-radius: 50%;
		color: #f3aa38;
		font-size: 32px;
	}

	.error-state__title {
		margin: 0 0 12px;
		color: #5f6d8d;
		font-size: 24px;
		font-weight: 600;
		line-height: 1.3;
	}

	.error-state__message {
		margin: 0;
		color: #818ba0;
		font-size: 15px;
		font-weight: 400;
		line-height: 1.6;
	}

	.error-state__divider {
		width: 48px;
		height: 3px;
		margin: 24px auto 18px;
		background: linear-gradient(90deg, #69afa3, #328b91);
		border-radius: 10px;
	}

	.error-state__help {
		margin: 0;
		color: #a0a8b7;
		font-size: 12px;
		line-height: 1.5;
	}

	@media (max-width: 576px) {
		.error-state {
			margin-top: 35px;
			padding: 30px 22px;
		}

		.error-state__icon {
			width: 64px;
			height: 64px;
			font-size: 28px;
		}

		.error-state__title {
			font-size: 21px;
		}
	}

@media ( max-width : 991px) {
	.mfa-card {
		padding: 42px 42px 30px;
	}
	.mfa-header h1 {
		font-size: 22px;
	}
	.mfa-content {
		max-width: 390px;
	}
	.mfa-code-container {
		gap: 9px;
	}
	.mfa-code-input {
		width: 40px;
		height: 43px;
	}
}

@media ( max-width : 767px) {
	.mfa-card {
		min-height: calc(100vh - 40px);
		padding: 36px 28px 28px;
	}
	.mfa-content {
		margin-top: 30px;
	}
	.mfa-qr {
		width: 135px;
		height: 135px;
	}
}

@media ( max-width : 480px) {
	.mfa-card {
		padding: 32px 20px 25px;
	}
	.mfa-header h1 {
		font-size: 20px;
	}
	.mfa-content {
		margin-top: 25px;
	}
	.mfa-step p {
		font-size: 10px;
	}
	.mfa-code-container {
		gap: 7px;
		margin: 20px 0 24px;
	}
	.mfa-code-input {
		width: 37px;
		height: 41px;
		font-size: 17px;
		border-radius: 7px;
	}
}

@media ( max-width : 380px) {
	.mfa-code-container {
		gap: 5px;
	}
	.mfa-code-input {
		width: 34px;
		height: 39px;
	}
}