/* Healthy Skin Care – landing / login (scroll-safe overrides for common.css) */
:root {
	--brand: #9E3E3E;
	--brand-dark: #7a2f2f;
	--brand-light: #fceaea;
	--brand-glow: rgba(158, 62, 62, 0.14);
	--text: #1f2937;
	--text-muted: #6b7280;
	--surface: #ffffff;
	--border: #e5e7eb;
	--google-blue: #4285f4;
	--radius: 16px;
	--radius-sm: 12px;
	--shadow: 0 2px 16px rgba(15, 23, 42, 0.06);
	--shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.1);
	--header-h: 72px;
}

/* Fix global body { position:absolute; height:100% } from common.css */
html.landing-root {
	scroll-behavior: smooth;
	height: auto;
	overflow-x: hidden;
	-webkit-text-size-adjust: 100%;
}

html.landing-root body.landing-page {
	position: relative !important;
	width: 100% !important;
	height: auto !important;
	min-height: 100vh !important;
	overflow-x: hidden !important;
	overflow-y: visible !important;
	background: #f7f5f4 !important;
	background-attachment: scroll !important;
}

.landing-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	color: var(--text);
}

.landing-page::before {
	content: '';
	position: fixed;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 45% at 10% 0%, var(--brand-glow), transparent 55%),
		radial-gradient(ellipse 50% 35% at 95% 90%, rgba(66, 133, 244, 0.05), transparent 50%);
	pointer-events: none;
	z-index: 0;
}

/* Header */
.landing-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: rgba(255, 255, 255, 0.88);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.landing-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 24px;
	min-height: var(--header-h);
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.landing-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.landing-brand img {
	height: 44px;
	width: auto;
	flex-shrink: 0;
}

.landing-brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
	min-width: 0;
}

.landing-brand-text strong {
	font-size: 15px;
	color: var(--text);
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.landing-brand-text span {
	font-size: 10px;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.landing-header-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
}

.landing-header-nav-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--brand) !important;
	text-decoration: none;
	padding: 8px 14px;
	border-radius: 8px;
	border: 1px solid rgba(158, 62, 62, 0.2);
	background: var(--brand-light);
	transition: background 0.2s;
}

.landing-header-nav-link:hover {
	background: #f8dede;
}

.landing-header-nav a {
	font-size: 13px;
	font-weight: 500;
	color: var(--text-muted);
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 8px;
	transition: color 0.2s, background 0.2s;
}

.landing-header-nav a:hover {
	color: var(--brand);
	background: var(--brand-light);
}

.landing-header-badge {
	font-size: 11px;
	font-weight: 600;
	color: var(--brand);
	background: var(--brand-light);
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid rgba(158, 62, 62, 0.12);
	white-space: nowrap;
}

.landing-header-badge i {
	margin-right: 4px;
}

.landing-header-cta {
	display: none;
	font-size: 13px;
	font-weight: 600;
	color: #fff !important;
	background: linear-gradient(135deg, var(--brand), var(--brand-dark));
	padding: 8px 16px;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 4px 12px var(--brand-glow);
}

.d-mobile-only {
	display: none;
}

/* Main layout */
.landing-main {
	flex: 1 0 auto;
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 24px 48px;
	width: 100%;
	box-sizing: border-box;
}

.landing-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
	gap: 40px;
	align-items: start;
}

.landing-hero {
	min-width: 0;
	animation: landingFadeUp 0.55s ease both;
}

.landing-login-card {
	animation: landingFadeUp 0.55s ease 0.08s both;
}

@keyframes landingFadeUp {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Hero banner */
.landing-hero-banner {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 24px;
	box-shadow: var(--shadow-lg);
	background: linear-gradient(145deg, var(--brand-dark), var(--brand));
	max-height: 240px;
}

.landing-hero-banner img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	object-position: center top;
	display: block;
	opacity: 0.88;
}

.landing-hero-banner-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, rgba(58, 20, 20, 0.82) 0%, rgba(58, 20, 20, 0.35) 55%, transparent 100%);
	display: flex;
	align-items: center;
	padding: 28px 32px;
}

.landing-hero-banner-overlay h1 {
	margin: 0;
	font-size: clamp(1.35rem, 3vw, 1.85rem);
	font-weight: 700;
	color: #fff;
	line-height: 1.25;
	max-width: 520px;
}

.landing-hero-banner-overlay p {
	margin: 8px 0 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.88);
	max-width: 480px;
	line-height: 1.5;
}

.landing-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 22px;
}

.landing-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	font-weight: 500;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border);
	padding: 7px 13px;
	border-radius: 999px;
	box-shadow: var(--shadow);
}

.landing-pill i {
	color: var(--brand);
	font-size: 13px;
}

.landing-intro {
	font-size: 15px;
	color: var(--text-muted);
	line-height: 1.75;
	margin: 0 0 26px;
}

.landing-intro strong {
	color: var(--text);
	font-weight: 600;
}

.landing-section-title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--brand);
	margin: 0 0 12px;
}

/* Features */
.landing-features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 28px;
}

.landing-feature {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 14px 16px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.landing-feature:hover {
	box-shadow: var(--shadow);
	border-color: rgba(158, 62, 62, 0.2);
}

.landing-feature-icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: linear-gradient(145deg, var(--brand-light), #fff);
	border: 1px solid rgba(158, 62, 62, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.landing-feature-icon i {
	color: var(--brand);
	font-size: 16px;
}

.landing-feature strong {
	display: block;
	font-size: 13px;
	color: var(--text);
	margin-bottom: 3px;
	font-weight: 600;
}

.landing-feature span {
	font-size: 12px;
	color: var(--text-muted);
	line-height: 1.45;
}

/* Google box */
.landing-google-box {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	margin-bottom: 8px;
}

.landing-google-header {
	background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
	border-bottom: 1px solid var(--border);
	padding: 16px 20px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.landing-google-header svg {
	flex-shrink: 0;
	margin-top: 2px;
}

.landing-google-header h2 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--text);
}

.landing-google-header p {
	margin: 3px 0 0;
	font-size: 12px;
	color: var(--text-muted);
}

.landing-google-body {
	padding: 20px;
}

.landing-google-summary {
	font-size: 14px;
	color: var(--text-muted);
	line-height: 1.7;
	margin: 0 0 16px;
}

.landing-google-summary a {
	color: var(--google-blue);
	text-decoration: none;
	font-weight: 500;
}

.landing-google-summary a:hover {
	text-decoration: underline;
}

.landing-google-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

.landing-google-col {
	background: #fafafa;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 14px 16px;
}

.landing-google-col h3 {
	font-size: 12px;
	font-weight: 700;
	color: var(--text);
	margin: 0 0 8px;
	display: flex;
	align-items: center;
	gap: 7px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.landing-google-col h3 i {
	color: var(--google-blue);
}

.landing-google-col ul {
	margin: 0;
	padding-left: 16px;
}

.landing-google-col li {
	font-size: 12px;
	color: var(--text-muted);
	line-height: 1.55;
	margin-bottom: 6px;
}

.landing-google-col li strong {
	color: var(--text);
}

.landing-notice {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 12px;
	color: #713f12;
	background: linear-gradient(180deg, #fffbeb, #fef9e7);
	border: 1px solid #fde68a;
	border-radius: var(--radius-sm);
	padding: 12px 14px;
	line-height: 1.55;
}

.landing-notice i {
	color: #d97706;
	margin-top: 2px;
	flex-shrink: 0;
}

/* Login card – sticky on desktop */
.landing-login-card {
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	padding: 0 28px 28px;
	border: 1px solid var(--border);
	position: sticky;
	top: calc(var(--header-h) + 12px);
	max-height: calc(100vh - var(--header-h) - 24px);
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scroll-margin-top: calc(var(--header-h) + 12px);
}

.landing-login-card::-webkit-scrollbar {
	width: 5px;
}

.landing-login-card::-webkit-scrollbar-thumb {
	background: #ddd;
	border-radius: 4px;
}

.landing-login-card::before {
	content: '';
	display: block;
	height: 4px;
	background: linear-gradient(90deg, var(--brand), #c45c5c, var(--brand-dark));
	border-radius: var(--radius) var(--radius) 0 0;
	margin: 0 -28px 20px;
}

.landing-login-card .login-icon-wrap {
	width: 56px;
	height: 56px;
	margin: 4px auto 14px;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--brand-light), #fff);
	border: 1px solid rgba(158, 62, 62, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
}

.landing-login-card .login-icon-wrap i {
	font-size: 1.5rem;
	color: var(--brand);
}

.landing-login-card h2 {
	text-align: center;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text);
	margin: 0 0 6px;
}

.landing-login-card .login-sub {
	text-align: center;
	font-size: 13px;
	color: var(--text-muted);
	margin: 0 0 22px;
	line-height: 1.5;
}

.landing-login-card label {
	display: block !important;
	float: none !important;
	width: 100% !important;
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 5px;
}

.landing-login-card .w3-input {
	width: 100% !important;
	box-sizing: border-box;
	border-radius: 10px;
	margin-bottom: 14px;
	padding: 11px 13px;
	border: 1px solid var(--border);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.landing-login-card .w3-input:focus {
	border-color: var(--brand);
	outline: none;
	box-shadow: 0 0 0 3px var(--brand-glow);
}

.landing-login-card button[type="submit"] {
	width: 100%;
	padding: 12px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
	border: none;
	cursor: pointer;
	background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
	color: #fff;
	transition: transform 0.2s, box-shadow 0.2s;
	box-shadow: 0 4px 14px var(--brand-glow);
	margin-top: 4px;
}

.landing-login-card button[type="submit"]:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(158, 62, 62, 0.28);
}

.landing-login-restricted {
	text-align: center;
	font-size: 11px;
	color: var(--text-muted);
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	line-height: 1.55;
}

.landing-login-legal {
	text-align: center;
	font-size: 11px;
	color: #9ca3af;
	margin-top: 12px;
	line-height: 1.55;
}

.landing-login-legal a {
	color: var(--brand);
	font-weight: 500;
	text-decoration: none;
}

.landing-login-legal a:hover {
	text-decoration: underline;
}

/* Footer */
.landing-footer {
	flex-shrink: 0;
	position: relative;
	z-index: 1;
	background: linear-gradient(180deg, #222, #1a1a1a);
	color: #9ca3af;
	padding: 36px 24px 28px;
	margin-top: auto;
}

.landing-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 28px;
	align-items: start;
}

.landing-footer-brand strong {
	display: block;
	color: #fff;
	font-size: 15px;
	margin-bottom: 8px;
}

.landing-footer-brand p {
	margin: 0;
	font-size: 13px;
	line-height: 1.65;
	max-width: 440px;
}

.landing-footer-links {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: right;
}

.landing-footer-links a {
	color: #e8b4b4;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s;
}

.landing-footer-links a:hover {
	color: #fff;
}

.landing-footer-bottom {
	max-width: 1200px;
	margin: 22px auto 0;
	padding-top: 18px;
	border-top: 1px solid #333;
	text-align: center;
	font-size: 12px;
	color: #6b7280;
}

.landing-footer-bottom a {
	color: #9ca3af;
	text-decoration: none;
	margin: 0 6px;
}

.landing-footer-bottom a:hover {
	color: #e8b4b4;
}

/* Tablet */
@media (max-width: 960px) {
	:root {
		--header-h: auto;
	}

	.landing-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.landing-login-card {
		position: static;
		max-height: none;
		overflow: visible;
		order: -1;
		max-width: 440px;
		margin: 0 auto;
		width: 100%;
	}

	.landing-hero {
		order: 0;
	}

	.landing-google-grid {
		grid-template-columns: 1fr;
	}

	.landing-footer-inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.landing-footer-brand p {
		max-width: none;
	}

	.landing-footer-links {
		text-align: center;
		flex-direction: row;
		justify-content: center;
		flex-wrap: wrap;
	}

	.d-mobile-only {
		display: inline-flex;
	}

	.landing-header-badge {
		display: none;
	}
}

/* Mobile */
@media (max-width: 600px) {
	.landing-main {
		padding: 20px 16px 36px;
	}

	.landing-header-inner {
		padding: 10px 14px;
	}

	.landing-header-nav {
		order: 3;
		width: 100%;
		justify-content: center;
		padding-top: 4px;
		border-top: 1px solid var(--border);
	}

	.landing-brand {
		flex: 1;
	}

	.landing-hero-banner {
		max-height: 180px;
	}

	.landing-hero-banner img {
		height: 180px;
	}

	.landing-hero-banner-overlay {
		padding: 18px 20px;
	}

	.landing-features {
		grid-template-columns: 1fr;
	}

	.landing-login-card {
		padding: 0 20px 22px;
	}

	.landing-login-card::before {
		margin: 0 -20px 18px;
	}

	.landing-pills {
		gap: 6px;
	}

	.landing-pill {
		width: 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	html.landing-root {
		scroll-behavior: auto;
	}

	.landing-hero,
	.landing-login-card {
		animation: none;
	}

	.landing-feature:hover,
	.landing-login-card button[type="submit"]:hover {
		transform: none;
	}
}
