/* Dear June email login / sign-up */

.lobje-auth[hidden],
[data-lobje-auth-view][hidden] {
	display: none !important;
}

.lobje-auth {
	position: fixed;
	inset: 0;
	z-index: 10060;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.lobje-auth__backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(28, 28, 28, 0.46);
}

.lobje-auth__dialog,
.lobje-auth-page .lobje-auth__grid {
	position: relative;
	z-index: 1;
	width: min(100%, 920px);
	max-height: min(90vh, 640px);
	background: #f7f4ee;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(20, 16, 12, 0.22);
}

.lobje-auth__dialog {
	display: flex;
	flex-direction: column;
	max-height: min(92vh, 640px);
	overflow: hidden;
}

.lobje-auth-page {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-height: min(72vh, 720px);
	padding: 2rem 1rem 3rem;
	box-sizing: border-box;
	background: #faf9f6;
}

.lobje-auth-page .lobje-auth__grid {
	box-shadow: 0 18px 48px rgba(20, 16, 12, 0.12);
	background: #f7f4ee;
	border-radius: 18px;
	overflow: hidden;
}

.lobje-auth__grid {
	display: grid;
	grid-template-columns: 1fr;
	min-height: 0;
	overflow: hidden;
}

.lobje-auth__dialog .lobje-auth__grid {
	flex: 1;
	min-height: 0;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.lobje-auth__panel {
	padding: 2rem 1.75rem 1.6rem;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	background: #f7f4ee;
}

.lobje-auth__title {
	margin: 0 0 1.35rem;
	text-align: left;
	font-family: "Urbanist", "Plus Jakarta Sans", system-ui, sans-serif;
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #16343c;
}

.lobje-auth__label {
	display: block;
	margin: 0 0 0.35rem;
	font-size: 0.84rem;
	font-weight: 500;
	color: #8d8d8d;
}

.lobje-auth__form .lobje-auth__label:not(:first-child) {
	margin-top: 0.15rem;
}

body.lobje-theme .lobje-auth__input,
body.lobje-theme .lobje-auth__input[type="email"],
body.lobje-theme .lobje-auth__input[type="password"],
body.lobje-theme .lobje-auth__input[type="text"],
body.lobje-theme .lobje-auth__input[type="tel"] {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 0.85rem;
	border: 1px solid #e4e0d8 !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: #1a1a1a !important;
	box-shadow: none !important;
	padding: 0.72rem 0.85rem !important;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
	font-size: 0.92rem !important;
	line-height: 1.3 !important;
}

body.lobje-theme .lobje-auth__input:focus {
	border-color: #c6b48a !important;
	outline: none;
}

.lobje-auth__pass {
	position: relative;
	display: block;
	width: 100%;
	margin: 0 0 0.85rem;
}

.lobje-auth__pass .lobje-auth__input {
	margin-bottom: 0 !important;
	padding-right: 2.75rem !important;
}

/* Edge / IE native password reveal overlaps the custom eye — hide it. */
body.lobje-theme .lobje-auth__pass .lobje-auth__input::-ms-reveal,
body.lobje-theme .lobje-auth__pass .lobje-auth__input::-ms-clear {
	display: none;
}

.lobje-auth__eye {
	position: absolute;
	top: 50%;
	right: 0.4rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #9a9a9a;
	cursor: pointer;
	pointer-events: auto;
	transform: translateY(-50%);
	-webkit-appearance: none;
	appearance: none;
	touch-action: manipulation;
}

.lobje-auth__eye:hover,
.lobje-auth__eye:focus-visible {
	color: #6a6a6a;
}

.lobje-auth__eye:focus-visible {
	outline: 2px solid #c6b48a;
	outline-offset: 2px;
}

.lobje-auth__eye svg {
	display: block;
	flex-shrink: 0;
	pointer-events: none;
}

.lobje-auth__forgot {
	margin: -0.35rem 0 0.9rem;
	text-align: right;
}

body.lobje-theme .lobje-auth__forgot a,
body.lobje-theme .lobje-auth__terms a,
body.lobje-theme a.lobje-auth__switch-link,
body.lobje-theme button.lobje-auth__switch-link {
	color: var(--lobje-gold, #a6814c);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

body.lobje-theme .lobje-auth__forgot a:hover,
body.lobje-theme .lobje-auth__terms a:hover,
body.lobje-theme a.lobje-auth__switch-link:hover,
body.lobje-theme button.lobje-auth__switch-link:hover,
body.lobje-theme .lobje-auth__forgot a:focus-visible,
body.lobje-theme .lobje-auth__terms a:focus-visible,
body.lobje-theme a.lobje-auth__switch-link:focus-visible,
body.lobje-theme button.lobje-auth__switch-link:focus-visible {
	color: var(--lobje-gold-dark, #8f7040);
	text-decoration: underline;
}

body.lobje-theme .lobje-auth__btn {
	appearance: none;
	display: block;
	width: 100%;
	margin-top: 0.15rem;
	border: 0 !important;
	border-radius: 8px !important;
	background: #b8956a !important;
	color: #fff !important;
	padding: 0.82rem 1rem !important;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
	font-size: 0.98rem !important;
	font-weight: 600 !important;
	cursor: pointer;
}

body.lobje-theme .lobje-auth__btn:hover:not(:disabled) {
	background: #a68458 !important;
}

body.lobje-theme .lobje-auth__btn:disabled {
	background: #e4d3b5 !important;
	color: #fff !important;
	cursor: not-allowed;
}

.lobje-auth__terms {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	margin: 0.15rem 0 0.9rem;
	font-size: 0.82rem;
	line-height: 1.45;
	color: #3a3a3a;
}

.lobje-auth__terms input {
	margin-top: 0.15rem;
	flex: 0 0 auto;
}

.lobje-auth__msg {
	margin: 0.7rem 0 0;
	font-size: 0.82rem;
	color: #b42318;
	text-align: center;
}

.lobje-auth__switch {
	margin: 1.35rem 0 0;
	text-align: center;
	font-size: 0.92rem;
	font-weight: 700;
	color: #1a1a1a;
}

.lobje-auth__switch-link {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.lobje-auth__media {
	display: none;
	position: relative;
	min-height: 100%;
	background: #efe8dc;
}

.lobje-auth__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 460px;
}

body.lobje-theme .lobje-auth__close {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem !important;
	height: 2rem !important;
	min-width: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: rgba(20, 20, 20, 0.55) !important;
	color: #fff !important;
	cursor: pointer;
	line-height: 0;
}

.lobje-auth__note {
	margin: 0 0 1rem;
	text-align: center;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #666;
}

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

@media (min-width: 800px) {
	.lobje-auth__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
		align-items: stretch;
	}

	.lobje-auth__panel {
		padding: 2.4rem 2.1rem 1.8rem;
	}

	.lobje-auth__media {
		display: block;
	}

	.lobje-auth__dialog .lobje-auth__grid {
		overflow: hidden;
	}

	.lobje-auth__dialog .lobje-auth__panel {
		overflow-y: auto;
		max-height: min(90vh, 640px);
		-webkit-overflow-scrolling: touch;
	}
}

@media (max-width: 799px) {
	.lobje-auth {
		padding: 1rem;
		align-items: center;
		justify-content: center;
		overflow: auto;
	}

	.lobje-auth__dialog {
		width: min(100%, 26rem);
		max-height: min(92vh, 720px);
		margin: auto;
	}

	.lobje-auth-page {
		padding: 1.25rem 1rem 2rem;
		min-height: auto;
	}

	.lobje-auth-page .lobje-auth__grid {
		width: min(100%, 26rem);
		max-height: none;
	}

	.lobje-auth__panel {
		padding: 1.5rem 1.25rem 1.35rem;
	}

	.lobje-auth__title {
		font-size: 1.65rem;
	}

	.lobje-auth__grid {
		grid-template-columns: 1fr;
	}

	/* Popup: form only — no hero image on phone */
	.lobje-auth__dialog .lobje-auth__media {
		display: none !important;
	}

	/* Standalone account login page can still show image if needed */
	.lobje-auth-page .lobje-auth__media {
		display: none !important;
	}

	body.lobje-theme .lobje-auth__close {
		top: 0.65rem;
		right: 0.65rem;
		background: rgba(20, 20, 20, 0.55) !important;
		color: #fff !important;
	}
}
