/*
 * Hostsereno × Exal Pass — pagina /login/ + CTA menu Accedi/Esci
 *
 * Palette Hostsereno (kit Realvilla): primary #25212F, secondary/accent #013B94,
 * text #8B8B8B, light-grey #F5F5F5. Bottone Exal Pass: gold brand (#C9A96E).
 */

/* ─── Pagina /login/ ────────────────────────────────────────────────────── */
.exal-login-wrapper {
	min-height: calc(100vh - 200px);
	padding: 60px 20px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	background: linear-gradient(180deg, #F5F5F5 0%, #FFFFFF 100%);
}

.exal-login-card {
	width: 100%;
	max-width: 460px;
	background: #FFFFFF;
	border-radius: 14px;
	padding: 40px 36px;
	box-shadow: 0 10px 40px rgba(37, 33, 47, 0.08), 0 2px 8px rgba(37, 33, 47, 0.04);
	border: 1px solid rgba(37, 33, 47, 0.06);
}

.exal-login-header {
	text-align: center;
	margin-bottom: 28px;
}
.exal-login-title {
	font-size: 28px;
	line-height: 1.2;
	margin: 0 0 8px 0;
	color: #25212F;
	font-weight: 700;
}
.exal-login-subtitle {
	font-size: 15px;
	color: #8B8B8B;
	margin: 0;
	line-height: 1.5;
}

/* ─── Bottone SSO Exal Pass — sempre brand gold (NON coordinato col sito) ─ */
.exal-login-sso-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 14px 20px;
	background: linear-gradient(135deg, #C9A96E 0%, #B8965A 100%);
	color: #1A1A1A !important;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
	letter-spacing: 0.2px;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
	box-shadow: 0 4px 14px rgba(201, 169, 110, 0.35);
}
.exal-login-sso-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(201, 169, 110, 0.45);
	filter: brightness(1.05);
	color: #1A1A1A !important;
}
.exal-login-sso-icon {
	font-size: 18px;
	line-height: 1;
}
.exal-login-sso-hint {
	margin: 10px 0 0 0;
	font-size: 13px;
	color: #8B8B8B;
	text-align: center;
	line-height: 1.4;
}

/* ─── Divider ─────────────────────────────────────────────────────────── */
.exal-login-divider {
	position: relative;
	text-align: center;
	margin: 28px 0 24px 0;
}
.exal-login-divider::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: rgba(37, 33, 47, 0.12);
}
.exal-login-divider-text {
	position: relative;
	display: inline-block;
	padding: 0 14px;
	background: #FFFFFF;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: #8B8B8B;
	font-weight: 600;
}

/* ─── Form WP login skin Hostsereno ─────────────────────────────────────── */
#exal-login-form p {
	margin: 0 0 14px 0;
}
#exal-login-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #25212F;
	margin-bottom: 6px;
	text-transform: none;
	letter-spacing: 0.2px;
}
#exal-login-form input[type="text"],
#exal-login-form input[type="email"],
#exal-login-form input[type="password"] {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid rgba(37, 33, 47, 0.18);
	border-radius: 8px;
	font-size: 15px;
	color: #25212F;
	background: #FFFFFF;
	box-sizing: border-box;
	transition: border-color .15s ease, box-shadow .15s ease;
}
#exal-login-form input[type="text"]:focus,
#exal-login-form input[type="email"]:focus,
#exal-login-form input[type="password"]:focus {
	outline: none;
	border-color: #013B94;
	box-shadow: 0 0 0 3px rgba(1, 59, 148, 0.12);
}

#exal-login-form .login-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #25212F;
	margin: 4px 0 18px 0;
}
#exal-login-form .login-remember label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-weight: 500;
	font-size: 14px;
	cursor: pointer;
}
#exal-login-form .login-remember input[type="checkbox"] {
	margin: 0;
	width: 16px;
	height: 16px;
	accent-color: #013B94;
}

#exal-login-form .login-submit {
	margin: 0;
}
#exal-login-form input[type="submit"],
#exal-login-submit {
	width: 100%;
	padding: 13px 20px;
	background: #013B94;
	color: #FFFFFF;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	letter-spacing: 0.3px;
	transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
	box-shadow: 0 4px 14px rgba(1, 59, 148, 0.25);
}
#exal-login-form input[type="submit"]:hover,
#exal-login-submit:hover {
	background: #012C70;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(1, 59, 148, 0.35);
}

/* ─── Footer link ───────────────────────────────────────────────────────── */
.exal-login-footer {
	text-align: center;
	margin-top: 22px;
	font-size: 14px;
	color: #8B8B8B;
}
.exal-login-link {
	color: #013B94;
	text-decoration: none;
	font-weight: 500;
}
.exal-login-link:hover {
	text-decoration: underline;
}
.exal-login-footer-sep {
	margin: 0 8px;
	color: rgba(37, 33, 47, 0.3);
}

/* ─── Notice (logout / errore) ──────────────────────────────────────────── */
.exal-login-notice {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 22px;
	font-size: 14px;
	line-height: 1.4;
}
.exal-login-notice--ok {
	background: rgba(174, 247, 236, 0.6);
	color: #0F5A50;
	border: 1px solid rgba(15, 90, 80, 0.18);
}
.exal-login-notice--err {
	background: rgba(220, 38, 38, 0.08);
	color: #B91C1C;
	border: 1px solid rgba(185, 28, 28, 0.22);
}

/* ─── Voce "Accedi" nel main menu — testo blu, non bottone ──────────── */
li.exal-cta-login-item > a,
li.exal-cta-login > a {
	color: #013B94 !important;
	font-weight: 700 !important;
	transition: color .15s ease !important;
}
li.exal-cta-login-item > a:hover,
li.exal-cta-login > a:hover {
	color: #012C70 !important;
}

li.exal-menu-logout-item > a,
li.exal-menu-logout > a {
	color: #25212F !important;
	font-weight: 500 !important;
	transition: color .15s ease !important;
}
li.exal-menu-logout-item > a:hover,
li.exal-menu-logout > a:hover {
	color: #013B94 !important;
}

/* ─── Hide titolo pagina Hello Elementor su /login/ (già nell'h1 card) ── */
body.page .page-header:has(+ .page-content .exal-login-wrapper),
.exal-login-wrapper ~ .page-header,
body.page-template-default .page-header {
	/* fallback selettori: il primo (has) copre browser moderni */
}
.exal-login-page-active .page-header,
.exal-login-page-active .entry-title {
	display: none !important;
}

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 540px) {
	.exal-login-wrapper { padding: 32px 16px; }
	.exal-login-card { padding: 28px 22px; border-radius: 12px; }
	.exal-login-title { font-size: 24px; }
}
