/* Login und Passwort-Reset - eni webplattform */

:root {
	--brand: #0079a6;
	--brandDark: #005f84;
	--brandLight: #00a5d0;
	--text: #1f2933;
	--muted: #6b7a85;
	--border: #d5dde3;
	--bg: #eef3f6;
	--card: #ffffff;
	--errorText: #a3231a;
	--errorBg: #fdecea;
	--errorBorder: #e6b3ad;
	--successText: #1e7b34;
	--successBg: #e9f6ec;
	--successBorder: #a9d7b5;
}

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

body {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	margin: 0;
	padding: 32px 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: var(--text);
	background-color: var(--bg);
	background-image: radial-gradient(ellipse at 50% -20%, #ffffff 0%, var(--bg) 60%);
}

.loginPage {
	width: 100%;
	max-width: 400px;
}

.loginPage.isWide {
	max-width: 470px;
}

.loginLogo {
	display: block;
	width: 190px;
	height: auto;
	margin: 0 auto 28px;
}

.loginCard {
	position: relative;
	overflow: hidden;
	padding: 30px 30px 26px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(31, 41, 51, .04), 0 12px 28px rgba(31, 41, 51, .08);
}

.loginCard::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--brand) 0%, var(--brandLight) 100%);
}

.loginTitle {
	margin: 0 0 4px;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -.01em;
}

.loginIntro {
	margin: 0 0 22px;
	font-size: 13px;
	color: var(--muted);
}

.formField {
	margin-bottom: 16px;
}

.formField label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--muted);
}

.formField input[type="text"],
.formField input[type="email"],
.formField input[type="password"] {
	width: 100%;
	height: 42px;
	padding: 0 12px;
	font-family: inherit;
	font-size: 14px;
	color: var(--text);
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: 6px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.formField input[type="text"]:focus,
.formField input[type="email"]:focus,
.formField input[type="password"]:focus {
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgba(0, 121, 166, .15);
	outline: none;
}

.captchaField {
	display: flex;
	align-items: stretch;
	overflow: hidden;
	height: 46px;
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: 6px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.captchaField:focus-within {
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgba(0, 121, 166, .15);
}

.captchaImage {
	display: block;
	flex: none;
	width: 132px;
	height: 44px;
	border-right: 1px solid var(--border);
	filter: grayscale(1) brightness(1.12) contrast(1.35);
	user-select: none;
}

.captchaField input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0 12px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
	text-align: center;
	letter-spacing: .22em;
	background: none;
	border: 0;
}

.captchaField input[type="text"]::placeholder {
	font-size: 13px;
	font-weight: 400;
	letter-spacing: normal;
	color: #a9b4bc;
}

.captchaField input[type="text"]:focus {
	outline: none;
}

.captchaReload {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	padding: 0;
	color: var(--muted);
	background: #f7f9fa;
	border: 0;
	border-left: 1px solid var(--border);
	cursor: pointer;
	transition: color .15s ease, background .15s ease;
}

.captchaReload:hover {
	color: var(--brand);
	background: #eef3f6;
}

.formHint {
	margin: 0;
	font-size: 12px;
	color: var(--muted);
}

.btnPrimary {
	display: block;
	width: 100%;
	height: 44px;
	margin-top: 22px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	background: var(--brand);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	transition: background .15s ease;
}

.btnPrimary:hover {
	background: var(--brandDark);
}

.btnLink {
	padding: 0;
	font-family: inherit;
	font-size: 13px;
	color: var(--muted);
	background: none;
	border: 0;
	cursor: pointer;
}

.btnLink:hover {
	color: var(--brand);
	text-decoration: underline;
}

.cardFooter {
	margin-top: 20px;
	padding-top: 18px;
	text-align: center;
	border-top: 1px solid var(--border);
}

.cardFooter a {
	font-size: 13px;
	color: var(--brand);
	text-decoration: none;
}

.cardFooter a:hover {
	text-decoration: underline;
}

.alert {
	margin-bottom: 18px;
	padding: 12px 14px;
	font-size: 13px;
	border: 1px solid;
	border-left-width: 3px;
	border-radius: 6px;
}

.alertError {
	color: var(--errorText);
	background: var(--errorBg);
	border-color: var(--errorBorder);
}

.alertSuccess {
	color: var(--successText);
	background: var(--successBg);
	border-color: var(--successBorder);
}

.pwDialog {
	width: 100%;
	max-width: 400px;
	padding: 0;
	color: var(--text);
	background: transparent;
	border: 0;
}

.pwDialog[open] {
	position: static;
	margin: 22px 0 0;
}

.pwDialog:modal {
	position: fixed;
	margin: auto;
}

.pwDialog::backdrop {
	background: rgba(15, 35, 45, .5);
}

:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.loginCard {
		padding: 26px 20px 22px;
	}

	.loginLogo {
		width: 160px;
	}
}
