/**
 * Telas de autenticação — Iniciar sessão / Registrar
 * Esmeralda Paper
 */

/* Esconde título WP da página (card tem o seu) */
body.ashe-wc-auth-page .post-header,
body.ashe-wc-auth-page .entry-header,
body.ashe-wc-auth-page .page-title,
body.ashe-wc-auth-page .post-title {
	display: none !important;
}

body.ashe-wc-auth-page .post-content,
body.ashe-wc-auth-page .page-content {
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.ashe-wc-auth-page .main-content {
	padding-top: 0.5rem !important;
	padding-bottom: 2rem !important;
}

/* Shell — transparente, segue o fundo da loja (sem lavagem marrom/papel) */
.ashe-wc-auth {
	width: 100%;
	min-height: min(70vh, 640px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem 1rem 2rem;
	box-sizing: border-box;
	background: transparent;
}

.ashe-wc-auth__shell {
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
}

.ashe-wc-auth__card {
	background: var(--ashe-wc-white, #fff);
	border: 1px solid var(--ashe-wc-line, #e5e1db);
	border-radius: var(--ashe-wc-radius-lg, 12px);
	box-shadow: var(--ashe-wc-shadow, 0 1px 2px rgba(23, 25, 26, 0.04), 0 12px 32px rgba(23, 25, 26, 0.06));
	padding: 1.6rem 1.45rem 1.5rem;
	box-sizing: border-box;
}

.ashe-wc-auth__head {
	text-align: center;
	margin: 0 0 1.15rem;
}

.ashe-wc-auth__eyebrow {
	margin: 0 0 0.55rem;
	font-size: 0.68rem;
	font-weight: 650;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ashe-wc-moss, #455a51);
	font-family: var(--ashe-wc-font-sans, "Open Sans", system-ui, sans-serif);
}

.ashe-wc-auth__title {
	margin: 0 0 0.45rem !important;
	padding: 0 !important;
	border: 0 !important;
	font-family: var(--ashe-wc-font-serif, "Playfair Display", Georgia, serif) !important;
	font-size: clamp(1.55rem, 3vw, 1.85rem) !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	color: var(--ashe-wc-ink, #17191a) !important;
	text-transform: none !important;
	letter-spacing: -0.015em !important;
	text-align: center !important;
}

.ashe-wc-auth__title::after {
	display: none !important;
}

.ashe-wc-auth__lead {
	margin: 0 auto;
	max-width: 28rem;
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--ashe-wc-muted, #6a6e6c);
}

/* Tabs Iniciar sessão | Registrar */
.ashe-wc-auth__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.35rem;
	margin: 0 0 1.25rem;
	padding: 0.3rem;
	background: var(--ashe-wc-moss-soft, #eef2ef);
	border-radius: var(--ashe-wc-radius-pill, 999px);
	border: 1px solid transparent;
}

.ashe-wc-auth__tab {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0.45rem 0.75rem;
	border-radius: var(--ashe-wc-radius-pill, 999px);
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none !important;
	color: var(--ashe-wc-muted, #6a6e6c) !important;
	transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
	text-align: center;
	line-height: 1.2;
}

.ashe-wc-auth__tab:hover {
	color: var(--ashe-wc-moss-deep, #2c3a34) !important;
}

.ashe-wc-auth__tab.is-active {
	background: var(--ashe-wc-white, #fff);
	color: var(--ashe-wc-moss-deep, #2c3a34) !important;
	box-shadow: 0 1px 3px rgba(23, 25, 26, 0.08);
}

/* Form area */
.ashe-wc-auth__form-wrap {
	width: 100%;
}

.ashe-wc-auth .ashe-wc-auth-single,
.ashe-wc-auth #customer_login {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	float: none !important;
	grid-template-columns: 1fr !important;
}

.ashe-wc-auth .ashe-wc-auth-single__col,
.ashe-wc-auth #customer_login .u-column1,
.ashe-wc-auth #customer_login .u-column2,
.ashe-wc-auth #customer_login .col-1,
.ashe-wc-auth #customer_login .col-2 {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.ashe-wc-auth .woocommerce form.login,
.ashe-wc-auth .woocommerce form.register {
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
}

.ashe-wc-auth .woocommerce form .form-row {
	margin: 0 0 0.85rem !important;
}

.ashe-wc-auth .woocommerce form .form-row label {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--ashe-wc-ink, #17191a);
	margin-bottom: 0.35rem;
	display: block;
}

.ashe-wc-auth .woocommerce form .input-text,
.ashe-wc-auth .woocommerce form input[type="text"],
.ashe-wc-auth .woocommerce form input[type="email"],
.ashe-wc-auth .woocommerce form input[type="password"] {
	width: 100% !important;
	min-height: 46px;
	padding: 0.65rem 0.85rem !important;
	border: 1px solid var(--ashe-wc-line, #e5e1db) !important;
	border-radius: var(--ashe-wc-radius, 8px) !important;
	background: var(--ashe-wc-paper, #f7f4ef) !important;
	color: var(--ashe-wc-ink, #17191a) !important;
	font-size: 0.95rem !important;
	box-sizing: border-box !important;
}

.ashe-wc-auth .woocommerce form .input-text:focus {
	outline: none !important;
	border-color: var(--ashe-wc-moss, #455a51) !important;
	box-shadow: var(--ashe-wc-focus, 0 0 0 3px rgba(69, 90, 81, 0.2)) !important;
	background: #fff !important;
}

.ashe-wc-auth .woocommerce-button,
.ashe-wc-auth .woocommerce form .button,
.ashe-wc-auth__btn--primary {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-height: 48px !important;
	margin: 0.35rem 0 0 !important;
	padding: 0.7rem 1.1rem !important;
	border: 0 !important;
	border-radius: var(--ashe-wc-radius-pill, 999px) !important;
	background: var(--ashe-wc-accent, #455a51) !important;
	color: #fff !important;
	font-size: 0.92rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.01em;
	cursor: pointer;
	text-decoration: none !important;
	transition: background 0.18s ease;
}

.ashe-wc-auth .woocommerce-button:hover,
.ashe-wc-auth .woocommerce form .button:hover,
.ashe-wc-auth__btn--primary:hover {
	background: var(--ashe-wc-accent-deep, #2c3a34) !important;
	color: #fff !important;
}

.ashe-wc-auth-form__row-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.65rem;
}

.ashe-wc-auth .woocommerce-form-login__rememberme {
	font-size: 0.82rem;
	color: var(--ashe-wc-muted, #6a6e6c);
}

.ashe-wc-auth .lost_password {
	text-align: center;
	margin: 0.75rem 0 0 !important;
	font-size: 0.84rem;
}

.ashe-wc-auth .lost_password a {
	color: var(--ashe-wc-moss-deep, #2c3a34) !important;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ashe-wc-auth__foot {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--ashe-wc-line, #e5e1db);
	text-align: center;
	font-size: 0.86rem;
	color: var(--ashe-wc-muted, #6a6e6c);
}

.ashe-wc-auth__foot a {
	color: var(--ashe-wc-moss-deep, #2c3a34) !important;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ashe-wc-auth-hint {
	font-size: 0.84rem;
	color: var(--ashe-wc-muted, #6a6e6c);
	line-height: 1.5;
	margin: 0 0 0.85rem !important;
}

/* Google button */
.ashe-wc-auth .ashe-wc-google-auth {
	margin: 0 0 0.85rem;
}

.ashe-wc-auth .ashe-wc-google-auth__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	width: 100%;
	min-height: 46px;
	padding: 0.55rem 1rem;
	border: 1px solid var(--ashe-wc-line, #e5e1db);
	border-radius: var(--ashe-wc-radius-pill, 999px);
	background: #fff;
	color: var(--ashe-wc-ink, #17191a) !important;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ashe-wc-auth .ashe-wc-google-auth__btn:hover {
	border-color: #c5d5ce;
	background: var(--ashe-wc-moss-soft, #eef2ef);
}

.ashe-wc-auth .ashe-wc-google-auth__or {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0.85rem 0 0.15rem;
	color: var(--ashe-wc-muted, #6a6e6c);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.ashe-wc-auth .ashe-wc-google-auth__or::before,
.ashe-wc-auth .ashe-wc-google-auth__or::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--ashe-wc-line, #e5e1db);
}

/* Help block sob o login */
.ashe-wc-auth .ashe-wc-auth-help {
	margin-top: 1rem;
	padding: 0.85rem 0.9rem;
	background: var(--ashe-wc-paper, #f7f4ef);
	border-radius: var(--ashe-wc-radius, 8px);
	border: 1px solid var(--ashe-wc-line, #e5e1db);
}

.ashe-wc-auth .ashe-wc-auth-help__title {
	margin: 0 0 0.4rem;
	font-size: 0.78rem;
	font-weight: 650;
	color: var(--ashe-wc-ink, #17191a);
}

.ashe-wc-auth .ashe-wc-auth-help__list {
	margin: 0;
	padding: 0 0 0 1rem;
	font-size: 0.78rem;
	color: var(--ashe-wc-muted, #6a6e6c);
	line-height: 1.45;
}

.ashe-wc-auth .ashe-wc-auth-help__list a {
	color: var(--ashe-wc-moss-deep, #2c3a34) !important;
	font-weight: 600;
}

/* Notices */
.ashe-wc-auth .woocommerce-notices-wrapper,
.ashe-wc-auth .woocommerce-message,
.ashe-wc-auth .woocommerce-error,
.ashe-wc-auth .woocommerce-info {
	margin: 0 0 1rem !important;
	border-radius: var(--ashe-wc-radius, 8px) !important;
}

/* Mobile */
@media screen and (max-width: 640px) {
	.ashe-wc-auth {
		min-height: 0;
		padding: 0.75rem 0.75rem 1.75rem;
	}

	.ashe-wc-auth__card {
		padding: 1.25rem 1.1rem 1.25rem;
		border-radius: 14px;
	}

	.ashe-wc-auth__title {
		font-size: 1.5rem !important;
	}

	.ashe-wc-auth__tabs {
		margin-bottom: 1rem;
	}

	.ashe-wc-auth__tab {
		min-height: 42px;
		font-size: 0.78rem;
		padding: 0.4rem 0.5rem;
	}
}

/* Dark — sem fundo extra; herda o tema da loja */
body.ashe-dark-mode .ashe-wc-auth {
	background: transparent;
}

body.ashe-dark-mode .ashe-wc-auth__card {
	background: #1a1d24;
	border-color: #2a2e38;
}

body.ashe-dark-mode .ashe-wc-auth__title {
	color: #f2efe8 !important;
}

body.ashe-dark-mode .ashe-wc-auth__tabs {
	background: #15181e;
}

body.ashe-dark-mode .ashe-wc-auth__tab.is-active {
	background: #252930;
	color: #f2efe8 !important;
}

body.ashe-dark-mode .ashe-wc-auth .woocommerce form .input-text {
	background: #15181e !important;
	border-color: #2a2e38 !important;
	color: #e8e6e1 !important;
}

body.ashe-dark-mode .ashe-wc-auth .woocommerce-button {
	background: #cbb79c !important;
	color: #1a1d24 !important;
}

/* =========================================================================
   Recuperar / redefinir senha (mesmo card das telas Entrar)
   ========================================================================= */
body.ashe-wc-auth-page--lost .post-header,
body.ashe-wc-auth-page--lost .entry-header,
body.ashe-wc-auth-page--lost .page-title,
body.ashe-wc-auth-page--lost .post-title,
body.woocommerce-lost-password .post-header .page-title,
body.woocommerce-lost-password .post-header {
	display: none !important;
}

body.ashe-wc-auth-page--lost .post-content,
body.ashe-wc-auth-page--lost .page-content,
body.woocommerce-lost-password .main-content .post-content {
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.ashe-wc-auth-page--lost .main-container,
body.woocommerce-lost-password .main-container {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 auto !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.ashe-wc-auth-page--lost .main-content,
body.woocommerce-lost-password .main-content {
	padding-top: 0.5rem !important;
	padding-bottom: 2rem !important;
	background: transparent !important;
}

/* Form dentro do card — sem “card no card” */
.ashe-wc-auth form.lost_reset_password,
.ashe-wc-auth .woocommerce-ResetPassword {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	float: none !important;
	width: 100% !important;
}

.ashe-wc-auth form.lost_reset_password .form-row-first,
.ashe-wc-auth form.lost_reset_password .form-row-last,
.ashe-wc-auth form.lost_reset_password .form-row-wide,
.ashe-wc-auth form.lost_reset_password .form-row {
	width: 100% !important;
	float: none !important;
	clear: both !important;
	margin: 0 0 0.95rem !important;
}

.ashe-wc-auth form.lost_reset_password .clear {
	display: none !important;
}

.ashe-wc-auth-form__intro {
	margin: 0 0 1rem !important;
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--ashe-wc-muted, #6a6e6c);
	text-align: center;
}

.ashe-wc-auth form.lost_reset_password .button,
.ashe-wc-auth form.lost_reset_password .woocommerce-Button {
	width: 100% !important;
	min-height: 46px !important;
	margin: 0.15rem 0 0 !important;
	border-radius: var(--ashe-wc-radius-pill, 999px) !important;
	background: var(--ashe-wc-moss-deep, #2c3a34) !important;
	border-color: var(--ashe-wc-moss-deep, #2c3a34) !important;
	color: #fff !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em;
}

.ashe-wc-auth form.lost_reset_password .button:hover {
	background: var(--ashe-wc-moss, #455a51) !important;
	border-color: var(--ashe-wc-moss, #455a51) !important;
	color: #fff !important;
}

.ashe-wc-auth__foot p {
	margin: 0 0 0.45rem;
}

.ashe-wc-auth__foot p:last-child {
	margin-bottom: 0;
}

/* Notices fora do card (WC imprime antes) — centrar na página de lost */
body.ashe-wc-auth-page--lost .woocommerce-notices-wrapper,
body.woocommerce-lost-password .woocommerce-notices-wrapper {
	max-width: 440px;
	margin: 0 auto 1rem !important;
}

/* Turnstile no lost password, se activo */
.ashe-wc-auth .cf-turnstile,
.ashe-wc-auth [id^="cf-turnstile"] {
	margin: 0.5rem 0 0.85rem !important;
	display: flex;
	justify-content: center;
}

/* =========================================================================
   Nova senha (após e-mail) — layout FOLGADO, sem compressão
   ========================================================================= */
body.ashe-wc-auth-page--reset .post-header,
body.ashe-wc-auth-page--reset .page-title,
body.woocommerce-reset-password .post-header,
body.woocommerce-reset-password .page-title {
	display: none !important;
}

body.ashe-wc-auth-page--reset .main-container,
body.woocommerce-reset-password .main-container,
body.ashe-wc-auth-page--reset article.post,
body.woocommerce-reset-password article.post {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
}

body.ashe-wc-auth-page--reset .main-content,
body.woocommerce-reset-password .main-content {
	padding-top: 1.25rem !important;
	padding-bottom: 3rem !important;
}

.ashe-wc-auth--spacious {
	min-height: min(78vh, 720px);
	padding: 1.75rem 1.15rem 2.75rem;
	align-items: flex-start;
}

.ashe-wc-auth__shell--wide {
	max-width: 520px;
}

.ashe-wc-auth__card--spacious {
	padding: 2rem 1.75rem 1.75rem;
	border-radius: 16px;
}

.ashe-wc-auth--reset .ashe-wc-auth__head {
	margin-bottom: 1.5rem;
}

.ashe-wc-auth--reset .ashe-wc-auth__title {
	font-size: clamp(1.7rem, 3.2vw, 2rem) !important;
	margin-bottom: 0.65rem !important;
}

.ashe-wc-auth--reset .ashe-wc-auth__lead {
	font-size: 0.95rem;
	line-height: 1.65;
	max-width: 32rem;
}

.ashe-wc-auth-form__fields {
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
	margin: 0 0 1.35rem;
}

.ashe-wc-auth-field {
	margin: 0 !important;
}

.ashe-wc-auth-field label {
	display: block;
	margin: 0 0 0.45rem !important;
	font-size: 0.78rem !important;
	font-weight: 650 !important;
	letter-spacing: 0.04em;
	color: var(--ashe-wc-muted, #6a6e6c) !important;
}

.ashe-wc-auth-field .input-text,
.ashe-wc-auth--reset .woocommerce form .input-text,
.ashe-wc-auth--reset .woocommerce form input[type="password"] {
	min-height: 50px !important;
	padding: 0.8rem 1rem !important;
	font-size: 1rem !important;
	border-radius: 10px !important;
	background: var(--ashe-wc-paper, #f7f4ef) !important;
	border: 1px solid var(--ashe-wc-line, #e5e1db) !important;
}

.ashe-wc-auth-field .input-text:focus {
	background: #fff !important;
	border-color: var(--ashe-wc-moss, #455a51) !important;
	box-shadow: 0 0 0 3px rgba(69, 90, 81, 0.18) !important;
}

.ashe-wc-auth-field__hint {
	display: block;
	margin-top: 0.4rem;
	font-size: 0.78rem;
	line-height: 1.4;
	color: var(--ashe-wc-muted, #6a6e6c);
}

.ashe-wc-auth--reset .ashe-wc-auth-form__row-actions {
	margin-top: 0.25rem;
}

.ashe-wc-auth--reset .ashe-wc-auth__submit,
.ashe-wc-auth--reset .woocommerce-Button.button {
	width: 100% !important;
	min-height: 52px !important;
	margin-top: 0.35rem !important;
	border-radius: 999px !important;
	font-size: 0.95rem !important;
	font-weight: 650 !important;
	background: var(--ashe-wc-moss-deep, #2c3a34) !important;
	border-color: var(--ashe-wc-moss-deep, #2c3a34) !important;
	color: #fff !important;
}

.ashe-wc-auth--reset .ashe-wc-auth-help {
	margin-top: 1.35rem;
	padding: 1rem 1.05rem;
}

.ashe-wc-auth--reset .ashe-wc-auth__foot {
	margin-top: 1.5rem;
	padding-top: 1.15rem;
}

@media screen and (max-width: 640px) {
	.ashe-wc-auth--spacious {
		padding: 1rem 0.85rem 2.25rem;
		min-height: 0;
	}
	.ashe-wc-auth__card--spacious {
		padding: 1.5rem 1.2rem 1.35rem;
	}
	.ashe-wc-auth__shell--wide {
		max-width: 100%;
	}
}

/* =========================================================================
   Confirmação “e-mail enviado” + ícone sucesso
   ========================================================================= */
body.woocommerce-lost-password .woocommerce-message,
body.ashe-wc-auth-page--confirm .woocommerce-message,
body.ashe-wc-auth-page--lost .woocommerce-notices-wrapper .woocommerce-message {
	display: none !important; /* a mensagem vive no card */
}

.ashe-wc-auth__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: var(--ashe-wc-moss-soft, #eef2ef);
	color: var(--ashe-wc-moss-deep, #2c3a34);
}

.ashe-wc-auth__card--success {
	text-align: center;
}

.ashe-wc-auth__card--success .ashe-wc-auth__head {
	text-align: center;
}

.ashe-wc-auth-help--confirm {
	text-align: left;
	margin-top: 0.25rem;
	margin-bottom: 1.5rem;
}

.ashe-wc-auth-help__steps {
	margin: 0;
	padding: 0 0 0 1.2rem;
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--ashe-wc-muted, #6a6e6c);
}

.ashe-wc-auth-help__steps li {
	margin: 0 0 0.45rem;
}

.ashe-wc-auth-help__steps li:last-child {
	margin-bottom: 0;
}

.ashe-wc-auth__actions-row {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin: 0 0 0.25rem;
}

.ashe-wc-auth__btn.button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-height: 50px !important;
	margin: 0 !important;
	padding: 0.75rem 1.25rem !important;
	border-radius: 999px !important;
	font-size: 0.92rem !important;
	font-weight: 650 !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

.ashe-wc-auth__btn--primary.button {
	background: var(--ashe-wc-moss-deep, #2c3a34) !important;
	border: 1px solid var(--ashe-wc-moss-deep, #2c3a34) !important;
	color: #fff !important;
}

.ashe-wc-auth__btn--primary.button:hover {
	background: var(--ashe-wc-moss, #455a51) !important;
	border-color: var(--ashe-wc-moss, #455a51) !important;
	color: #fff !important;
}

.ashe-wc-auth__btn--ghost.button {
	background: transparent !important;
	border: 1px solid var(--ashe-wc-line, #e5e1db) !important;
	color: var(--ashe-wc-moss-deep, #2c3a34) !important;
}

.ashe-wc-auth__btn--ghost.button:hover {
	background: var(--ashe-wc-moss-soft, #eef2ef) !important;
	border-color: var(--ashe-wc-moss, #455a51) !important;
	color: var(--ashe-wc-moss-deep, #2c3a34) !important;
}

/* Reset form: esconder intro redundante se ainda existir */
.ashe-wc-auth--reset .ashe-wc-auth-form__intro {
	display: none;
}
