/* Page de connexion EMG — charte e-Medias Group (rendu serveur, aucun script). */

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations"), url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--emg-ink: #02031f;
	--emg-blue: #0a36f7;
	--emg-blue-hover: #2a52ff;
	--emg-cyan: #94f6ff;
	--emg-white: #f7feff;
	--emg-deep-1: #00072c;
	--emg-deep-2: #061651;
	--emg-deep-3: #0b2373;
	--emg-deep-4: #123498;
	--emg-muted: #a9b4d6;
	--emg-danger: #f04438;
	--emg-success: #12b76a;
	--emg-radius: 8px;
	color-scheme: dark;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
}

body.emg-login {
	min-height: 100vh;
	min-height: 100dvh;
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.55;
	color: var(--emg-white);
	background-color: var(--emg-ink);
	background-image:
		radial-gradient(1200px 600px at 85% -10%, rgba(18, 52, 152, 0.55), transparent 60%),
		radial-gradient(900px 500px at -10% 110%, rgba(10, 54, 247, 0.28), transparent 60%),
		linear-gradient(160deg, var(--emg-ink) 0%, var(--emg-deep-1) 55%, var(--emg-deep-2) 100%);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}

.emg-login__main {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px 16px;
	gap: 24px;
}

.emg-login__card {
	width: 100%;
	max-width: 420px;
	padding: 36px 32px 32px;
	border: 1px solid rgba(148, 246, 255, 0.12);
	border-radius: 12px;
	background: rgba(0, 7, 44, 0.72);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(12px);
}

.emg-login__brand {
	display: flex;
	justify-content: center;
	margin-bottom: 28px;
}

.emg-login__brand img {
	display: block;
	width: 200px;
	height: auto;
}

.emg-login__title {
	margin: 0 0 20px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	letter-spacing: -0.01em;
}

.emg-login__text {
	margin: 0 0 20px;
	font-weight: 300;
	color: var(--emg-muted);
}

.emg-login__text code {
	font-size: 12px;
	padding: 1px 6px;
	border-radius: 4px;
	background: var(--emg-deep-2);
	color: var(--emg-cyan);
}

.emg-login__link {
	margin: 20px 0 0;
	text-align: center;
}

.emg-login__link a {
	color: var(--emg-cyan);
	text-decoration: none;
	font-weight: 500;
}

.emg-login__link a:hover,
.emg-login__link a:focus-visible {
	text-decoration: underline;
}

.emg-login__footer {
	margin: 0;
	font-size: 12px;
	color: var(--emg-muted);
	opacity: 0.8;
}

.emg-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.emg-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.emg-field label {
	font-weight: 500;
	font-size: 13px;
	color: var(--emg-white);
}

.emg-field input {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	font: inherit;
	font-size: 15px;
	color: var(--emg-white);
	background: var(--emg-deep-2);
	border: 1px solid var(--emg-deep-4);
	border-radius: var(--emg-radius);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.emg-field input:hover {
	border-color: #1d46c4;
}

.emg-field input:focus {
	outline: none;
	border-color: var(--emg-cyan);
	box-shadow: 0 0 0 3px rgba(148, 246, 255, 0.25);
}

.emg-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.emg-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--emg-muted);
	cursor: pointer;
}

.emg-check input {
	width: 16px;
	height: 16px;
	accent-color: var(--emg-blue);
}

.emg-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	padding: 12px 20px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--emg-white);
	text-decoration: none;
	background: var(--emg-blue);
	border: 0;
	border-radius: var(--emg-radius);
	cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.emg-button:hover {
	background: var(--emg-blue-hover);
}

.emg-button:focus-visible,
.emg-check input:focus-visible,
.emg-login__link a:focus-visible {
	outline: 2px solid var(--emg-cyan);
	outline-offset: 2px;
}

.emg-alert {
	margin: 0 0 20px;
	padding: 12px 14px;
	border-radius: var(--emg-radius);
	border: 1px solid;
	font-size: 13px;
}

.emg-alert p {
	margin: 0;
}

.emg-alert p + p {
	margin-top: 6px;
}

.emg-alert--error {
	color: #ffd6d3;
	background: rgba(240, 68, 56, 0.12);
	border-color: rgba(240, 68, 56, 0.45);
}

.emg-alert--info {
	color: var(--emg-cyan);
	background: rgba(148, 246, 255, 0.08);
	border-color: rgba(148, 246, 255, 0.3);
}

.emg-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 480px) {
	.emg-login__card {
		padding: 28px 20px 24px;
		border-radius: 10px;
	}

	.emg-login__brand img {
		width: 170px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.emg-field input,
	.emg-button {
		transition: none;
	}
}
