/* Login – schermata "1 Accesso a Diritti d'Autore" */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
	--navy: #13213c;
	--blue: #1673e6;
	--blue-dark: #0f5fc2;
	--text: #1d2433;
	--muted: #6b7489;
	--border: #dfe3ea;
	--beige: #f0e9e2;
	--font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

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

body.dda-login {
	display: flex;
	min-height: 100vh;
	font-family: var(--font);
	color: var(--text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

/* Lato sinistro: solo la foto dei libri */
.dda-login__visual {
	position: relative;
	flex: 0 0 50.5%;
	background: #efe7e0 var(--dda-login-img) 22% 100% / cover no-repeat;
}

/* Lato destro: modulo */
.dda-login__form-side {
	position: relative;
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 24px;
}
.dda-login__box { width: 100%; max-width: 466px; min-width: 0; }
.dda-login__back {
	position: absolute;
	top: 28px;
	left: 32px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px 9px 12px;
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--navy);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: border-color .15s, background-color .15s;
}
.dda-login__back:hover { border-color: var(--navy); background: #f7f8fa; }
.dda-login__back:focus-visible { outline: 3px solid rgba(22, 115, 230, .35); outline-offset: 2px; }
.dda-login__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.dda-login__brand {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 44px;
	font-size: 32px;
	font-weight: 600;
	color: var(--navy);
	letter-spacing: -0.01em;
}
.dda-login__brand svg { width: 64px; height: 64px; flex: 0 0 auto; }

.dda-login__title {
	margin: 0 0 12px;
	font-size: 44px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--navy);
}
.dda-login__subtitle { margin: 0 0 40px; font-size: 19px; color: var(--muted); }

.dda-login__alert {
	margin: -16px 0 24px;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 15px;
	background: #eaf3ff;
	color: #0f4fa3;
}
.dda-login__alert--error { background: #fdecec; color: #b42318; }

.dda-login__label { display: block; margin-bottom: 10px; font-size: 17px; font-weight: 500; }

.dda-login__field {
	position: relative;
	display: flex;
	align-items: center;
	height: 62px;
	margin-bottom: 26px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
.dda-login__field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 115, 230, .15); }
.dda-login__field > svg {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	margin: 0 14px 0 22px;
	fill: none;
	stroke: #2b3447;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.dda-login__field input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	font: inherit;
	font-size: 18px;
	color: var(--text);
}
.dda-login__field input::placeholder { color: #8a92a3; }
.dda-login__eye {
	display: grid;
	place-items: center;
	width: 52px;
	height: 100%;
	border: 0;
	background: none;
	cursor: pointer;
}
.dda-login__eye svg { width: 24px; height: 24px; fill: none; stroke: #2b3447; stroke-width: 1.7; }

.dda-login__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: -12px 0 36px;
	font-size: 16px;
}
.dda-login__row a { color: var(--blue); text-decoration: none; font-weight: 500; }
.dda-login__row a:hover { text-decoration: underline; }
.dda-login__remember { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }

.dda-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
	height: 62px;
	border: 0;
	border-radius: 6px;
	background: var(--blue);
	color: #fff;
	font: inherit;
	font-size: 20px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s;
}
.dda-btn-primary:hover { background: var(--blue-dark); }
.dda-btn-primary:focus-visible { outline: 3px solid rgba(22, 115, 230, .35); outline-offset: 2px; }
.dda-btn-primary svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
	.dda-login__visual { display: none; }
	.dda-login__form-side { padding: 84px 16px 32px; }
	.dda-login__back { top: 20px; left: 16px; }
	.dda-login__brand { font-size: 26px; margin-bottom: 32px; }
	.dda-login__brand svg { width: 48px; height: 48px; }
	.dda-login__title { font-size: 34px; }
	.dda-login__subtitle { font-size: 17px; margin-bottom: 28px; }
}
