/* SeBy Clinic — patient login / account branding
   Desktop + tablet layout polish */

:root {
	--seby-brown: #845133;
	--seby-brown-deep: #6b4028;
	--seby-rose: #e8a99a;
	--seby-rose-soft: #f3d0c6;
	--seby-cream: #f7f1ea;
	--seby-cream-deep: #efe4d8;
	--seby-ink: #1e1810;
	--seby-muted: #6e645a;
	--seby-white: #fffdfb;
	--seby-serif: "Cormorant Garamond", "Times New Roman", serif;
	--seby-sans: "Outfit", "Helvetica Neue", sans-serif;
	--seby-radius: 20px;
	--seby-shadow: 0 20px 50px rgba(30, 24, 16, 0.07);
}

/* ---------- Page canvas (logged-out login) ---------- */
body.woocommerce-account.woocommerce-page:not(.logged-in) #content,
body.woocommerce-account.woocommerce-page:not(.logged-in) .site-content,
body.woocommerce-account.woocommerce-page:not(.logged-in) .ast-container {
	max-width: 100% !important;
}

body.woocommerce-account.woocommerce-page:not(.logged-in) .site-content {
	background:
		radial-gradient(1100px 480px at 8% -8%, rgba(232, 169, 154, 0.32), transparent 58%),
		radial-gradient(820px 380px at 96% 2%, rgba(249, 195, 73, 0.14), transparent 52%),
		linear-gradient(180deg, var(--seby-cream) 0%, #fbf7f2 48%, #fff 100%);
}

body.woocommerce-account.woocommerce-page:not(.logged-in) .entry-header,
body.woocommerce-account.woocommerce-page:not(.logged-in) .entry-title {
	display: none !important;
}

body.woocommerce-account.woocommerce-page:not(.logged-in) .ast-article-single,
body.woocommerce-account.woocommerce-page:not(.logged-in) article.page,
body.woocommerce-account.woocommerce-page:not(.logged-in) .entry-content,
body.woocommerce-account.woocommerce-page:not(.logged-in) .woocommerce {
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
}

body.woocommerce-account.woocommerce-page:not(.logged-in) #primary,
body.woocommerce-account.woocommerce-page:not(.logged-in) .ast-container {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* Kill WooCommerce float layout that fights the grid */
body.woocommerce-account #customer_login.col2-set::before,
body.woocommerce-account #customer_login.col2-set::after,
body.woocommerce-account #customer_login.u-columns::before,
body.woocommerce-account #customer_login.u-columns::after {
	display: none !important;
	content: none !important;
}

/* ---------- Auth shell ---------- */
.seby-auth {
	font-family: var(--seby-sans);
	color: var(--seby-ink);
	box-sizing: border-box;
	width: 100%;
	max-width: 1040px;
	margin: 0 auto;
	padding: 3rem 1.5rem 4rem;
	animation: seby-fade-up 0.65s ease both;
}

.seby-auth *,
.seby-auth *::before,
.seby-auth *::after {
	box-sizing: border-box;
}

.seby-auth__hero {
	text-align: center;
	margin: 0 auto 2.25rem;
	max-width: 560px;
	animation: seby-fade-up 0.8s ease both;
}

.seby-auth__logo {
	display: block;
	width: fit-content;
	margin: 0 auto 1rem;
	transition: transform 0.3s ease;
}

.seby-auth__logo:hover {
	transform: translateY(-2px);
}

.seby-auth__logo img {
	display: block;
	width: 200px;
	height: auto;
	margin: 0 auto;
	filter: drop-shadow(0 8px 18px rgba(132, 81, 51, 0.1));
}

.seby-auth__eyebrow {
	display: block;
	width: fit-content;
	margin: 0 auto 0.55rem;
	padding: 0.3rem 0.85rem;
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--seby-brown);
	background: rgba(232, 169, 154, 0.26);
	border-radius: 999px;
}

.seby-auth__title {
	font-family: var(--seby-serif) !important;
	font-weight: 600 !important;
	font-size: clamp(1.9rem, 2.6vw, 2.55rem) !important;
	line-height: 1.18 !important;
	letter-spacing: -0.01em;
	color: var(--seby-ink) !important;
	margin: 0 0 0.5rem !important;
}

.seby-auth__lead {
	max-width: 32rem;
	margin: 0 auto;
	font-size: 0.98rem;
	line-height: 1.55;
	color: var(--seby-muted);
	font-weight: 300;
}

.seby-auth__note {
	margin: 1.5rem auto 0;
	max-width: 36rem;
	text-align: center;
	font-size: 0.86rem;
	line-height: 1.5;
	color: var(--seby-muted);
}

.seby-auth__panel-hint {
	margin: 0 0 1.15rem !important;
	font-size: 0.88rem;
	line-height: 1.45;
	color: var(--seby-muted);
}

/* Hide WooCommerce duplicate register helper under our hint */
body.woocommerce-account #customer_login .woocommerce-form-register > p:not([class]):not(.form-row) {
	display: none !important;
}

/* ---------- Desktop: equal 2-column cards ---------- */
body.woocommerce-account #customer_login.u-columns,
body.woocommerce-account #customer_login.col2-set {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	align-items: stretch;
	float: none !important;
	clear: both !important;
	width: 100% !important;
	max-width: 920px;
	margin: 0 auto !important;
	padding: 0 !important;
	animation: seby-fade-up 0.9s ease both;
}

body.woocommerce-account #customer_login .u-column1,
body.woocommerce-account #customer_login .u-column2,
body.woocommerce-account #customer_login .col-1,
body.woocommerce-account #customer_login .col-2 {
	display: flex !important;
	flex-direction: column;
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	margin: 0 !important;
	padding: 1.85rem 1.75rem 1.9rem !important;
	background: var(--seby-white);
	border: 1px solid rgba(132, 81, 51, 0.1);
	border-radius: var(--seby-radius);
	box-shadow: var(--seby-shadow);
	position: relative;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.woocommerce-account #customer_login .u-column1::before,
body.woocommerce-account #customer_login .u-column2::before,
body.woocommerce-account #customer_login .col-1::before,
body.woocommerce-account #customer_login .col-2::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: linear-gradient(90deg, var(--seby-rose), var(--seby-brown), #f9c349);
}

body.woocommerce-account #customer_login .u-column1:hover,
body.woocommerce-account #customer_login .u-column2:hover {
	transform: translateY(-2px);
	box-shadow: 0 26px 60px rgba(30, 24, 16, 0.1);
}

body.woocommerce-account #customer_login h2 {
	font-family: var(--seby-serif) !important;
	font-size: 1.75rem !important;
	font-weight: 600 !important;
	color: var(--seby-ink) !important;
	margin: 0 0 0.25rem !important;
	border: 0 !important;
	padding: 0 !important;
}

body.woocommerce-account #customer_login form.woocommerce-form,
body.woocommerce-account #customer_login form.login,
body.woocommerce-account #customer_login form.register {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* ---------- Fields ---------- */
body.woocommerce-account #customer_login label {
	display: block;
	font-family: var(--seby-sans);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--seby-ink);
	margin: 0 0 0.4rem;
}

body.woocommerce-account #customer_login .woocommerce-Input,
body.woocommerce-account #customer_login input.input-text,
body.woocommerce-account #customer_login input[type="text"],
body.woocommerce-account #customer_login input[type="email"],
body.woocommerce-account #customer_login input[type="password"] {
	width: 100% !important;
	max-width: 100% !important;
	border: 1.5px solid rgba(132, 81, 51, 0.18) !important;
	border-radius: 12px !important;
	background: #fffaf6 !important;
	padding: 0.8rem 0.95rem !important;
	min-height: 48px;
	font-family: var(--seby-sans) !important;
	font-size: 0.95rem !important;
	line-height: 1.3 !important;
	color: var(--seby-ink) !important;
	box-shadow: none !important;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

body.woocommerce-account #customer_login .woocommerce-Input:focus,
body.woocommerce-account #customer_login input.input-text:focus,
body.woocommerce-account #customer_login input[type="text"]:focus,
body.woocommerce-account #customer_login input[type="email"]:focus,
body.woocommerce-account #customer_login input[type="password"]:focus {
	outline: none !important;
	border-color: var(--seby-brown) !important;
	background: #fff !important;
	box-shadow: 0 0 0 4px rgba(232, 169, 154, 0.28) !important;
}

body.woocommerce-account #customer_login .form-row,
body.woocommerce-account #customer_login .woocommerce-form-row {
	margin: 0 0 0.95rem !important;
	padding: 0 !important;
	width: 100% !important;
	float: none !important;
}

/* Remember me above full-width submit */
body.woocommerce-account #customer_login .woocommerce-form-login .form-row:last-of-type,
body.woocommerce-account #customer_login form.login > .form-row:nth-last-child(2) {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.85rem;
	margin-top: 0.15rem !important;
	margin-bottom: 0 !important;
}

body.woocommerce-account #customer_login .woocommerce-form-login__rememberme {
	display: inline-flex !important;
	align-items: center;
	gap: 0.45rem;
	margin: 0 !important;
	font-size: 0.88rem;
	color: var(--seby-muted);
	order: -1;
}

body.woocommerce-account #customer_login form.register > .form-row:last-child,
body.woocommerce-account #customer_login form.register .woocommerce-form-row:last-of-type {
	margin-top: 0.35rem !important;
	margin-bottom: 0 !important;
}

body.woocommerce-account #customer_login .woocommerce-privacy-policy-text {
	margin: 0.15rem 0 1rem !important;
	font-size: 0.78rem;
	line-height: 1.5;
	color: var(--seby-muted);
}

/* Password visibility toggle (Astra skips WC layout CSS that normally draws the eye) */
body.woocommerce-account #customer_login .password-input {
	display: block;
	position: relative;
	width: 100%;
}

body.woocommerce-account #customer_login .password-input input[type="password"],
body.woocommerce-account #customer_login .password-input input[type="text"] {
	padding-right: 2.75rem !important;
}

body.woocommerce-account #customer_login .show-password-input {
	position: absolute !important;
	top: 50% !important;
	right: 0.75rem !important;
	left: auto !important;
	transform: translateY(-50%);
	z-index: 2;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 2rem !important;
	min-width: 2rem !important;
	height: 2rem !important;
	min-height: 2rem !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--seby-brown) !important;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

body.woocommerce-account #customer_login .show-password-input::before {
	content: "";
	display: block;
	width: 1.25rem;
	height: 1.25rem;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M10 4.2C6.2 4.2 2.9 6.4 1.2 9.8a.9.9 0 0 0 0 .8C2.9 14 6.2 16.2 10 16.2s7.1-2.2 8.8-5.6a.9.9 0 0 0 0-.8C17.1 6.4 13.8 4.2 10 4.2Zm0 9.3A3.5 3.5 0 1 1 10 6.5a3.5 3.5 0 0 1 0 7Zm0-5.6a2.1 2.1 0 1 0 0 4.2 2.1 2.1 0 0 0 0-4.2Z' fill='%23845133'/%3E%3C/svg%3E");
}

body.woocommerce-account #customer_login .show-password-input.display-password::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M2.2 2.2a.75.75 0 0 0-1 1.1l2.1 2.1C1.9 6.8.9 8.3.4 9.8a.9.9 0 0 0 0 .8C2.1 14 5.4 16.2 9.2 16.2c1.5 0 2.9-.3 4.2-.9l2.4 2.4a.75.75 0 0 0 1.1-1L2.2 2.2Zm5.3 7.5 2.3 2.3a2.1 2.1 0 0 1-2.3-2.3Zm1.7-4.8c.3 0 .5 0 .8.1L7.4 7.5A3.5 3.5 0 0 0 9.2 12l1.8 1.8c-.3.1-.5.1-.8.1A3.5 3.5 0 0 1 6.5 10c0-.9.3-1.7.7-2.4Zm8.9 4.9c-.6 1.1-1.4 2.1-2.4 2.8l-1.2-1.2c.7-.5 1.3-1.1 1.8-1.8-1.5-2.4-4-3.9-6.8-3.9-.4 0-.8 0-1.1.1L5.7 5.2A8.7 8.7 0 0 1 9.2 4.2c3.8 0 7.1 2.2 8.8 5.6a.9.9 0 0 1 0 .8c-.3.6-.7 1.2-1.1 1.7Z' fill='%23845133'/%3E%3C/svg%3E");
}

body.woocommerce-account #customer_login .show-password-input:hover,
body.woocommerce-account #customer_login .show-password-input:focus {
	background: rgba(232, 169, 154, 0.22) !important;
	outline: none;
	box-shadow: none !important;
	filter: none;
	transform: translateY(-50%);
}

body.woocommerce-account #customer_login .woocommerce-privacy-policy-text a {
	color: var(--seby-brown);
}

/* ---------- Buttons ---------- */
body.woocommerce-account #customer_login .woocommerce-button,
body.woocommerce-account #customer_login button[type="submit"] {
	display: block;
	width: 100% !important;
	margin: 0 !important;
	padding: 0.9rem 1.2rem !important;
	min-height: 48px;
	border: 0 !important;
	border-radius: 999px !important;
	background: linear-gradient(135deg, var(--seby-brown) 0%, var(--seby-brown-deep) 100%) !important;
	color: #fff !important;
	font-family: var(--seby-sans) !important;
	font-size: 0.94rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.03em;
	text-transform: none !important;
	box-shadow: 0 12px 26px rgba(132, 81, 51, 0.26) !important;
	transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease !important;
}

body.woocommerce-account #customer_login .woocommerce-button:hover,
body.woocommerce-account #customer_login button[type="submit"]:hover {
	transform: translateY(-1px);
	filter: brightness(1.04);
	box-shadow: 0 14px 30px rgba(132, 81, 51, 0.32) !important;
	color: #fff !important;
}

body.woocommerce-account #customer_login .lost_password {
	margin: 1rem 0 0 !important;
	text-align: center;
}

body.woocommerce-account #customer_login .lost_password a {
	color: var(--seby-brown);
	font-size: 0.88rem;
	text-decoration: none;
	border-bottom: 1px solid rgba(132, 81, 51, 0.3);
	transition: color 0.2s ease, border-color 0.2s ease;
}

body.woocommerce-account #customer_login .lost_password a:hover {
	color: var(--seby-brown-deep);
	border-color: var(--seby-brown-deep);
}

/* ---------- Large desktop polish ---------- */
@media (min-width: 1200px) {
	.seby-auth {
		padding: 3.5rem 2rem 4.5rem;
	}

	body.woocommerce-account #customer_login.u-columns {
		gap: 1.75rem;
		max-width: 960px;
	}

	body.woocommerce-account #customer_login .u-column1,
	body.woocommerce-account #customer_login .u-column2 {
		padding: 2rem 2rem 2.1rem !important;
	}
}

/* ---------- Tablet (portrait + landscape) ---------- */
@media (max-width: 1100px) and (min-width: 782px) {
	.seby-auth {
		max-width: 860px;
		padding: 2.5rem 1.75rem 3.25rem;
	}

	.seby-auth__logo img {
		width: 180px;
	}

	.seby-auth__title {
		font-size: 2.15rem !important;
	}

	.seby-auth__lead {
		font-size: 0.94rem;
	}

	body.woocommerce-account #customer_login.u-columns,
	body.woocommerce-account #customer_login.col2-set {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.15rem;
		max-width: 760px;
	}

	body.woocommerce-account #customer_login .u-column1,
	body.woocommerce-account #customer_login .u-column2,
	body.woocommerce-account #customer_login .col-1,
	body.woocommerce-account #customer_login .col-2 {
		padding: 1.5rem 1.35rem 1.55rem !important;
	}

	body.woocommerce-account #customer_login h2 {
		font-size: 1.55rem !important;
	}
}

/* Narrow tablet / large phone: stack */
@media (max-width: 781px) {
	.seby-auth {
		padding: 1.75rem 1rem 2.75rem;
	}

	.seby-auth__hero {
		margin-bottom: 1.5rem;
	}

	.seby-auth__logo img {
		width: 160px;
	}

	body.woocommerce-account #customer_login.u-columns,
	body.woocommerce-account #customer_login.col2-set {
		grid-template-columns: 1fr;
		gap: 1rem;
		max-width: 440px;
	}

	body.woocommerce-account #customer_login .u-column1,
	body.woocommerce-account #customer_login .u-column2,
	body.woocommerce-account #customer_login .col-1,
	body.woocommerce-account #customer_login .col-2 {
		padding: 1.35rem 1.2rem 1.45rem !important;
	}

	.seby-auth__note {
		max-width: 440px;
		font-size: 0.84rem;
	}
}

/* ---------- Logged-in account polish ---------- */
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
	background: var(--seby-white);
	border: 1px solid rgba(132, 81, 51, 0.1);
	border-radius: var(--seby-radius);
	padding: 0.75rem;
	box-shadow: var(--seby-shadow);
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.75rem 1rem;
	border-radius: 12px;
	color: var(--seby-ink);
	font-family: var(--seby-sans);
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation .is-active a {
	background: rgba(232, 169, 154, 0.22);
	color: var(--seby-brown-deep);
}

body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
	background: var(--seby-white);
	border: 1px solid rgba(132, 81, 51, 0.1);
	border-radius: var(--seby-radius);
	padding: 1.5rem 1.6rem;
	box-shadow: var(--seby-shadow);
	font-family: var(--seby-sans);
}

/* ---------- WP-login (staff / admin) ---------- */
body.login {
	font-family: var(--seby-sans);
	background:
		radial-gradient(900px 420px at 15% -5%, rgba(232, 169, 154, 0.4), transparent 55%),
		linear-gradient(180deg, #f7f1ea 0%, #fbf7f2 100%) !important;
}

body.login #login {
	padding-top: 6vh;
}

body.login form {
	border: 1px solid rgba(132, 81, 51, 0.12);
	border-radius: var(--seby-radius);
	box-shadow: var(--seby-shadow);
	background: var(--seby-white);
	padding: 28px 26px;
}

body.login label {
	font-weight: 500;
	color: var(--seby-ink);
}

body.login input[type="text"],
body.login input[type="password"] {
	border-radius: 12px !important;
	border-color: rgba(132, 81, 51, 0.2) !important;
	padding: 0.65rem 0.85rem !important;
	font-size: 15px !important;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus {
	border-color: var(--seby-brown) !important;
	box-shadow: 0 0 0 3px rgba(232, 169, 154, 0.3) !important;
}

body.login .button-primary {
	background: var(--seby-brown) !important;
	border-color: var(--seby-brown) !important;
	border-radius: 999px !important;
	text-shadow: none !important;
	box-shadow: 0 10px 22px rgba(132, 81, 51, 0.25) !important;
	font-weight: 600 !important;
}

body.login .button-primary:hover {
	background: var(--seby-brown-deep) !important;
	border-color: var(--seby-brown-deep) !important;
}

body.login #nav a,
body.login #backtoblog a {
	color: var(--seby-brown) !important;
}

@keyframes seby-fade-up {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
