/*
 * Arte Para Canecas Theme 1.8.3 — Minha Conta (visitante): login/cadastro legível.
 * Carregado SOMENTE em Minha Conta para visitantes, depois do theme.css.
 * Corrige o cartão "vidro escuro" (texto branco) que ficou sobre fundo branco após o redesign claro.
 * Todas as regras são escopadas em body.woocommerce-account + .apc-auth-*; nada global.
 */
body.woocommerce-account:not(.logged-in) .site-main { background: transparent; }

body.woocommerce-account .apc-auth-wrap {
	min-height: 0;
	display: block;
	padding: 8px 0 24px;
}

/* O tema já desenha o contêiner branco da Minha Conta; o cartão interno fica plano (sem cartão dentro de cartão). */
body.woocommerce-account .apc-auth-card {
	max-width: 460px;
	margin: 0 auto;
	padding: 12px 0 4px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	color: #171426;
}

body.woocommerce-account .apc-auth-brand { text-align: center; margin-bottom: 10px; }
body.woocommerce-account .apc-auth-brand img.custom-logo { filter: none !important; max-height: 52px !important; width: auto !important; }
body.woocommerce-account .apc-auth-brand-name { color: #171426; }

body.woocommerce-account .apc-auth-title {
	margin: 0 0 16px;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 800;
	text-align: center;
	color: #171426;
}

body.woocommerce-account .apc-auth-subtitle { color: #625b70; margin: 0 0 16px; }
body.woocommerce-account .apc-auth-hint { color: #625b70; font-size: 13px; margin: 0 0 12px; }

/* Abas */
body.woocommerce-account .apc-auth-tabs { background: #f5f0fa; }
body.woocommerce-account .apc-auth-tab { color: #625b70; }
body.woocommerce-account .apc-auth-tab:not(.is-active):hover { color: #171426; }
body.woocommerce-account .apc-auth-tab.is-active { color: #fff; }
body.woocommerce-account .apc-auth-tab:focus-visible { outline: 3px solid #7c3aed; outline-offset: 2px; }

/* Formulários WooCommerce dentro do cartão: sem a borda/padding padrão do WC */
body.woocommerce-account .apc-auth-card form.login,
body.woocommerce-account .apc-auth-card form.register {
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	background: transparent !important;
	box-shadow: none !important;
}

/* Labels e campos (o theme.css antigo forçava texto branco com !important) */
body.woocommerce-account .apc-auth-card .apc-form-field { margin-bottom: 14px; }
body.woocommerce-account .apc-auth-card .apc-form-field label {
	display: block;
	margin: 0 0 6px;
	color: #171426;
	font-size: 14px;
	font-weight: 700;
}
body.woocommerce-account .apc-auth-card .apc-form-field label .required { color: #b91c1c; text-decoration: none; border: 0; }
body.woocommerce-account .apc-auth-card .apc-form-field .input-text,
body.woocommerce-account .apc-auth-card .apc-form-field input[type="text"],
body.woocommerce-account .apc-auth-card .apc-form-field input[type="email"],
body.woocommerce-account .apc-auth-card .apc-form-field input[type="password"] {
	width: 100% !important;
	height: auto !important;
	min-height: 48px;
	background: #fff !important;
	border: 1.5px solid #d9cfe6 !important;
	border-radius: 12px !important;
	color: #171426 !important;
	padding: 12px 14px !important;
	font-size: 16px !important;
	box-shadow: none !important;
}
body.woocommerce-account .apc-auth-card .apc-form-field .input-text:focus,
body.woocommerce-account .apc-auth-card .apc-form-field input:focus {
	border-color: #e91e8c !important;
	box-shadow: 0 0 0 3px rgba(233, 30, 140, .14) !important;
	background: #fff !important;
}
body.woocommerce-account .apc-auth-card .apc-form-field input::placeholder { color: #9a93aa !important; }
body.woocommerce-account .apc-auth-card .password-input { display: block; position: relative; width: 100%; }
body.woocommerce-account .apc-auth-card .show-password-input { top: 50%; transform: translateY(-50%); }

/* Lembrar / esqueci a senha */
body.woocommerce-account .apc-auth-card .apc-form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	justify-content: space-between;
	align-items: center;
	margin: 4px 0 16px;
}
body.woocommerce-account .apc-auth-card .apc-remember { color: #3f3a4d; margin: 0; font-weight: 500; }
body.woocommerce-account .apc-auth-card .apc-lost-pass { color: #c2185b; font-weight: 700; }

/* Botão */
body.woocommerce-account .apc-auth-card .apc-auth-submit { min-height: 50px; margin: 0; }

/* "Prefiro entrar com senha" (quando o link por e-mail está disponível) */
body.woocommerce-account .apc-auth-password {
	margin: 18px 0 0;
	padding-top: 16px;
	border-top: 1px solid #efe6f6;
}
body.woocommerce-account .apc-auth-password > summary {
	cursor: pointer;
	list-style: none;
	text-align: center;
	font-weight: 700;
	color: #4c1d95;
	padding: 6px 0;
}
body.woocommerce-account .apc-auth-password > summary::-webkit-details-marker { display: none; }
body.woocommerce-account .apc-auth-password > summary::after { content: ' ▾'; }
body.woocommerce-account .apc-auth-password[open] > summary { margin-bottom: 14px; }
body.woocommerce-account .apc-auth-password[open] > summary::after { content: ' ▴'; }

/* Divisor / social */
body.woocommerce-account .apc-auth-divider { color: #8b8498; }
body.woocommerce-account .apc-auth-divider::before,
body.woocommerce-account .apc-auth-divider::after { background: #efe6f6; }

/* Avisos do WooCommerce acima do cartão */
body.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper,
body.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-error,
body.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-message,
body.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-info {
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 560px) {
	body.woocommerce-account .apc-auth-card { padding: 6px 0 0; }
	body.woocommerce-account .apc-auth-title { font-size: 20px; }
}
