/* ==========================================================================
   Naiella — customer sign-in pages (Booknetic Pro: sign in, sign up,
   forgot password). A brand panel beside the form card; colours, fonts and
   corners are the active design's and look's --h-* tokens.
   Booknetic ships its own reset (".booknetic_login *" unsets everything) and
   many !important rules: the selectors here are scoped by .h-auth so they
   win on specificity, with !important only where Booknetic uses it.
   ========================================================================== */

.h-auth-wrap { padding-top: 48px; padding-bottom: 96px; }

.h-auth {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	width: 100%; max-width: 1040px; margin-inline: auto;
	background: var(--h-surface); color: var(--h-ink);
	border: 1px solid var(--h-line); border-radius: var(--h-r-xl);
	overflow: hidden;
	box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .35);
	text-align: left;
}
.h-design-studio .h-auth { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05); }
/* In an Elementor shortcode widget the page template adds no room around it. */
.elementor-widget-shortcode .h-auth { margin-block: 40px 80px; }

/* ---------- Brand panel ---------- */
.h-auth__aside {
	position: relative; isolation: isolate;
	display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
	min-height: 560px; padding: 44px 44px 48px;
	color: #FFFFFF;
	background:
		radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--h-accent) 38%, transparent), transparent 60%),
		var(--h-hero);
}
.h-auth__aside.has-img { background: var(--h-hero); }
.h-auth__aside.has-img::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .78)), var(--h-auth-img) center / cover no-repeat;
}
.h-auth__brand .h-brand { color: #FFFFFF; }
@media (hover: hover) and (pointer: fine) {
	.h-auth__brand .h-brand:hover { color: #FFFFFF; }
}
.h-auth__brand .h-brand__top { opacity: .75; color: #FFFFFF; }
.h-auth__brand .h-brand__name { font-size: 26px; }
.h-auth__brand .h-brand__logo { max-height: 44px; }
.h-auth__eyebrow {
	display: block; margin-bottom: 12px;
	font-size: 12px; font-weight: 600; line-height: 1.33; letter-spacing: .2em; text-transform: uppercase;
	color: rgba(255, 255, 255, .72);
}
.h-auth__title {
	margin: 0 0 28px; max-width: 360px;
	font-family: var(--h-font-head); font-weight: var(--h-head-weight);
	text-transform: var(--h-head-case); letter-spacing: var(--h-head-track);
	font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; color: #FFFFFF; text-wrap: balance;
}
.h-auth__points { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.h-auth__points li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, .88); }
.h-auth__points .h-icon {
	flex: none; width: 28px; height: 28px; padding: 5px;
	border-radius: 999px; background: rgba(255, 255, 255, .14); color: #FFFFFF;
}

/* ---------- Form card ---------- */
/* Signed in already, or an account without bookings: a short card. */
.h-auth__signed { display: flex; flex-direction: column; gap: 14px; }
.h-auth .h-auth__heading {
	margin: 0; color: var(--h-ink);
	font-family: var(--h-font-head); font-weight: var(--h-head-weight);
	text-transform: var(--h-head-case); letter-spacing: var(--h-head-track);
	font-size: 30px; line-height: 1.15;
}
.h-auth__lead { margin: 0; font-size: 15px; line-height: 1.6; color: var(--h-muted); }
.h-auth__lead strong { color: var(--h-ink); font-weight: 600; }
.h-auth__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.h-auth__switch { margin: 8px 0 0; padding-top: 18px; border-top: 1px solid var(--h-line); font-size: 14px; color: var(--h-muted); text-align: center; }
.h-auth__switch a { color: var(--h-ink); font-weight: 600; }

.h-auth__card { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 52px 56px; }

.h-auth__card > .booknetic_login,
.h-auth__card > .booknetic_signup,
.h-auth__card > .booknetic_forgot_password {
	width: 100% !important; max-width: none !important; height: auto !important;
	margin: 0 !important; padding: 0 !important;
	background: transparent !important; box-shadow: none !important; border-radius: 0 !important;
}
.h-auth .booknetic_login *, .h-auth .booknetic_signup *, .h-auth .booknetic_forgot_password * { font-family: var(--h-font-body) !important; }

.h-auth .booknetic_header,
.h-auth .booknetic_signup_completed_title,
.h-auth .booknetic_forgot_password_completed_title {
	margin: 0 0 6px; padding: 0;
	text-align: left; color: var(--h-ink);
	font-family: var(--h-font-head) !important; font-weight: var(--h-head-weight);
	text-transform: var(--h-head-case); letter-spacing: var(--h-head-track);
	font-size: 30px; line-height: 1.15;
}

.h-auth .booknetic_form { display: block; margin-top: 28px; padding: 0 !important; }
.h-auth .booknetic_form_element { margin: 0 0 18px !important; text-align: left !important; }
.h-auth .booknetic_form label {
	display: block; margin: 0 0 8px;
	font-size: 12px !important; font-weight: 600 !important; line-height: 1.33 !important;
	color: var(--h-ink) !important; letter-spacing: 0; text-transform: none;
}
.h-auth .booknetic_form input,
.h-auth .booknetic_form input[type="text"],
.h-auth .booknetic_form input[type="password"],
.h-auth .booknetic_form input[type="email"] {
	display: block; box-sizing: border-box;
	width: 100% !important; height: 48px !important; margin: 0;
	padding: 0 16px !important;
	border: 1px solid var(--h-line-2, var(--h-line)) !important;
	border-radius: var(--h-r-input, var(--h-r-btn)) !important;
	background-color: var(--h-surface) !important; color: var(--h-ink) !important;
	font-size: 15px !important; line-height: 1.4; box-shadow: none !important;
	transition: border-color .2s ease, box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) {
	.h-auth .booknetic_form input:hover { border-color: var(--h-muted) !important; }
}
.h-auth .booknetic_form input:focus {
	outline: none !important;
	border-color: var(--h-accent) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--h-accent) 22%, transparent) !important;
}
.h-auth .bkntc-password-input { position: relative; }
.h-auth .bkntc-password-input input { padding-right: 52px !important; }
.h-auth .bkntc-toggle-password-visibility {
	top: 50% !important; right: 6px !important;
	width: 40px !important; height: 40px !important;
	display: inline-flex !important; align-items: center !important; justify-content: center !important;
	border-radius: 999px !important; cursor: pointer !important;
}
.h-auth .bkntc-toggle-password-visibility:focus-visible { outline: 2px solid var(--h-accent) !important; outline-offset: 0 !important; }
.h-auth .bkntc-eye-icon { line-height: 0; }
.h-auth .bkntc-eye-icon svg { width: 18px; height: 18px; fill: var(--h-muted); }

/* "Forgot password?" */
.h-auth .booknetic_form a.booknetic_forgot_password {
	display: inline-flex; align-items: center; min-height: 32px;
	color: var(--h-muted) !important; font-size: 13px !important; text-decoration: none !important;
}
@media (hover: hover) and (pointer: fine) {
	.h-auth .booknetic_form a.booknetic_forgot_password:hover { color: var(--h-ink) !important; text-decoration: underline !important; text-underline-offset: 3px; }
}
.h-auth .booknetic_form a.booknetic_forgot_password img { display: none !important; }

/* Buttons */
.h-auth .booknetic_btn_primary {
	display: inline-flex !important; align-items: center !important; justify-content: center !important;
	box-sizing: border-box; width: 100% !important; height: 52px !important; margin: 6px 0 0 !important;
	padding: 0 24px !important;
	border: 0 none !important; border-radius: var(--h-r-btn) !important;
	background-color: var(--h-btn) !important; color: var(--h-btn-ink) !important;
	font-size: 15px !important; font-weight: 600 !important; line-height: 1.2 !important;
	text-transform: none !important; letter-spacing: 0 !important; text-decoration: none !important;
	cursor: pointer; transition: opacity .2s ease, transform .16s cubic-bezier(.23, 1, .32, 1);
}
@media (hover: hover) and (pointer: fine) {
	.h-auth .booknetic_btn_primary:hover { opacity: .92; color: var(--h-btn-ink) !important; }
}
.h-auth .booknetic_btn_primary:active { transform: scale(.98); }
.h-auth .booknetic_btn_primary:focus-visible { outline: 2px solid var(--h-accent) !important; outline-offset: 3px !important; }

/* Sign up: first and last name side by side */
.h-auth .booknetic_signup .booknetic_form_element[style] { gap: 12px; }
.h-auth .booknetic_customer_info { flex: 1 1 0; min-width: 0; max-width: none !important; }

/* Footer line ("Don't have an account? Sign up") */
.h-auth .booknetic_footer {
	margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--h-line);
	text-align: center; color: var(--h-muted); font-size: 14px; font-weight: 400; line-height: 1.5;
}
.h-auth .booknetic_footer a {
	margin-left: 6px; color: var(--h-ink); font-size: 14px; font-weight: 600;
	text-decoration: underline !important; text-underline-offset: 3px; cursor: pointer;
}
.h-auth .booknetic_footer a:first-child { margin-left: 0; }
@media (hover: hover) and (pointer: fine) {
	.h-auth .booknetic_footer a:hover { color: var(--h-accent); }
}

/* ---------- "Check your email", "Not activated", "Done" states ---------- */
.h-auth .booknetic_check_your_email {
	margin: 12px 0 0 !important; text-align: left !important;
	color: var(--h-body) !important; font-size: 15px !important; font-weight: 400 !important; line-height: 1.65;
}
.h-auth .booknetic_email_success,
.h-auth .booknetic_signup_completed,
.h-auth .booknetic_forgot_password_completed {
	position: relative; display: block !important;
	width: 64px; height: 64px; margin: 0 0 20px !important; padding: 0 !important;
}
.h-auth .booknetic_email_success { margin: 28px 0 0 !important; }
.h-auth .booknetic_email_success img,
.h-auth .booknetic_signup_completed img,
.h-auth .booknetic_forgot_password_completed img { display: none !important; }
.h-auth .booknetic_email_success::before,
.h-auth .booknetic_signup_completed::before,
.h-auth .booknetic_forgot_password_completed::before {
	content: ""; position: absolute; inset: 0; display: block;
	border-radius: 999px; background: color-mix(in srgb, var(--h-accent) 14%, var(--h-surface));
}
.h-auth .booknetic_email_success::after,
.h-auth .booknetic_signup_completed::after,
.h-auth .booknetic_forgot_password_completed::after {
	content: ""; position: absolute; inset: 18px; display: block; background: var(--h-accent);
	-webkit-mask: var(--h-auth-icon) center / contain no-repeat; mask: var(--h-auth-icon) center / contain no-repeat;
}
.h-auth .booknetic_email_success {
	--h-auth-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
}
.h-auth .booknetic_signup_completed,
.h-auth .booknetic_forgot_password_completed {
	--h-auth-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.h-auth .booknetic_signup_completed_subtitle,
.h-auth .booknetic_forgot_password_completed_subtitle {
	margin-top: 8px; padding: 0 !important; text-align: left !important;
	color: var(--h-body); font-size: 15px; line-height: 1.65;
}
.h-auth .booknetic_forgot_password_completed_footer, .h-auth .booknetic_signup_completed_footer { display: block; margin-top: 24px; }
.h-auth a.booknetic_goto_dashboard_btn { width: 100% !important; height: 52px !important; }

/* ---------- Phones and narrow columns ---------- */
@media (max-width: 899px) {
	.h-auth { grid-template-columns: minmax(0, 1fr); }
	.h-auth__aside { min-height: 0; gap: 18px; padding: 24px 24px 26px; }
	.h-auth__title { margin: 0; font-size: 22px; }
	.h-auth__eyebrow { margin-bottom: 8px; }
	.h-auth__points { display: none; }
	.h-auth__card { padding: 32px 24px 36px; }
	.h-auth .booknetic_header { font-size: 26px; }
}
@media (max-width: 639px) {
	.h-auth-wrap { padding-top: 24px; padding-bottom: 64px; }
}

/* ---------- Toasts ("Email or password is incorrect!") ----------
   Booknetic Pro's sign-in scripts point the toast icon at icons/*.svg under
   Pro's own assets, where there are none (they are core's): a broken image.
   The skin draws the icon instead, and keeps the toast below the header. */
body.h-auth-page #booknetic-toastr {
	top: calc(var(--h-header-h, 72px) + 16px); right: 16px; width: min(380px, calc(100vw - 32px));
	border-radius: var(--h-r-md); overflow: hidden;
	font-family: var(--h-font-body);
}
body.h-auth-page #booknetic-toastr > .booknetic-toast-img {
	position: relative; width: 48px; height: 48px; margin: 16px; padding: 0;
	border: 0; border-radius: 999px; background: color-mix(in srgb, #12805C 14%, var(--h-surface)); color: #12805C;
}
body.h-auth-page #booknetic-toastr > .booknetic-toast-img:has(img[src*="unsuccess"]) { background: color-mix(in srgb, #C0362C 14%, var(--h-surface)); color: #C0362C; }
body.h-auth-page #booknetic-toastr > .booknetic-toast-img > img { display: none !important; }
body.h-auth-page #booknetic-toastr > .booknetic-toast-img::after {
	content: ""; position: absolute; inset: 14px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.h-auth-page #booknetic-toastr > .booknetic-toast-img:has(img[src*="unsuccess"])::after {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}
body.h-auth-page #booknetic-toastr > .booknetic-toast-details { width: calc(100% - 120px); }
/* The close button is a Font Awesome icon on a white block; Font Awesome is not loaded here. */
body.h-auth-page #booknetic-toastr .booknetic-toast-remove {
	right: 10px; width: 36px; height: 36px; border-radius: 999px; background: transparent; color: var(--h-muted);
}
@media (hover: hover) and (pointer: fine) {
	body.h-auth-page #booknetic-toastr .booknetic-toast-remove:hover { background: var(--h-soft); color: var(--h-ink); }
}
body.h-auth-page #booknetic-toastr .booknetic-toast-remove .fa { display: none; }
body.h-auth-page #booknetic-toastr .booknetic-toast-remove::after {
	content: ""; position: absolute; inset: 11px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.h-auth-page #booknetic-toastr > .booknetic-toast-details > .booknetic-toast-description { color: var(--h-ink); font-family: var(--h-font-body) !important; }

/* No booking clutter on the sign-in pages. */
body.h-auth-page .h-mbar, body.h-auth-page .h-wa-float { display: none !important; }
body.h-auth-page.h-has-mbar { padding-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
	.h-auth .booknetic_btn_primary, .h-auth .booknetic_form input { transition: none; }
	.h-auth .booknetic_btn_primary:active { transform: none; }
}

@media (pointer: coarse) {
	.h-auth .booknetic_form input,
	.h-auth .booknetic_form input[type="text"],
	.h-auth .booknetic_form input[type="password"],
	.h-auth .booknetic_form input[type="email"] { font-size: 16px !important; }
}
