/**
 * WooCommerce — página de login (Minha conta, visitante): card estilo shadcn (fundo da página intacto).
 * Escopo: body.velociraptor-wc-auth-login
 */

.velociraptor-wc-auth-login .woocommerce-notices-wrapper:last-of-type {
	margin-bottom: 0.375rem;
}

/* Shell: centra o card + padding vertical mínimo em cima e em baixo. */
.vlr-wc-auth-shell {
	display: flex;
	justify-content: center;
	margin: 0;
	padding-block: clamp(0.75rem, 2.5vw, 1.25rem);
	padding-inline: 0;
	box-sizing: border-box;
	background: transparent;
}

.vlr-wc-auth-card {
	position: relative;
	width: 100%;
	max-width: 28rem;
	overflow: hidden;
	border-radius: var(--radius, 0.75rem);
	border: none;
	background: var(--card, #fff);
	color: var(--card-foreground, #0a0a0a);
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.06);
	padding-top: clamp(0.625rem, 1.5vw, 1rem);
	padding-bottom: clamp(0.75rem, 2vw, 1.125rem);
}

.vlr-wc-auth-card.vlr-wc-auth-card--wide {
	max-width: min(42rem, 100%);
}

/* Wrapper Woo: sem borda nem espaçamento extra (WC usa padding/margin nos forms). */
.velociraptor-wc-auth-login .vlr-wc-auth-shell .woocommerce-form.login,
.velociraptor-wc-auth-login .vlr-wc-auth-shell .woocommerce-form.register {
	margin: 0;
	padding: 0;
	border: none;
	box-shadow: none;
	outline: none;
}

.velociraptor-wc-auth-login .vlr-wc-auth-shell .woocommerce-form .form-row {
	padding: 0;
}

.velociraptor-wc-auth-login .vlr-wc-auth-shell .woocommerce-form .form-row:first-of-type {
	margin-top: 0;
}

.vlr-wc-auth-card__glow {
	pointer-events: none;
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 8rem;
	border-radius: var(--radius, 0.75rem) var(--radius, 0.75rem) 0 0;
	background: linear-gradient(
		to top,
		transparent,
		color-mix(in srgb, var(--primary, #18181b) 10%, transparent)
	);
}

.vlr-wc-auth-card__accent {
	pointer-events: none;
	position: absolute;
	inset-inline: 0;
	top: 0;
	height: 5rem;
	opacity: 0.35;
	background: radial-gradient(ellipse 120% 80% at 50% 0%, var(--primary, #18181b) 0%, transparent 70%);
}

.vlr-wc-auth-card__header {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.375rem;
	padding-inline: 1rem;
	padding-bottom: 0.375rem;
	margin: 0;
}

.vlr-wc-auth-card__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
}

.vlr-wc-auth-card__logo {
	display: flex;
	justify-content: center;
	width: 100%;
}

.vlr-wc-auth-card__logo a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
}

.vlr-wc-auth-card__logo img {
	display: block;
	max-height: 2.5rem;
	width: auto;
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

.vlr-wc-auth-card__brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 9999px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	color: var(--primary-foreground, #fafafa);
	background: var(--primary, #18181b);
}

.vlr-wc-auth-card__brand-name {
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--foreground, #0a0a0a);
}

.vlr-wc-auth-card__title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.025em;
	color: var(--foreground, #0a0a0a);
}

.vlr-wc-auth-card__desc {
	margin: 0;
	max-width: 22rem;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--muted-foreground, #71717a);
}

.vlr-wc-auth-card__content {
	position: relative;
	z-index: 1;
	padding-inline: 1rem;
	padding-top: 0;
	padding-bottom: 0;
	margin: 0;
}

.vlr-wc-auth-cols {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
}

@media (min-width: 768px) {
	.vlr-wc-auth-cols--register-on {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: start;
		gap: 0.75rem;
	}
}

.vlr-wc-auth-section-title {
	margin: 0 0 0.375rem;
	padding: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--foreground, #0a0a0a);
}

.vlr-wc-auth-divider {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
}

@media (min-width: 768px) {
	.vlr-wc-auth-cols--register-on .vlr-wc-auth-divider {
		flex-direction: column;
		align-self: stretch;
		width: auto;
		min-width: 2rem;
		padding-block: 0.25rem;
	}
}

.vlr-wc-auth-divider__line {
	flex: 1;
	height: 1px;
	background: var(--border, #e4e4e7);
}

@media (min-width: 768px) {
	.vlr-wc-auth-cols--register-on .vlr-wc-auth-divider__line {
		width: 1px;
		height: auto;
		flex: 1;
		min-height: 2rem;
	}
}

.vlr-wc-auth-divider__text {
	flex-shrink: 0;
	font-size: 0.875rem;
	color: var(--muted-foreground, #71717a);
}

.vlr-wc-auth-field {
	margin: 0 0 0.5rem;
	padding: 0;
}

.vlr-wc-auth-field:first-of-type {
	margin-top: 0;
}

.vlr-wc-auth-field label {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25rem;
	color: var(--foreground, #0a0a0a);
}

.vlr-wc-auth-field .required {
	color: var(--destructive, #dc2626);
}

.vlr-wc-auth-field input.input-text {
	width: 100%;
	box-sizing: border-box;
	min-height: 2.25rem;
	padding: 0.25rem 0.75rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--foreground, #0a0a0a);
	background: var(--background, #fff);
	border: 1px solid var(--border, #e4e4e7);
	border-radius: calc(var(--radius, 0.5rem) - 2px);
	box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.04);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vlr-wc-auth-field input.input-text:focus {
	outline: none;
	border-color: var(--ring, #a1a1aa);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring, #a1a1aa) 35%, transparent);
}

.vlr-wc-auth-field input.input-text::placeholder {
	color: var(--muted-foreground, #71717a);
}

.vlr-wc-auth-password {
	position: relative;
	display: block;
}

.vlr-wc-auth-password .input-text {
	padding-right: 2.5rem;
}

.vlr-wc-auth-password-toggle {
	position: absolute;
	inset-block: 0;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	margin: 1px;
	border: none;
	border-radius: 0 calc(var(--radius, 0.5rem) - 2px) calc(var(--radius, 0.5rem) - 2px) 0;
	background: transparent;
	color: var(--muted-foreground, #71717a);
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
}

.vlr-wc-auth-password-toggle:hover {
	color: var(--foreground, #0a0a0a);
	background: var(--accent, #f4f4f5);
}

.vlr-wc-auth-password-toggle:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px var(--background, #fff), 0 0 0 4px var(--ring, #a1a1aa);
}

.vlr-wc-auth-password-toggle svg {
	display: block;
}

.vlr-wc-auth-login-footer {
	margin-top: 0;
	padding: 0;
}

.vlr-wc-auth-login-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 0.75rem;
	margin: 0 0 0.625rem;
	padding: 0;
}

.vlr-wc-auth-login-meta .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--muted-foreground, #71717a);
	cursor: pointer;
}

.vlr-wc-auth-login-meta .woocommerce-form__input-checkbox {
	width: 1rem;
	height: 1rem;
	margin: 0;
	border-radius: 0.25rem;
	accent-color: var(--primary, #18181b);
}

.vlr-wc-auth-forgot {
	font-size: 0.875rem;
	color: var(--foreground, #0a0a0a);
	text-decoration: none;
}

.vlr-wc-auth-forgot:hover {
	text-decoration: underline;
}

.vlr-wc-auth-login-submit-row {
	margin: 0;
	padding: 0;
}

.vlr-wc-auth-login-submit-row .button {
	width: 100%;
	box-sizing: border-box;
	justify-content: center;
	min-height: 2.25rem;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25rem;
	color: #fff;
	background: var(--accent, #3f3f46);
	border: none;
	border-radius: calc(var(--radius, 0.5rem) - 2px);
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.vlr-wc-auth-login-submit-row .button:hover {
	background: color-mix(in srgb, var(--accent, #3f3f46) 88%, #000);
}

.vlr-wc-auth-login-submit-row .button:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring, #a1a1aa) 35%, transparent);
}

.vlr-wc-auth-register-hint {
	margin: 0 0 0.625rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--muted-foreground, #71717a);
}

.vlr-wc-auth-register-submit {
	margin: 0;
	padding: 0;
}

.vlr-wc-auth-register-submit .button {
	width: 100%;
	box-sizing: border-box;
	justify-content: center;
	min-height: 2.25rem;
	margin-top: 0;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25rem;
	color: var(--primary-foreground, #fafafa);
	background: var(--primary, #18181b);
	border: none;
	border-radius: calc(var(--radius, 0.5rem) - 2px);
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.vlr-wc-auth-register-submit .button:hover {
	background: color-mix(in srgb, var(--primary, #18181b) 92%, #000);
}

.vlr-wc-auth-register-submit .button:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring, #a1a1aa) 35%, transparent);
}

/* WooCommerce layout floats — evitar colunas partidas no card */
.velociraptor-wc-auth-login .vlr-wc-auth-shell .form-row {
	float: none;
	width: 100%;
}

.velociraptor-wc-auth-login .vlr-wc-auth-shell .woocommerce-privacy-policy-text {
	margin-top: 0.625rem;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--muted-foreground, #71717a);
}

/* Notices dentro do fluxo */
.vlr-wc-auth-shell .woocommerce-error,
.vlr-wc-auth-shell .woocommerce-message,
.vlr-wc-auth-shell .woocommerce-info {
	border-radius: calc(var(--radius, 0.5rem) - 2px);
}

/* Campos extra de plugins no registo */
.vlr-wc-auth-col .woocommerce-form-row {
	margin-bottom: 0.625rem;
}

.velociraptor-wc-auth-login .vlr-wc-auth-col--login,
.velociraptor-wc-auth-login .vlr-wc-auth-col--register {
	margin: 0;
	padding: 0;
}

/* Bloco Woo à volta do shortcode: sem margem extra no topo */
.velociraptor-wc-auth-login .woocommerce > .vlr-wc-auth-shell:first-child {
	margin-top: 0;
}
