/* Estilos scoped para pantallas externas de auth (login / recuperar / error login).
   No afecta el panel interno ni el menú autenticado. */

/* ——— Shell 2 columnas (login) ——— */
body.auth-externo .card_login.auth-shell {
	--auth-pad-y: 40px;
	--auth-pad-x: 36px;
	--auth-gap: 14px;
	width: min(780px, 94vw);
	margin: 40px auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	align-items: stretch;
	text-align: left;
	border: 0;
	border-radius: 14px;
	box-shadow: 0 14px 36px rgba(0, 60, 100, 0.18);
	overflow: hidden;
	background: #fff;
}

body.auth-externo .auth-shell__brand,
body.auth-externo .auth-shell__form {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--auth-pad-y) var(--auth-pad-x);
	box-sizing: border-box;
}

body.auth-externo .auth-shell__brand {
	position: relative;
	background:
		radial-gradient(120% 80% at 10% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 55%),
		linear-gradient(165deg, #0480c4 0%, #0369a1 48%, #02527d 100%);
	border-right: 0;
	color: #fff;
	overflow: hidden;
}

body.auth-externo .auth-shell__brand::before {
	content: "";
	position: absolute;
	right: -40%;
	bottom: -35%;
	width: 90%;
	height: 90%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
	pointer-events: none;
}

body.auth-externo .auth-shell__brand-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	max-width: 240px;
}

body.auth-externo .auth-shell__logo {
	display: block;
	width: 225px !important;
	height: auto !important;
	margin: -32px !important;
	filter: drop-shadow(0 6px 14px rgba(0, 30, 60, 0.28));
}

body.auth-externo .auth-shell__rule {
	display: block;
	width: 44px;
	height: 3px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.85);
}

body.auth-externo .auth-shell__lead {
	margin: 0;
	max-width: 22ch;
	color: rgba(255, 255, 255, 0.94);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: 0.01em;
	text-shadow: 0 1px 2px rgba(0, 40, 70, 0.2);
}

body.auth-externo .auth-shell__form {
	gap: 0;
}

body.auth-externo .auth-shell__title {
	margin: 0 0 20px;
	color: #0369a1;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

body.auth-externo .auth-shell__hint {
	margin: -10px 0 18px;
	color: #556677;
	font-size: 13px;
	line-height: 1.45;
}

body.auth-externo .auth-shell__note {
	margin: 12px 0 0;
	color: #556677;
	font-size: 13px;
	line-height: 1.45;
}

body.auth-externo .auth-shell__form .auth-field {
	margin: 0 0 var(--auth-gap);
}

body.auth-externo .auth-shell__form .auth-actions {
	margin-top: 6px;
}

body.auth-externo .auth-shell__form .auth-actions .large.awesome,
body.auth-externo .auth-shell__form .auth-actions input[type="submit"] {
	height: 42px;
	padding: 0 16px;
	line-height: 42px;
	font-size: 15px;
}

body.auth-externo .auth-recover {
	margin: var(--auth-gap) 0 0;
	text-align: left;
	font-size: 13px;
}

body.auth-externo .auth-recover--spaced {
	margin-top: 8px;
}

body.auth-externo .auth-recover__sep {
	margin: 0 8px;
	color: #99aab8;
}

body.auth-externo .auth-recover a {
	color: #037ecf;
	font-weight: 600;
	text-decoration: none;
}

body.auth-externo .auth-recover a:hover {
	text-decoration: underline;
}

/* ——— Card simple (recuperar / error licencia) ——— */
body.auth-externo .card_login:not(.auth-shell) {
	width: min(400px, 92vw);
	margin: 36px auto;
	text-align: left;
	border: 0;
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(0, 60, 100, 0.16);
	overflow: hidden;
	background: #fff;
}

body.auth-externo .card_login:not(.auth-shell) > img,
body.auth-externo .card_login .auth-brand img {
	display: block;
	width: 150px !important;
	height: auto !important;
	margin: 22px auto 8px !important;
}

body.auth-externo .card_login:not(.auth-shell) .card-body {
	padding: 8px 28px 24px;
}

body.auth-externo .card_login:not(.auth-shell) .card-footer {
	background: #f5f8fb;
	border-top: 1px solid #e6eef5;
	padding: 12px 20px;
	text-align: center;
	font-size: 13px;
}

body.auth-externo .card_login:not(.auth-shell) .card-footer a {
	color: #037ecf;
	text-decoration: none;
}

body.auth-externo .card_login:not(.auth-shell) .card-footer a:hover {
	text-decoration: underline;
}

body.auth-externo .auth-title {
	margin: 0 0 14px;
	text-align: center;
	color: #037ecf;
	font-size: 20px;
	line-height: 1.3;
}

body.auth-externo .auth-field {
	margin: 0 0 16px;
}

body.auth-externo .auth-field label {
	display: block;
	font-weight: 700;
	font-size: 13px;
	color: #2c3e50;
	margin-bottom: 6px;
}

body.auth-externo .card_login input[type="text"],
body.auth-externo .card_login input[type="email"],
body.auth-externo .card_login input[type="password"] {
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid #c9d6e2;
	border-radius: 6px;
	box-sizing: border-box;
	font-size: 14px;
	background: #fff;
}

body.auth-externo .card_login input[type="text"]:focus,
body.auth-externo .card_login input[type="email"]:focus,
body.auth-externo .card_login input[type="password"]:focus {
	outline: none;
	border-color: #037ecf;
	box-shadow: 0 0 0 3px rgba(3, 126, 207, 0.12);
}

body.auth-externo .auth-actions {
	margin-top: 8px;
}

body.auth-externo .auth-actions--stack {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

body.auth-externo .auth-actions .large.awesome,
body.auth-externo .auth-actions input[type="submit"],
body.auth-externo .auth-actions a.large.awesome {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 16px;
	font-size: 15px;
	border-radius: 6px;
	text-align: center;
	text-decoration: none;
}

body.auth-externo .auth-cta-confirm {
	background: #1f8f4e !important;
	border-color: #1f8f4e !important;
	color: #fff !important;
}

body.auth-externo .auth-cta-confirm:hover {
	background: #187a41 !important;
	color: #fff !important;
}

body.auth-externo .auth-cta-cancel {
	background: #c0392b !important;
	border-color: #c0392b !important;
	color: #fff !important;
}

body.auth-externo .auth-cta-cancel:hover {
	background: #a93226 !important;
	color: #fff !important;
}

/* RSVP paciente: sin menú/footer de navegación */
body.auth-externo--rsvp #main_index {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 0 40px;
	box-sizing: border-box;
}

body.auth-externo--rsvp #content_index {
	width: 100%;
}

body.auth-externo--rsvp .card_login.auth-shell {
	margin: 0 auto;
}

body.auth-externo .card_login .alert {
	text-align: left;
	margin-bottom: 16px;
	border-radius: 6px;
}

body.auth-externo .auth-list {
	margin: 0;
	padding-left: 18px;
	font-size: 13px;
	line-height: 1.55;
	color: #445566;
}

body.auth-externo .auth-list li {
	margin-bottom: 8px;
}

body.auth-externo .auth-subtitle {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	color: #2c3e50;
}

body.auth-externo .card_login.card_login--wide {
	width: min(440px, 94vw);
}

/* Shell informativo (Acerca de / páginas externas de contenido) */
body.auth-externo .card_login.auth-shell.auth-shell--info {
	width: min(880px, 94vw);
	grid-template-columns: minmax(240px, 0.88fr) minmax(0, 1.4fr);
}

body.auth-externo .auth-shell__copy {
	margin: 0 0 16px;
}

body.auth-externo .auth-shell__copy p {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.55;
	color: #445566;
}

body.auth-externo .auth-shell__copy p:last-child {
	margin-bottom: 0;
}

body.auth-externo .auth-shell__features {
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}

body.auth-externo .auth-shell__features li {
	position: relative;
	margin: 0 0 8px;
	padding: 9px 12px 9px 34px;
	border-radius: 8px;
	background: #f5f9fc;
	border: 1px solid #e3eef6;
	font-size: 13px;
	font-weight: 600;
	color: #2c3e50;
	line-height: 1.35;
}

body.auth-externo .auth-shell__features li::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border-radius: 50%;
	background: #037ecf;
}

/* Contenido largo (FAQ): alinear arriba y dar aire vertical */
body.auth-externo .auth-shell--info .auth-shell__form {
	justify-content: flex-start;
	padding-top: 32px;
	padding-bottom: 32px;
}

body.auth-externo #content_index.content_index--tall {
	align-items: flex-start;
	min-height: 0;
	padding-top: 28px;
	padding-bottom: 36px;
}

/* FAQ dentro del shell externo */
body.auth-externo .faq-item {
	border: 1px solid #e1ebf3;
	border-radius: 8px;
	margin-bottom: 10px;
	background: #fafcfe;
	overflow: hidden;
}

body.auth-externo .faq-item summary {
	cursor: pointer;
	list-style: none;
	padding: 12px 14px;
	font-weight: 700;
	font-size: 14px;
	color: #2c3e50;
	outline: none;
}

body.auth-externo .faq-item summary::-webkit-details-marker {
	display: none;
}

body.auth-externo .faq-item summary::after {
	content: "+";
	float: right;
	color: #037ecf;
	font-weight: 700;
}

body.auth-externo .faq-item[open] summary::after {
	content: "–";
}

body.auth-externo .faq-item[open] {
	background: #fff;
	border-color: #c9dcec;
}

body.auth-externo .faq-item .faq-answer {
	padding: 0 14px 14px;
	font-size: 13px;
	line-height: 1.55;
	color: #445566;
}

body.auth-externo .faq-item .faq-answer p {
	margin: 0 0 8px;
}

body.auth-externo .faq-item .faq-answer ul {
	margin: 8px 0 0 18px;
	padding: 0;
}

body.auth-externo .faq-item .faq-answer a {
	color: #037ecf;
}

/* Centrado vertical suave del área de contenido en viewport alto */
body.auth-externo #content_index {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 140px);
	box-sizing: border-box;
	padding-top: 24px;
	padding-bottom: 24px;
}

@media (max-width: 760px) {
	body.auth-externo .card_login.auth-shell {
		--auth-pad-y: 28px;
		--auth-pad-x: 24px;
		grid-template-columns: 1fr;
		width: min(400px, 94vw);
		margin: 24px auto;
	}

	body.auth-externo .card_login.auth-shell.auth-shell--info {
		width: min(420px, 94vw);
	}

	body.auth-externo .auth-shell__brand {
		border-right: 0;
		border-bottom: 0;
		text-align: center;
		align-items: center;
		padding-bottom: 28px;
		min-height: 180px;
	}

	body.auth-externo .auth-shell__brand-inner {
		align-items: center;
		max-width: none;
		text-align: center;
	}

	body.auth-externo .auth-shell__logo {
		width: 200px !important;
		margin: -24px !important;
	}

	body.auth-externo .auth-shell__lead {
		max-width: 28ch;
	}

	body.auth-externo .auth-shell__title {
		font-size: 22px;
		margin-bottom: 16px;
	}

	body.auth-externo #content_index {
		min-height: 0;
		align-items: flex-start;
	}
}

@media (max-width: 420px) {
	body.auth-externo .card_login:not(.auth-shell) .card-body {
		padding: 8px 18px 20px;
	}
}

/* Menú público colapsable (login / FAQ) — complementa styles.css */
@media (max-width: 767px) {
	body.auth-externo .header-externo.background_logo {
		height: auto;
		min-height: 56px;
		padding: 0;
	}

	body.auth-externo .header-externo .navbar-externo .navbar-collapse {
		margin-top: 4px;
		padding: 4px 0 10px;
		border-top: 1px solid rgba(255, 255, 255, 0.2);
	}

	body.auth-externo .header-externo .navbar-externo .navbar-nav {
		display: flex;
		flex-direction: column;
		width: 100%;
	}
}
