/**
 * Omniverce Auth — Login & Registration card.
 *
 * Pixel source: Figma frames 2:14355 (Customer) and 192:5244 (Vendor),
 * file 2g7KF4fp9eLlqTU6KD1UXN, extracted node-by-node 2026-10-26.
 * Every measurement below is Figma-verified unless a comment marks it
 * as an assumption (the frames draw only the Register state — no
 * focus/error/hover/mobile states exist in the design).
 *
 * Card geometry (verified): 469 x 692 frame, padding 40, gap 16,
 * border 1px #BDBDBD, radius 12, content width 389.
 */

/* ------------------------------------------------------------------ */
/* Stage (the 1440x1000 Figma frame)                                   */
/* ------------------------------------------------------------------ */

.omniverce-auth {
	position: relative;
	overflow: hidden; /* the frame clips its decorative tiles */
	padding: 154px 24px; /* frame: card at y=154, bottom margin also 154 */
	font-family: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #000000;
	line-height: 1.215; /* 14px text sits in 17px boxes in Figma */
	-webkit-font-smoothing: antialiased;
}

/* Frame fills (verified): customer frame #FFFFFF, vendor frame #0B4198. */
.omniverce-auth[data-variant="customer"] {
	background: #ffffff;
}

.omniverce-auth[data-variant="vendor"] {
	background: #0b4198;
}

/* v1.0.1 (QA defect #4): the Login pane always sits on the LIGHT
   (customer) stage — the frames differ only by register user type, so
   a vendor-dark stage must never leak into Login. auth.js also resets
   data-variant on toggle; this rule makes the light login stage hold
   even before/without JS. */
.omniverce-auth[data-view="login"] {
	background: #ffffff;
}

/* v1.1.1 — owner-supplied per-pane stage background images. PHP sets
   --omniverce-auth-bg-login / --omniverce-auth-bg-register on the wrap
   plus the matching omniverce-auth--bg-* class, but ONLY for a pane
   whose URL resolved non-empty; a pane without a class keeps the
   pattern tiles + stage colours above (its fallback, unchanged).
   Keying off data-view means the existing login/register toggle in
   auth.js swaps the background together with the pane — no reload,
   no JS change. The register image covers BOTH register states
   (customer and vendor): the variant stage colour is not consulted
   here. The card itself is untouched. */
.omniverce-auth--bg-login[data-view="login"],
.omniverce-auth--bg-register[data-view="register"] {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.omniverce-auth--bg-login[data-view="login"] {
	background-image: var(--omniverce-auth-bg-login);
}

.omniverce-auth--bg-register[data-view="register"] {
	background-image: var(--omniverce-auth-bg-register);
}

/* While a pane's image is active it REPLACES the decorative pattern
   panels as that pane's visible background. */
.omniverce-auth--bg-login[data-view="login"] .omniverce-auth__tiles,
.omniverce-auth--bg-register[data-view="register"] .omniverce-auth__tiles {
	display: none;
}

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

.omniverce-auth [hidden] {
	display: none !important;
}

/* Decorative tiles — positions/sizes verified; artwork is a raster
   collage inside Figma, so the default paint is a quiet pattern panel
   in the design tints. The 'omniverce_auth_tile_image_url' PHP filter
   swaps in the exported artwork (background-size: cover via inline
   style from PHP when an image URL is set). */
.omniverce-auth__tiles {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.omniverce-auth__tile {
	position: absolute;
	background-color: rgba(214, 234, 255, 0.55); /* #D6EAFF tint */
	background-image: repeating-linear-gradient(
		45deg,
		rgba(255, 177, 67, 0.16) 0,
		rgba(255, 177, 67, 0.16) 14px,
		rgba(22, 98, 199, 0.10) 14px,
		rgba(22, 98, 199, 0.10) 28px
	);
	background-size: cover;
	background-position: center;
}

.omniverce-auth[data-variant="vendor"] .omniverce-auth__tile {
	background-color: rgba(214, 234, 255, 0.22);
}

/* ------------------------------------------------------------------ */
/* Card — Frame 173 (verified: 469 wide, radius 12, border #BDBDBD)    */
/* ------------------------------------------------------------------ */

.omniverce-auth__card {
	position: relative;
	z-index: 1;
	width: 469px;
	max-width: 100%;
	margin: 0 auto;
	background: #ffffff;
	border: 1px solid #bdbdbd;
	border-radius: 12px;
	padding: 40px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Logo — Figma node "image (7) 1": 184 x 36 image at the card top. */
.omniverce-auth__logo {
	height: 36px;
	display: flex;
	align-items: center;
}

.omniverce-auth__logo-img {
	height: 36px;
	width: auto;
	max-width: 184px;
	object-fit: contain;
	display: block;
}

.omniverce-auth__logo-word {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #111827;
}

/* ------------------------------------------------------------------ */
/* Form flow — the card's auto-layout: vertical, gap 16 (verified)     */
/* ------------------------------------------------------------------ */

.omniverce-auth__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
}

/* Heading block — Frame 175 (verified): vertical, gap 4. */
.omniverce-auth__heading {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.omniverce-auth__title {
	margin: 0;
	font-size: 20px; /* verified */
	font-weight: 700; /* Inter Tight Bold (verified) */
	line-height: 1.2; /* 20px text in a 24px box (verified) */
	color: #000000;
}

.omniverce-auth__subtitle {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.215;
	color: #000000;
}

/* ------------------------------------------------------------------ */
/* Fields — Frame 174 (verified): 389 x 44, border #CFCFCF, radius 8,  */
/* padding 12px 20px; the drawn text is Medium 14px #000 at 60%.        */
/* ------------------------------------------------------------------ */

.omniverce-auth__field {
	display: flex;
	flex-direction: column;
}

.omniverce-auth__input {
	width: 100%;
	height: 44px;
	padding: 12px 20px;
	background: #ffffff;
	border: 1px solid #cfcfcf;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500; /* the drawn field text is Inter Tight Medium */
	color: #000000;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color 0.15s ease;
}

.omniverce-auth__input::placeholder {
	color: rgba(0, 0, 0, 0.6); /* verified: #000 at 60% opacity */
	opacity: 1; /* Firefox */
	font-weight: 500;
}

/* Store Country select (v2.1.0): same 44px box as the inputs (the
   shared class above already removes the native appearance); a
   chevron marks it as a dropdown. */
.omniverce-auth__select {
	padding-right: 44px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23000000' stroke-opacity='.6' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 20px center;
}

/* Assumption: no focus state is drawn in Figma. Palette blue ring. */
.omniverce-auth__input:focus {
	border-color: #1662c7;
	outline: none;
}

/* Assumption: validation design is not drawn in Figma (the proposal
   lists it as a module but no state exists in the frames). Error uses
   the verified palette red #C4191D. */
.omniverce-auth__field.is-error .omniverce-auth__input {
	border-color: #c4191d;
}

.omniverce-auth__field-error {
	margin: 6px 0 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	color: #c4191d;
}

/* Password show/hide toggle (v1.0.1 scope addition in v1.1.0): the
   wrap keeps the field's exact 44px box + radius; the eye button sits
   inside on the right, so the input gains right padding to clear it.
   Ancestor-scoped like the other buttons so WoodMart's button scheme
   cannot repaint it; the icon uses the palette secondary grey. */
.omniverce-auth__password-wrap {
	position: relative;
}

.omniverce-auth__password-wrap .omniverce-auth__input {
	padding-right: 52px;
}

.omniverce-auth .omniverce-auth__card .omniverce-auth__form button.omniverce-auth__password-toggle {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	background-color: transparent;
	border: 0;
	border-radius: 6px;
	color: #4b5563; /* verified palette secondary */
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.omniverce-auth .omniverce-auth__card .omniverce-auth__form button.omniverce-auth__password-toggle:focus-visible {
	outline: 2px solid #1662c7;
	outline-offset: 1px;
}

.omniverce-auth__password-toggle .omniverce-auth__eye {
	display: flex;
	align-items: center;
	justify-content: center;
}

.omniverce-auth__password-toggle .omniverce-auth__eye-icon {
	display: block;
}

/* ------------------------------------------------------------------ */
/* Meta block — Frame 176 (verified): vertical, gap 24, holding the    */
/* password-link note, then the two user-type radios.                  */
/* ------------------------------------------------------------------ */

.omniverce-auth__meta {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.omniverce-auth__note {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.215;
	color: #6c6c6c; /* verified */
}

/* User-type radios — Groups 27/28 (verified): 13x13 ring, 7x7 dot,
   selected ring/dot #50B948, unselected ring #8F8F8F, label starts
   22px in (9px after the ring), rows on the 24px rhythm above. */
.omniverce-auth__usertype {
	margin: 0;
	padding: 0;
	border: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.omniverce-auth__radio {
	display: flex;
	align-items: center;
	gap: 9px; /* 22px label offset - 13px ring (verified) */
	cursor: pointer;
	font-size: 14px;
	font-weight: 400;
	line-height: 17px; /* verified row height */
	color: #000000;
}

.omniverce-auth__radio input {
	position: absolute;
	opacity: 0;
	width: 13px;
	height: 13px;
	margin: 0;
}

.omniverce-auth__radio-ui {
	position: relative;
	flex: none;
	width: 13px;
	height: 13px;
	border: 1px solid #8f8f8f; /* verified unselected ring */
	border-radius: 50%;
	background: #ffffff;
}

.omniverce-auth__radio input:checked + .omniverce-auth__radio-ui {
	border-color: #50b948; /* verified selected ring */
}

.omniverce-auth__radio input:checked + .omniverce-auth__radio-ui::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 7px; /* verified dot */
	height: 7px;
	border-radius: 50%;
	background: #50b948; /* verified dot fill */
}

.omniverce-auth__radio input:focus-visible + .omniverce-auth__radio-ui {
	outline: 2px solid #1662c7;
	outline-offset: 2px;
}

/* Vendor store fields — revealed on "I am a vendor" (Dokan behaviour).
   Same field system as the email box; stack gap 16 as in the card. */
.omniverce-auth__vendor-fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ------------------------------------------------------------------ */
/* Social row — "or login with" (verified: 14px #6C6C6C, centred),     */
/* then three 389 x 44 buttons, border #C4C4C4, radius 8, padding 10,   */
/* icon 24 x 24 + 10px gap + 14px label, content centred.               */
/* display:contents keeps the buttons on the form's 16px gap rhythm,   */
/* exactly as the flat Figma auto-layout has them.                     */
/* ------------------------------------------------------------------ */

.omniverce-auth__or {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.215;
	color: #6c6c6c;
	text-align: center;
}

.omniverce-auth__social {
	display: contents;
}

/* Ancestor-scoped on purpose (v1.0.1, same WoodMart override issue as
   the submit button below): WoodMart paints <button> elements with its
   own theme button styles at class-level specificity, so a bare class
   selector loses. */
.omniverce-auth .omniverce-auth__card .omniverce-auth__form button.omniverce-auth__social-btn,
.omniverce-auth .omniverce-auth__card .omniverce-auth__form a.omniverce-auth__social-btn {
	width: 100%;
	height: 44px;
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #ffffff;
	border: 1px solid #c4c4c4;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	color: #000000;
	cursor: pointer;
	text-decoration: none; /* the enabled state is an <a> (v1.1.0) */
}

.omniverce-auth__social-btn .omniverce-auth__social-icon {
	flex: none;
	display: block;
}

/* Stub state: disabled, but painted exactly as designed (no browser
   disabled fade) so the card stays pixel-true; the stub is announced
   by the button tooltip ("Social sign-in is not configured yet."). */
.omniverce-auth .omniverce-auth__card .omniverce-auth__form button.omniverce-auth__social-btn.is-stub:disabled {
	color: #000000;
	opacity: 1;
	cursor: not-allowed;
}

/* ------------------------------------------------------------------ */
/* Legal line (verified verbatim text, 14px, #000 at 60%)              */
/* ------------------------------------------------------------------ */

.omniverce-auth__legal {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.215;
	color: rgba(0, 0, 0, 0.6);
}

.omniverce-auth__legal a {
	color: inherit;
}

.omniverce-auth__legal a:hover,
.omniverce-auth__legal a:focus-visible {
	text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Submit — Frame 150 (verified): 389 x 44, fill #053677, radius 8,    */
/* white 14px label; the design's label text is "REGISTER" in caps,    */
/* produced with text-transform so translations stay natural.          */
/*                                                                     */
/* v1.0.1 (QA defect #3): on the live WoodMart theme the <button>      */
/* submits rendered pale grey with dark text — WoodMart styles         */
/* button/.btn elements with its own button scheme at class-level      */
/* specificity, which beat the v1.0.0 bare-class rule (0,1,0); the     */
/* logged-in card's <a> links with the same class were unaffected      */
/* because WoodMart's button scheme targets button elements. The       */
/* selectors below are ancestor-scoped with the element qualifier      */
/* (0,4,1) — above WoodMart's button rules — so no !important is       */
/* needed. Values are unchanged Figma values.                          */
/* ------------------------------------------------------------------ */

.omniverce-auth .omniverce-auth__card .omniverce-auth__form button.omniverce-auth__submit,
.omniverce-auth .omniverce-auth__card a.omniverce-auth__submit {
	width: 100%;
	height: 44px;
	padding: 8px 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #053677;
	background-color: #053677;
	border: 0;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.215;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #ffffff;
	cursor: pointer;
	text-decoration: none;
	appearance: none;
	-webkit-appearance: none;
	transition: background-color 0.15s ease;
}

/* Assumption: no hover state is drawn in Figma. Darkened brand blue. */
.omniverce-auth .omniverce-auth__card .omniverce-auth__form button.omniverce-auth__submit:hover,
.omniverce-auth .omniverce-auth__card a.omniverce-auth__submit:hover {
	background: #042c62;
	background-color: #042c62;
	color: #ffffff;
}

.omniverce-auth .omniverce-auth__card .omniverce-auth__form button.omniverce-auth__submit:focus-visible,
.omniverce-auth .omniverce-auth__card a.omniverce-auth__submit:focus-visible {
	outline: 2px solid #1662c7;
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Notices (assumption block — no validation art in Figma). Colours    */
/* are the verified palette: error #C4191D, success green #359E20.     */
/* ------------------------------------------------------------------ */

.omniverce-auth__notice {
	border: 1px solid;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 14px;
	line-height: 1.35;
}

.omniverce-auth__notice p {
	margin: 0;
}

.omniverce-auth__notice p + p {
	margin-top: 4px;
}

.omniverce-auth__notice--error {
	background: #fdecec;
	border-color: #c4191d;
	color: #c4191d;
}

.omniverce-auth__notice--success {
	background: #edf7ea;
	border-color: #359e20;
	color: #1e5b12;
}

/* ------------------------------------------------------------------ */
/* Login-state extras (not drawn in Figma — same system, see README)   */
/* ------------------------------------------------------------------ */

.omniverce-auth__login-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.omniverce-auth__remember {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 400;
	color: #374151;
	cursor: pointer;
}

.omniverce-auth__remember input {
	accent-color: #1662c7;
	margin: 0;
}

.omniverce-auth__forgot {
	font-size: 14px;
	font-weight: 400;
	color: #1662c7;
	text-decoration: none;
}

.omniverce-auth__forgot:hover,
.omniverce-auth__forgot:focus-visible {
	text-decoration: underline;
}

/* Combined-shortcode toggle row (the proposal's Login/Register Toggle
   module; no toggle element is drawn inside the Figma card, so the
   switch lives under the form, inside the card's flow). */
.omniverce-auth__toggle {
	margin: 0;
	text-align: center;
	font-size: 14px;
	font-weight: 400;
	color: #4b5563;
}

.omniverce-auth__toggle-link {
	color: #1662c7;
	font-weight: 600;
	text-decoration: none;
}

.omniverce-auth__toggle-link:hover,
.omniverce-auth__toggle-link:focus-visible {
	text-decoration: underline;
}

/* v1.0.1: the .omniverce-auth__stub-note rules were removed together
   with the note itself (QA defect #6 — the line under the card is not
   in the Figma design). */

/* Screen-reader-only labels (the visual label is the placeholder,
   exactly as drawn; the real <label> stays available to AT). */
.omniverce-auth__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------------------ */
/* Responsive — Figma has NO mobile/tablet frames (all 48 frames are   */
/* 1440 desktop). Below 1024 the tile stage is dropped (its pixel       */
/* positions only make sense on the 1440 stage). Below 480 the card     */
/* goes full-width, per the build brief.                               */
/* ------------------------------------------------------------------ */

@media (max-width: 1023px) {
	.omniverce-auth {
		padding: 72px 20px;
	}

	.omniverce-auth__tiles {
		display: none;
	}
}

@media (max-width: 480px) {
	.omniverce-auth {
		padding: 24px 12px;
	}

	.omniverce-auth__card {
		width: 100%;
		padding: 28px 20px;
	}

	.omniverce-auth__login-row {
		flex-wrap: wrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.omniverce-auth__input,
	.omniverce-auth .omniverce-auth__card .omniverce-auth__form button.omniverce-auth__submit,
	.omniverce-auth .omniverce-auth__card a.omniverce-auth__submit {
		transition: none;
	}
}
