:root {
	--primary: #1565C0;
	--primary-tint: #EAF2FC;
	--navy: #0B2E4E;
	--turquesa: #12A8CC;
	--bg: #F4F6F8;
	--surface: #FFFFFF;
	--border: #E4E4E6;
	--text: #1F2937;
	--text-muted: #6B7280;
	--text-faint: #A6A6AC;
	--shadow-lift: 0 10px 40px rgba(15, 23, 42, .08);

	--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
}

.body-auth {
	position: relative;
	background: var(--bg);
	font-family: var(--font-family);
	color: var(--text);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 30px 25px;
}

.card-clever {
	border-radius: 16px;
	box-shadow: var(--shadow-lift);
	max-width: 100%;
    width: 400px;
    background: var(--surface);
}

.card-clever .subtitle {
	font-size: 14px;
	color: var(--text-muted);
}

.clever-auth-footer {
	width: 90%;
	max-width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	font-size: 14px;
}

.clever-auth-footer img {
	height: 20px;
	width: auto;
	display: block;
}

.clever-auth-footer .sep {
	color: var(--border);
}

.clever-auth-footer a {
	color: var(--primary);
	text-decoration: none;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.clever-auth-footer a:hover {
	color: var(--primary);
}

.primary-btn {
	background: var(--primary);
	color: #fff;
}

.primary-btn:hover {
	background: #0f4c8f;
	color: #fff;
}

.btn-clever {
	width: 100%;
	padding: 12px;
	font-size: 15px;
	border: 0;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
}

.btn-clever:disabled {
	opacity: .55;
	cursor: not-allowed;
}

/* Lista de opciones (empresas, módulos) */
.list-clever {
	display: flex;
	flex-direction: column;
	padding: 10px 0;
}

.list-clever .item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	text-align: left;
	padding: 13px 24px;
	cursor: pointer;
	border: 0;
	border-top: 1px solid var(--border);
	background: transparent;
	font: inherit;
	color: inherit;
}

.list-clever .item:hover {
	background: var(--primary-tint);
}

.list-clever .dot {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--primary);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12.5px;
	font-weight: 700;
	flex-shrink: 0;
}

.list-clever .item .name {
	font-size: 14px;
}

.list-clever .dot .fa-solid {
	font-size: 14px;
}

/* Alertas de marca (mensajes de resultado en forms) */
.alert-clever {
	text-align: center;
	padding: 12px;
	border-radius: 8px;
	font-size: 13px;
}

.alert-danger {
	background: #fee2e2;
	color: #b91c1c;
}

.alert-success {
	background: #dcfce7;
	color: #15803d;
}

.alert-success a {
	color: #15803d;
	font-weight: 600;
}

/* Formularios de marca (login, cambio de clave) */
.form-clever {
	padding: 0 28px 30px;
}

.form-clever .field {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--border);
	border-radius: 8px;
	font-size: 14px;
	font: inherit;
	color: inherit;
	background: var(--surface);
}

.form-clever .field:focus {
	outline: none;
	border-color: var(--primary);
}

.form-clever .field-wrap {
	position: relative;
}

.form-clever .field-wrap .field {
	padding-right: 42px;
}

.form-clever .field-toggle {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	color: var(--text-faint);
	cursor: pointer;
	font-size: 14px;
}

.form-clever .field-toggle:hover {
	color: var(--text-muted);
}

.back-link {
	display: block;
	text-align: center;
	padding: 15px 24px 30px;
	font-size: 12.5px;
	color: var(--primary);
	cursor: pointer;
}

.hidden {
	display: none !important;
}

.card-clever .head {
	padding: 30px 28px 16px;
	text-align: center;
}

.card-clever .head h1 {
	font-size: 20px;
	font-weight: 600;
	text-wrap: balance;
}