/**
 * Mocheqi — Auth page styles.
 *
 * Firm-style: copper/peach accent, Shobnika headings, pill inputs,
 * split layout (brand panel + card) on desktop, single card on mobile.
 *
 * Depends on theme CSS variables: --copper, --peach, --font-heading, etc.
 */

/* ------------------------------------------------------------------ */
/* Page wrapper — hides everything else so the auth card is the hero.  */
/* ------------------------------------------------------------------ */

.mocheqi-auth {
	--auth-accent: var(--copper, #BA5A31);
	--auth-accent-bg: var(--peach, #FFE5B4);
	--auth-text: var(--black, #000000);
	--auth-text-dim: #888;
	--auth-border: rgba(0, 0, 0, 0.08);
	--auth-surface: var(--grey-light, #F5F5F7);
	--auth-white: var(--white, #FFFFFF);
	--auth-radius: var(--radius-md, 20px);
	--auth-radius-sm: var(--radius-sm, 12px);
	--auth-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

	min-height: 100vh;
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--auth-white);
}

/* ------------------------------------------------------------------ */
/* Left: brand panel (desktop only)                                    */
/* ------------------------------------------------------------------ */

.mocheqi-auth__brand {
	background: var(--auth-text);
	color: var(--auth-white);
	padding: 80px 60px;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.mocheqi-auth__brand::before {
	content: '';
	position: absolute;
	top: -30%;
	right: -30%;
	width: 80%;
	height: 80%;
	background: radial-gradient(circle, var(--auth-accent) 0%, transparent 70%);
	opacity: 0.15;
	pointer-events: none;
}

.mocheqi-auth__brand-inner {
	position: relative;
	z-index: 1;
	max-width: 420px;
}

.mocheqi-auth__brand-eyebrow {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--auth-accent-bg);
	margin-bottom: 24px;
}

.mocheqi-auth__brand-title {
	font-family: var(--font-heading, 'Shobnika', serif);
	font-size: clamp(2rem, 3vw, 2.8rem);
	font-weight: 400;
	line-height: 1.15;
	margin: 0 0 24px;
}

.mocheqi-auth__brand-text {
	font-size: 16px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.7);
	margin: 0 0 40px;
}

.mocheqi-auth__brand-perks {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mocheqi-auth__brand-perks li {
	position: relative;
	padding-left: 32px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.9);
}

.mocheqi-auth__brand-perks li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 4px;
	width: 18px;
	height: 10px;
	border-left: 2px solid var(--auth-accent);
	border-bottom: 2px solid var(--auth-accent);
	transform: rotate(-45deg);
}

/* ------------------------------------------------------------------ */
/* Right: card with tabs                                               */
/* ------------------------------------------------------------------ */

.mocheqi-auth__card {
	background: var(--auth-white);
	padding: 60px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: 560px;
	width: 100%;
	margin: 0 auto;
}

.mocheqi-auth__head {
	margin-bottom: 40px;
}

.mocheqi-auth__title {
	font-family: var(--font-heading, 'Shobnika', serif);
	font-size: clamp(1.8rem, 2.5vw, 2.4rem);
	font-weight: 400;
	color: var(--auth-text);
	margin: 0 0 8px;
	line-height: 1.1;
}

.mocheqi-auth__subtitle {
	font-size: 14px;
	color: var(--auth-text-dim);
	margin: 0;
}

/* ------------------------------------------------------------------ */
/* Tabs                                                                */
/* ------------------------------------------------------------------ */

.mocheqi-auth__tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 32px;
	background: var(--auth-surface);
	border-radius: var(--auth-radius-sm);
	padding: 4px;
}

.mocheqi-auth__tab {
	flex: 1;
	padding: 14px;
	border: none;
	background: transparent;
	border-radius: 10px;
	font-family: var(--font-body, 'Zapus sans', sans-serif);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--auth-text-dim);
	cursor: pointer;
	transition: var(--auth-transition);
}

.mocheqi-auth__tab.is-active {
	background: var(--auth-white);
	color: var(--auth-text);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.mocheqi-auth__tab:not(.is-active):hover {
	color: var(--auth-text);
}

/* ------------------------------------------------------------------ */
/* Forms                                                               */
/* ------------------------------------------------------------------ */

.mocheqi-auth__form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.mocheqi-auth__form.is-hidden {
	display: none;
}

.mocheqi-auth__form.is-active {
	animation: mocheqiAuthFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mocheqiAuthFadeIn {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------------ */
/* Fields (reuse .mocheqi-field from account plugin, but standalone)   */
/* ------------------------------------------------------------------ */

.mocheqi-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.mocheqi-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mocheqi-field__label {
	font-size: 13px;
	font-weight: 500;
	color: var(--auth-text);
}

.mocheqi-field__input {
	padding: 16px 22px;
	border: 1px solid var(--auth-border);
	border-radius: 50px;
	font-family: var(--font-body, 'Zapus sans', sans-serif);
	font-size: 14px;
	color: var(--auth-text);
	background: var(--auth-white);
	outline: none;
	transition: var(--auth-transition);
	-webkit-appearance: none;
	appearance: none;
}

.mocheqi-field__input::placeholder {
	color: #b0b0b0;
}

.mocheqi-field__input:focus {
	border-color: var(--auth-text);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

/* ------------------------------------------------------------------ */
/* Row: remember + forgot                                              */
/* ------------------------------------------------------------------ */

.mocheqi-auth__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.mocheqi-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
}

.mocheqi-checkbox input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.mocheqi-checkbox__box {
	width: 22px;
	height: 22px;
	border: 1.5px solid var(--auth-border);
	border-radius: 7px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: var(--auth-transition);
	position: relative;
	flex-shrink: 0;
}

.mocheqi-checkbox input:checked + .mocheqi-checkbox__box {
	background: var(--auth-text);
	border-color: var(--auth-text);
}

.mocheqi-checkbox input:checked + .mocheqi-checkbox__box::after {
	content: '';
	width: 10px;
	height: 6px;
	border-left: 2px solid var(--auth-white);
	border-bottom: 2px solid var(--auth-white);
	transform: rotate(-45deg) translate(1px, -1px);
}

.mocheqi-checkbox__label {
	font-size: 13px;
	color: var(--auth-text-dim);
}

.mocheqi-auth__link {
	font-size: 13px;
	color: var(--auth-text-dim);
	text-decoration: none;
	transition: var(--auth-transition);
}

.mocheqi-auth__link:hover {
	color: var(--auth-accent);
}

/* ------------------------------------------------------------------ */
/* Submit button                                                       */
/* ------------------------------------------------------------------ */

.mocheqi-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 28px;
	border-radius: 50px;
	font-family: var(--font-body, 'Zapus sans', sans-serif);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	cursor: pointer;
	border: none;
	transition: var(--auth-transition);
	line-height: 1;
}

.mocheqi-btn--solid {
	background: var(--auth-text);
	color: var(--auth-white);
	width: 100%;
	margin-top: 8px;
}

.mocheqi-btn--solid:hover {
	background: var(--auth-accent);
	transform: scale(1.01) translateY(-2px);
	box-shadow: 0 10px 30px rgba(186, 90, 49, 0.3);
}

/* ------------------------------------------------------------------ */
/* Legal text                                                          */
/* ------------------------------------------------------------------ */

.mocheqi-auth__legal {
	font-size: 12px;
	color: var(--auth-text-dim);
	text-align: center;
	margin-top: 32px;
	line-height: 1.6;
}

/* ------------------------------------------------------------------ */
/* WC notices — стиль в нашем стиле                                    */
/* ------------------------------------------------------------------ */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	padding: 14px 20px !important;
	border-radius: var(--auth-radius-sm);
	font-size: 13px;
	margin: 0 0 24px !important;
	background: var(--auth-surface);
	color: var(--auth-text);
	border: none;
	border-left: 3px solid var(--auth-accent);
}

.woocommerce-error {
	border-left-color: #c62828;
	color: #c62828;
}

/* ------------------------------------------------------------------ */
/* Reveal animation (если GSAP не загрузился)                          */
/* ------------------------------------------------------------------ */

.reveal {
	opacity: 1;
	transform: none;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 992px) {
	.mocheqi-auth {
		grid-template-columns: 1fr;
	}

	.mocheqi-auth__brand {
		display: none;
	}

	.mocheqi-auth__card {
		padding: 60px 40px;
		min-height: 100vh;
		justify-content: flex-start;
		margin-top: 60px;
	}
}

@media (max-width: 767px) {
	.mocheqi-auth__card {
		padding: 40px 24px;
		max-width: 100%;
		margin-top: 0;
		justify-content: center;
	}

	.mocheqi-auth__head {
		margin-bottom: 32px;
	}

	.mocheqi-form-grid {
		grid-template-columns: 1fr;
	}

	.mocheqi-auth__row {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
}

/* ------------------------------------------------------------------ */
/* Reduced motion                                                      */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
