/* Enfoque Bíblico authentication shell — Firebase Web */
.site-header {
	position: sticky !important;
	top: 0 !important;
}

@media (min-width: 783px) {
	.admin-bar .site-header {
		top: 32px !important;
	}
}

.header-login,
.header-register,
.mobile-nav__login {
	-webkit-appearance: none;
	appearance: none;
	font-family: var(--font-sans);
	cursor: pointer;
}

.site-header [hidden],
.account-page [hidden] {
	display: none !important;
}

.header-auth-actions {
	display: flex;
	width: 184px;
	flex: 0 0 184px;
	align-items: center;
	justify-content: flex-end;
}

.header-account-link,
html[data-eb-auth-state="signed-out"] .header-account-link,
html[data-eb-auth-state="signed-in"] .header-login,
html[data-eb-auth-state="signed-in"] [data-eb-auth-account-trigger],
html[data-eb-auth-state="signed-in"] .mobile-nav__login {
	display: none !important;
}

html[data-eb-auth-state="signed-in"] .header-account-link {
	display: inline-flex !important;
}

.header-login,
.header-register {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	border: 0;
	text-decoration: none;
}

.header-login {
	height: 42px;
	margin-left: 12px;
	padding: 0 10px;
	background: transparent;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.9rem;
	font-weight: 600;
}

.header-login:hover,
.header-login:focus-visible {
	background: transparent;
	color: #ff7b59;
}

.header-register {
	height: 38px;
	margin-left: 6px;
	padding: 0 16px;
	border-radius: 8px;
	background: var(--accent);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 750;
	white-space: nowrap;
}

.header-register:hover,
.header-register:focus-visible {
	background: var(--accent-strong);
	color: #fff;
}

@media (min-width: 1121px) {
	.platform-header__inner {
		justify-content: center;
	}

	.header-library-search {
		flex: 1 1 340px;
		margin-left: 24px;
	}
}

.mobile-nav__login {
	width: 100%;
	border: 0;
	background: transparent;
	text-align: left;
}

.mobile-nav__login .ui-icon {
	width: 20px;
	height: 20px;
}

.eb-auth[hidden],
.eb-auth [hidden] {
	display: none !important;
}

body.eb-auth-open {
	overflow: hidden;
}

.eb-auth {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: grid;
	place-items: center;
	padding: 24px;
}

.eb-auth__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(8, 10, 13, 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	cursor: default;
}

.eb-auth__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 480px);
	max-height: min(820px, calc(100dvh - 48px));
	overflow: auto;
	overscroll-behavior: contain;
	border: 1px solid rgba(23, 33, 43, 0.14);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
	animation: eb-auth-enter 180ms ease-out;
}

.eb-auth__topbar {
	display: flex;
}

.eb-auth__topbar,
.eb-auth__topbar + * {
	box-sizing: border-box;
}

.eb-auth__dialog > .eb-auth__topbar,
.eb-auth__dialog > .eb-auth__message,
.eb-auth__dialog > .eb-auth__guest,
.eb-auth__dialog > .eb-auth__account {
	width: 100%;
}

.eb-auth__dialog > .eb-auth__topbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 30px 20px;
}

.eb-auth__topbar h2 {
	margin: 0;
	color: var(--ink);
	font-size: 1.6rem;
	line-height: 1.15;
}

.eb-auth__eyebrow {
	display: block;
	margin-bottom: 6px;
	color: var(--accent-strong);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.eb-auth__close {
	display: inline-grid;
	flex: 0 0 40px;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: -5px -7px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f3f4f5;
	color: var(--ink);
	cursor: pointer;
}

.eb-auth__close:hover {
	background: #e8e9ea;
}

.eb-auth__close svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2;
}

.eb-auth__message {
	margin: 0 30px 18px;
	padding: 12px 14px;
	border: 1px solid #d8dee3;
	border-radius: 10px;
	background: #f5f7f8;
	color: #33414d;
	font-size: 0.86rem;
	line-height: 1.5;
}

.eb-auth__message[data-type="success"] {
	border-color: #b8d8c0;
	background: #f0f8f2;
	color: #295a35;
}

.eb-auth__message[data-type="error"] {
	border-color: #efb8b0;
	background: #fff3f1;
	color: #8b2418;
}

.eb-auth__guest,
.eb-auth__account {
	padding: 0 30px 30px;
}

.eb-auth__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	margin-bottom: 24px;
	padding: 4px;
	border-radius: 12px;
	background: #f1f2f3;
}

.eb-auth__tabs button {
	min-height: 42px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: #66717a;
	font-size: 0.84rem;
	font-weight: 750;
	cursor: pointer;
}

.eb-auth__tabs button[aria-selected="true"] {
	background: #fff;
	color: var(--ink);
	box-shadow: 0 3px 10px rgba(23, 33, 43, 0.1);
}

.eb-auth__form {
	display: grid;
	gap: 15px;
}

.eb-auth__form label {
	display: grid;
	gap: 7px;
	margin: 0;
}

.eb-auth__form label > span {
	color: #3d4852;
	font-size: 0.75rem;
	font-weight: 750;
}

.eb-auth__form input {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid #ccd2d7;
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	font-size: 0.94rem;
	box-shadow: none;
}

.eb-auth__form input:hover {
	border-color: #9ba5ad;
}

.eb-auth__form input:focus {
	border-color: var(--accent);
	outline: 3px solid rgba(253, 51, 1, 0.14);
}

.eb-auth__form small {
	color: #727b83;
	font-size: 0.7rem;
}

.eb-auth__primary,
.eb-auth__secondary,
.eb-auth__google,
.eb-auth__signout {
	display: inline-flex;
	width: 100%;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	gap: 11px;
	padding: 10px 16px;
	border-radius: 10px;
	font-size: 0.86rem;
	font-weight: 750;
	cursor: pointer;
}

.eb-auth__primary {
	margin-top: 3px;
	border: 1px solid var(--accent);
	background: var(--accent);
	color: #fff;
}

.eb-auth__primary:hover,
.eb-auth__primary:focus-visible {
	border-color: var(--accent-strong);
	background: var(--accent-strong);
	color: #fff;
}

.eb-auth__secondary {
	border: 1px solid #cdd3d8;
	background: #fff;
	color: var(--ink);
}

.eb-auth__secondary:hover {
	border-color: #9da6ad;
	background: #f7f8f8;
}

.eb-auth__google {
	border: 1px solid #cdd3d8;
	background: #fff;
	color: var(--ink);
}

.eb-auth__google:hover,
.eb-auth__google:focus-visible {
	border-color: #8d969e;
	background: #fafafa;
}

.eb-auth__google-mark {
	display: inline-grid;
	place-items: center;
	width: 25px;
	height: 25px;
	border: 1px solid #e3e5e7;
	border-radius: 50%;
	background: #fff;
	color: #4285f4;
	font-size: 0.96rem;
	font-weight: 850;
}

.eb-auth__text-button {
	display: block;
	margin: 13px auto 0;
	padding: 4px;
	border: 0;
	background: transparent;
	color: var(--accent-strong);
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
}

.eb-auth__text-button:hover {
	text-decoration: underline;
}

.eb-auth__separator {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	margin: 20px 0;
	color: #8b949b;
	font-size: 0.72rem;
}

.eb-auth__separator::before,
.eb-auth__separator::after {
	content: "";
	height: 1px;
	background: #e2e5e7;
}

.eb-auth__legal,
.eb-auth__intro {
	color: #68727a;
	font-size: 0.74rem;
	line-height: 1.55;
}

.eb-auth__legal {
	margin: 17px 0 0;
	text-align: center;
}

.eb-auth__intro {
	margin: 0 0 18px;
}

.eb-auth__profile {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 18px;
	border: 1px solid #e0e4e7;
	border-radius: 14px;
	background: #f8f9f9;
}

.eb-auth__avatar {
	display: grid;
	flex: 0 0 52px;
	place-items: center;
	width: 52px;
	height: 52px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--navy);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.eb-auth__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.eb-auth__profile strong,
.eb-auth__profile span {
	display: block;
}

.eb-auth__profile strong {
	color: var(--ink);
	font-size: 1rem;
}

.eb-auth__profile span {
	margin-top: 3px;
	color: #69737b;
	font-size: 0.78rem;
	overflow-wrap: anywhere;
}

.eb-auth__account-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 14px 0 20px;
}

.eb-auth__account-meta span {
	padding: 6px 9px;
	border-radius: 999px;
	background: #f1f2f3;
	color: #5a646c;
	font-size: 0.68rem;
	font-weight: 700;
}

.eb-auth__profile-form {
	margin-bottom: 12px;
}

.eb-auth__signout {
	margin-top: 12px;
	border: 1px solid transparent;
	background: transparent;
	color: #a43124;
}

.eb-auth__signout:hover {
	background: #fff2f0;
}

.eb-auth button[disabled] {
	opacity: 0.64;
	cursor: wait;
}

.account-page {
	min-height: 70vh;
	background: #f5f3ee;
}

.account-page__hero {
	padding: 58px 0 64px;
	background: #fff;
	border-bottom: 1px solid #e2ded5;
}

.account-page__hero-inner {
	max-width: 1180px;
}

.account-page__hero .breadcrumbs {
	margin-bottom: 20px;
}

.account-page__hero h1 {
	margin: 0;
	font-size: clamp(2.7rem, 5vw, 4.6rem);
	letter-spacing: -0.055em;
}

.account-page__hero p {
	max-width: 620px;
	margin: 18px 0 0;
	color: var(--ink-soft);
	font-size: 1.05rem;
}

.account-page__body {
	max-width: 1180px;
	padding-block: 54px 80px;
}

.account-page__message {
	margin-bottom: 22px;
	padding: 14px 16px;
	border: 1px solid #d8dee3;
	border-radius: 10px;
	background: #fff;
	color: #33414d;
	font-size: 0.88rem;
}

.account-page__message[data-type="success"] {
	border-color: #b8d8c0;
	background: #f0f8f2;
	color: #295a35;
}

.account-page__message[data-type="error"] {
	border-color: #efb8b0;
	background: #fff3f1;
	color: #8b2418;
}

.account-page__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 260px;
	color: #66717a;
	font-size: 0.88rem;
}

.account-page__loading span {
	width: 20px;
	height: 20px;
	border: 2px solid #d6d9dc;
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: eb-account-spin 0.8s linear infinite;
}

.account-page__guest {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 42px;
	padding: clamp(30px, 5vw, 58px);
	border: 1px solid #ddd8cd;
	border-radius: 18px;
	background: #fff;
}

.account-page__guest-copy > span,
.account-page__card-heading > span {
	display: block;
	margin-bottom: 8px;
	color: var(--accent-strong);
	font-size: 0.68rem;
	font-weight: 850;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.account-page__guest h2,
.account-page__card-heading h2 {
	margin: 0;
	color: var(--ink);
}

.account-page__guest h2 {
	font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.account-page__guest p,
.account-page__card-heading p {
	color: var(--ink-soft);
}

.account-page__guest p {
	margin: 13px 0 0;
}

.account-page__guest-actions {
	display: flex;
	flex: 0 0 auto;
	gap: 10px;
}

.account-page__grid {
	display: grid;
	grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
	align-items: start;
	gap: 28px;
}

.account-page__identity,
.account-page__card {
	border: 1px solid #ddd8cd;
	border-radius: 16px;
	background: #fff;
}

.account-page__identity {
	position: sticky;
	top: 104px;
	padding: 30px;
	text-align: center;
}

.admin-bar .account-page__identity {
	top: 136px;
}

.account-page__avatar {
	display: grid;
	place-items: center;
	width: 92px;
	height: 92px;
	margin: 0 auto 18px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--navy);
	color: #fff;
	font-size: 1.25rem;
	font-weight: 850;
	letter-spacing: 0.04em;
}

.account-page__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.account-page__identity h2 {
	margin: 0;
	color: var(--ink);
	font-size: 1.35rem;
}

.account-page__identity > p {
	margin: 5px 0 18px;
	color: #68727a;
	font-size: 0.8rem;
	overflow-wrap: anywhere;
}

.account-page__badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 7px;
	margin-bottom: 22px;
}

.account-page__badges span {
	padding: 6px 9px;
	border-radius: 999px;
	background: #f1f2f3;
	color: #5a646c;
	font-size: 0.65rem;
	font-weight: 750;
}

.account-page__settings {
	display: grid;
	gap: 20px;
}

.account-page__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(230px, 0.8fr);
	gap: 42px;
	padding: clamp(28px, 4vw, 44px);
}

.account-page__card--security {
	align-items: center;
}

.account-page__card-heading h2 {
	font-size: clamp(1.45rem, 2.7vw, 2rem);
}

.account-page__card-heading p {
	margin: 13px 0 0;
	font-size: 0.86rem;
	line-height: 1.65;
}

.account-page__form {
	display: grid;
	gap: 13px;
}

.account-page__form label {
	display: grid;
	gap: 7px;
}

.account-page__form label span {
	color: #3d4852;
	font-size: 0.75rem;
	font-weight: 750;
}

.account-page__form input {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid #ccd2d7;
	border-radius: 9px;
	background: #fff;
	box-shadow: none;
}

.account-page__form input:focus {
	border-color: var(--accent);
	outline: 3px solid rgba(253, 51, 1, 0.14);
}

.account-page__primary,
.account-page__secondary,
.account-page__signout,
.account-page__identity [data-eb-page-signout] {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border-radius: 9px;
	font-size: 0.8rem;
	font-weight: 750;
	cursor: pointer;
}

.account-page__primary {
	border: 1px solid var(--accent);
	background: var(--accent);
	color: #fff;
}

.account-page__primary:hover {
	border-color: var(--accent-strong);
	background: var(--accent-strong);
	color: #fff;
}

.account-page__secondary {
	border: 1px solid #cdd3d8;
	background: #fff;
	color: var(--ink);
}

.account-page__secondary:hover {
	border-color: #9da6ad;
	background: #f7f8f8;
}

.account-page__identity [data-eb-page-signout] {
	width: 100%;
	border: 1px solid transparent;
	background: transparent;
	color: #a43124;
	cursor: pointer;
}

.account-page__identity [data-eb-page-signout]:hover {
	background: #fff2f0;
}

@keyframes eb-account-spin {
	to { transform: rotate(360deg); }
}

@keyframes eb-auth-enter {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.985);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 1120px) {
	.site-header .menu-toggle {
		order: 4;
	}

	.header-auth-actions {
		order: 3;
		width: 108px;
		flex: 0 0 108px;
		margin-left: 4px;
	}

	.header-library-search,
	.header-login {
		display: none;
	}

	.header-register {
		order: initial;
		width: 100%;
		height: 30px;
		flex: 1 1 auto;
		margin: 0;
		padding: 0 8px;
		font-size: 0.7rem;
	}

	.mobile-nav__login,
	.site-header .primary-nav .mobile-nav__login,
	.site-header .primary-nav .mobile-nav__login:hover,
	.site-header .primary-nav .mobile-nav__login:focus-visible {
		display: inline-flex;
		height: 72px;
		align-items: center;
		gap: 10px;
		padding: 0 30px;
		border: 0;
		background: #fafafa;
		color: var(--ink);
		font-size: 0.82rem;
		font-weight: 750;
		text-decoration: none;
	}
}

@media (min-width: 783px) and (max-width: 1120px) {
	.admin-bar .site-header .primary-nav {
		top: 88px;
		height: calc(100dvh - 88px);
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px !important;
	}
}

@media (max-width: 850px) {
	.account-page__grid,
	.account-page__card {
		grid-template-columns: 1fr;
	}

	.account-page__identity {
		position: static;
	}
}

@media (max-width: 560px) {
	.eb-auth {
		align-items: end;
		padding: 0;
	}

	.eb-auth__dialog {
		width: 100%;
		max-height: calc(100dvh - 12px);
		border-width: 1px 0 0;
		border-radius: 20px 20px 0 0;
	}

	.eb-auth__dialog > .eb-auth__topbar {
		padding: 23px 22px 17px;
	}

	.eb-auth__message {
		margin-inline: 22px;
	}

	.eb-auth__guest,
	.eb-auth__account {
		padding: 0 22px 24px;
	}

	.account-page__hero {
		padding: 40px 0 44px;
	}

	.account-page__body {
		padding-block: 28px 54px;
	}

	.account-page__guest {
		align-items: stretch;
		flex-direction: column;
		gap: 26px;
	}

	.account-page__guest-actions {
		flex-direction: column;
	}

	.account-page__card {
		gap: 26px;
	}
}

@media (max-width: 370px) {
	.header-auth-actions {
		width: 96px;
		flex-basis: 96px;
	}

	.header-register {
		width: 100%;
		flex-basis: auto;
		font-size: 0.65rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eb-auth__dialog {
		animation: none;
	}
}
