/* =========================================================
   Account Forms para WooCommerce — estilos das telas de auth
   ========================================================= */

.wcaa {
	--wcaa-blue: #0f9be8;
	--wcaa-blue-hover: #0d88cd;
	--wcaa-navy: #080d30;
	--wcaa-navy-hover: #050827;
	--wcaa-eyebrow: #192680;
	--wcaa-text: #707071;
	--wcaa-muted: #8b93a1;
	--wcaa-border: #d5d8de;
	--wcaa-placeholder: #a7acb5;
	--wcaa-note-bg: #f2f3f5;

	max-width: 520px;
	margin: 0 auto;
	padding: 8px;
	box-sizing: border-box;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--wcaa-navy);
	-webkit-font-smoothing: antialiased;
	text-align: left;
}

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

/* ---------- Painéis ---------- */
.wcaa-panel {
	display: none;
}

.wcaa-panel.is-active {
	display: block;
	animation: wcaa-fade 0.25s ease;
}

@keyframes wcaa-fade {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Cabeçalho ---------- */
.wcaa-eyebrow {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 600;
	line-height: 34px;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: var(--wcaa-eyebrow);
}

.wcaa-title {
	margin: 0 0 20px;
	font-size: 40px;
	line-height: 120%;
	font-weight: 700;
	letter-spacing: -1.2px;
	text-transform: uppercase;
	color: var(--wcaa-navy);
}

.wcaa-subtitle {
	margin: 0 0 30px;
	font-size: 22px;
	line-height: 36px;
	font-weight: 500;
	color: var(--wcaa-text);
}

/* ---------- Campos ---------- */
.wcaa-field {
	margin-bottom: 18px;
}

.wcaa-field > label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 34px;
	letter-spacing: 2.8px;
	text-transform: uppercase;
	color: var(--wcaa-navy);
}

.wcaa-field input {
	width: 100%;
	height: 54px;
	padding: 0 20px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	color: var(--wcaa-navy);
	background: #fff;
	border: 1px solid var(--wcaa-border);
	border-radius: 4px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wcaa-field input::placeholder {
	color: var(--wcaa-placeholder);
}

.wcaa-field input:focus {
	outline: none;
	border-color: var(--wcaa-blue);
	box-shadow: 0 0 0 3px rgba(15, 155, 232, 0.15);
}

/* ---------- Grid de duas colunas ---------- */
.wcaa-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 24px;
}

/* ---------- Linha lembrar / esqueci ---------- */
.wcaa-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 4px 0 24px;
}

/* ---------- Checkbox custom ---------- */
.wcaa-check {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wcaa-navy);
}

.wcaa-check input,
.wcaa-agree input {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	margin: 0;
	background: #f0f1f3;
	border: 1px solid var(--wcaa-border);
	border-radius: 5px;
	cursor: pointer;
	position: relative;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.wcaa-check input:checked,
.wcaa-agree input:checked {
	background: var(--wcaa-blue);
	border-color: var(--wcaa-blue);
}

.wcaa-check input:checked::after,
.wcaa-agree input:checked::after {
	content: "";
	position: absolute;
	left: 9px;
	top: 4px;
	width: 6px;
	height: 12px;
	border: solid #fff;
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}

.wcaa-check input:focus-visible,
.wcaa-agree input:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(15, 155, 232, 0.25);
}

/* ---------- Aceite (cadastro) ---------- */
.wcaa-agree {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 8px 0 26px;
	font-size: 18px;
	line-height: 1.5;
	color: var(--wcaa-text);
	cursor: pointer;
}

.wcaa-agree input {
	margin-top: 3px;
}

/* ---------- Links ---------- */
.wcaa-link {
	color: var(--wcaa-blue);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.wcaa-link:hover {
	text-decoration: underline;
}

/* ---------- Botões ---------- */
.wcaa-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 58px;
	margin: 0 0 12px;
	padding: 12px 20px;
	font-family: inherit;
	font-size: 19px;
	font-weight: 600;
	line-height: 34px;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.wcaa-btn--primary {
	background: var(--wcaa-blue);
	color: #fff;
}

.wcaa-btn--primary:hover {
	background: var(--wcaa-blue-hover);
	color: #fff;
}

.wcaa-btn--dark {
	background: var(--wcaa-navy);
	color: #fff;
}

.wcaa-btn--dark:hover {
	background: var(--wcaa-navy-hover);
	color: #fff;
}

/* Força o texto branco mesmo quando o tema colore links/botões. */
.wcaa a.wcaa-btn,
.wcaa a.wcaa-btn:link,
.wcaa a.wcaa-btn:visited,
.wcaa a.wcaa-btn:hover,
.wcaa a.wcaa-btn:focus,
.wcaa a.wcaa-btn:active,
.wcaa button.wcaa-btn,
.wcaa button.wcaa-btn:hover,
.wcaa button.wcaa-btn:focus {
	color: #fff !important;
	text-decoration: none !important;
}

.wcaa-btn:disabled {
	opacity: 0.65;
	cursor: default;
}

/* ---------- Divisor "New here?" ---------- */
.wcaa-divider {
	display: flex;
	align-items: center;
	margin: 24px 0;
}

.wcaa-divider::before,
.wcaa-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--wcaa-border);
}

.wcaa-divider span {
	padding: 0 22px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wcaa-muted);
}

/* ---------- Rodapé ---------- */
.wcaa-foot {
	margin: 26px 0 0;
	font-size: 18px;
	text-align: center;
	color: var(--wcaa-text);
}

/* ---------- Caixa informativa (reset) ---------- */
.wcaa-note {
	margin: 0 0 30px;
	padding: 26px 38px;
	font-size: 18px;
	font-weight: 400;
	line-height: 27px;
	text-align: center;
	color: #707071;
	background: var(--wcaa-note-bg);
	border-left: 6px solid var(--wcaa-blue);
}

/* ---------- Mensagens (AJAX) ---------- */
.wcaa-messages {
	margin-bottom: 4px;
}

.wcaa-messages:empty {
	display: none;
}

.wcaa-alert {
	margin-bottom: 22px;
	padding: 15px 20px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	border-radius: 8px;
}

.wcaa-alert--error {
	color: #b3261e;
	background: #fdecea;
	border: 1px solid #f5c2c0;
}

.wcaa-alert--success {
	color: #1a7f3c;
	background: #e7f6ec;
	border: 1px solid #b6e3c4;
}

/* ---------- Logado ---------- */
.wcaa--loggedin {
	text-align: left;
}

/* ---------- Responsivo ---------- */
@media (max-width: 560px) {
	.wcaa-grid {
		grid-template-columns: 1fr;
	}

	.wcaa-title {
		font-size: 32px;
		line-height: 1.15;
	}

	.wcaa-subtitle {
		font-size: 18px;
		line-height: 1.5;
	}

	.wcaa-note,
	.wcaa-agree,
	.wcaa-foot {
		font-size: 16px;
	}

	.wcaa-btn {
		font-size: 17px;
	}

	.wcaa-note {
		padding: 22px 24px;
	}
}
