.as-el-login {
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
}

.as-el-login *,
.as-el-login *::before,
.as-el-login *::after,
.as-el-account *,
.as-el-account *::before,
.as-el-account *::after {
	box-sizing: border-box;
}

.as-el-login__form.is-hidden {
	display: none !important;
}

.as-el-login__field {
	margin-bottom: 1rem;
}

.as-el-login__label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.as-el-login__input {
	display: block;
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	line-height: 1.4;
	font-size: 1rem;
}

.as-el-login__input:focus {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
}

.as-el-login__remember {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	cursor: pointer;
}

.as-el-login__actions {
	margin-top: 0.5rem;
}

.as-el-login__submit,
.as-el-login__dashboard-link {
	display: inline-block;
	padding: 0.7rem 1.25rem;
	border: none;
	border-radius: 4px;
	background: #1d2327;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.3;
}

.as-el-login__submit:hover,
.as-el-login__dashboard-link:hover {
	background: #2c3338;
	color: #fff;
}

.as-el-login__submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

.as-el-login__links {
	margin: 0.85rem 0 0;
}

.as-el-login__link {
	color: #2271b1;
	text-decoration: underline;
	cursor: pointer;
}

.as-el-login__title {
	margin: 0 0 1rem;
	font-weight: 600;
}

.as-el-login__message {
	margin: 0 0 1rem;
	padding: 0.65rem 0.75rem;
	border-radius: 4px;
}

.as-el-login__message--success {
	background: #edfaef;
	color: #1e4620;
}

.as-el-login__message--error {
	background: #fcf0f1;
	color: #8a1f1b;
}

.as-el-login__message--info {
	background: #f0f6fc;
	color: #1d2327;
}

.as-el-login__logged-in {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: flex-start;
}

/* -------------------------------------------------------------------------
   Account / Mes formations
   ------------------------------------------------------------------------- */

.as-el-account {
	width: 100%;
	max-width: 100%;
}

.as-el-account__heading {
	margin: 0 0 0.5rem;
	font-size: 1.75rem;
	line-height: 1.25;
	font-weight: 700;
}

.as-el-account__intro {
	margin: 0 0 1.5rem;
	font-size: 1rem;
	line-height: 1.5;
	opacity: 0.85;
}

.as-el-account__notice {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 1.25rem;
	background: #f6f7f7;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
}

.as-el-account__notice p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
}

.as-el-account__grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.as-el-account__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.as-el-account__card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.as-el-account__cover-link {
	display: block;
	width: 100%;
	overflow: hidden;
	line-height: 0;
	text-decoration: none;
	background: #f0f0f1;
}

.as-el-account__cover {
	display: block;
	width: 100%;
	height: auto;
	min-height: 160px;
	max-height: 220px;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: center;
	background: #f0f0f1;
	border: 0;
}

.as-el-account__cover--placeholder {
	display: block;
	width: 100%;
	min-height: 160px;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, #e8eaed 0%, #f5f6f7 100%);
}

.as-el-account__body {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding: 1rem 1.15rem 1.25rem;
	flex: 1 1 auto;
}

.as-el-account__title {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.35;
	font-weight: 650;
}

.as-el-account__title a {
	color: inherit;
	text-decoration: none;
}

.as-el-account__title a:hover,
.as-el-account__title a:focus {
	text-decoration: underline;
}

.as-el-account__excerpt {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	opacity: 0.8;
	flex: 1 1 auto;
}

.as-el-account__button {
	display: inline-block;
	align-self: flex-start;
	margin-top: auto;
	padding: 0.7rem 1.2rem;
	border: none;
	border-radius: 4px;
	background: #1d2327;
	color: #fff !important;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none !important;
	line-height: 1.3;
	cursor: pointer;
	transition: background 0.15s ease;
}

.as-el-account__button:hover,
.as-el-account__button:focus {
	background: #2c3338;
	color: #fff !important;
}

@media (max-width: 1024px) {
	.as-el-account__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.as-el-account__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.as-el-account__heading {
		font-size: 1.4rem;
	}
}
