/**
 * Login/Cadastro — página /minha-conta/ (GynCursos).
 * Card único com abas, portado do CertificadosEAD (cead-auth.css) — CEAD tem
 * um sistema de tokens próprio de radius/shadow/escala de texto que o
 * GynCursos ainda não tem; aqui os tokens --gyn-* de gyn-cert.css cobrem só
 * cor/espaçamento/fonte, o resto usa valor direto (mesmo padrão já usado em
 * gyn-navbar.css).
 */

.gyn-auth-wrap {
	display: flex;
	justify-content: center;
	padding: 64px 16px;
	min-height: 60vh;
	align-items: flex-start;
}

.gyn-auth-card {
	width: 100%;
	max-width: 420px;
	padding: 32px;
	background: var(--gyn-surface);
	border: 1px solid var(--gyn-line);
	border-radius: 14px;
	box-shadow: 0 16px 40px -12px rgba(48, 48, 60, 0.28);
}

@media (max-width: 480px) {
	.gyn-auth-card {
		padding: 24px 20px;
	}
	.gyn-auth-wrap {
		padding: 32px 12px;
	}
}

/* --- Abas Entrar / Criar conta --- */

.gyn-auth-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--gyn-line);
}

.gyn-auth-tab {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	flex: 1;
	background: none !important;
	background-image: none !important;
	box-shadow: none !important;
	border: none !important;
	border-bottom: 2px solid transparent !important;
	border-radius: 0 !important;
	padding: 12px 8px !important;
	font-family: var(--gyn-font-body);
	font-size: 15px !important;
	font-weight: 600;
	text-transform: none !important;
	letter-spacing: normal !important;
	color: var(--gyn-ink-soft) !important;
	cursor: pointer;
	transition: color 0.18s ease, border-color 0.18s ease;
}

.gyn-auth-tab:hover {
	color: var(--gyn-ink) !important;
}

.gyn-auth-tab.is-active {
	color: var(--gyn-teal) !important;
	border-bottom-color: var(--gyn-teal) !important;
}

.gyn-auth-title {
	font-family: var(--gyn-font-heading);
	font-weight: 700;
	font-size: 24px;
	color: var(--gyn-ink);
	margin: 0 0 24px;
	text-align: center;
}

/* Avisos do WooCommerce (erro/sucesso) nas telas de recuperação/redefinição
   de senha — impressos pelo próprio hook nativo (woocommerce_before_lost_
   password_form / woocommerce_before_reset_password_form, wc-template-
   hooks.php), disparado dentro do card logo após o título. Cor/estrutura da
   lista continuam as do WooCommerce (mesmo vermelho/verde reconhecível em
   qualquer outra tela do site); aqui só o espaçamento pra caber no card. */
.gyn-auth-card .woocommerce-notices-wrapper:empty {
	display: none;
}

.gyn-auth-card .woocommerce-notices-wrapper ul {
	margin: 0 0 20px;
}

/* Parágrafo de instrução das telas de recuperação/redefinição de senha
   (form-lost-password.php, form-reset-password.php, lost-password-confirmation.php) */
.gyn-auth-lead {
	margin: -12px 0 24px;
	font-family: var(--gyn-font-body);
	font-size: 14px;
	line-height: 1.5;
	color: var(--gyn-ink-soft);
	text-align: center;
}

/* --- Botão social (Nextend Social Login) --- */

.gyn-social-buttons {
	display: flex;
	gap: 12px;
	margin-top: 18px;
	margin-bottom: 20px;
}

.gyn-social-item {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
}

.gyn-badge-lastused {
	position: absolute;
	top: -18px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1;
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	background: var(--gyn-teal-bg);
	color: var(--gyn-teal);
	font-family: var(--gyn-font-body);
	font-size: 9px;
	line-height: 1.4;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-radius: 999px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
	white-space: nowrap;
}

.gyn-social-item .nsl-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 44px;
	border-radius: 10px;
	border: 1.5px solid var(--gyn-line);
	background: var(--gyn-surface) !important;
	cursor: pointer;
	transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.gyn-social-item .nsl-button:hover {
	box-shadow: 0 8px 20px -8px rgba(48, 48, 60, 0.3);
	border-color: var(--gyn-ink-soft);
	transform: translateY(-1px);
}

.gyn-social-item .nsl-button-svg-container {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.gyn-social-item .nsl-button-svg-container svg {
	display: block;
	width: 100% !important;
	height: 100% !important;
}

.gyn-social-item .nsl-button-label-container {
	font-family: var(--gyn-font-body);
	font-size: 14px;
	font-weight: 600;
	color: var(--gyn-ink) !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 400px) {
	.gyn-social-buttons {
		flex-direction: column;
	}
}

/* --- Divisor "ou" --- */

.gyn-auth-divider {
	display: flex;
	align-items: center;
	text-align: center;
	margin: 24px 0;
	color: var(--gyn-ink-soft);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.gyn-auth-divider::before,
.gyn-auth-divider::after {
	content: "";
	flex: 1;
	border-top: 1px solid var(--gyn-line);
}

.gyn-auth-divider span {
	padding: 0 12px;
}

/* --- Painéis / formulário --- */

.gyn-auth-panel {
	display: block;
}

.gyn-auth-panel[hidden] {
	display: none;
}

.gyn-auth-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.gyn-form-row {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gyn-form-row label {
	font-family: var(--gyn-font-body);
	font-size: 13.5px;
	font-weight: 500;
	color: var(--gyn-ink);
}

/* Padroniza largura/estilo de QUALQUER campo de texto dentro do card, mesmo
   os injetados por outros plugins via hooks (ex: nome completo, CPF, etc.) */
.gyn-auth-form input[type="text"],
.gyn-auth-form input[type="email"],
.gyn-auth-form input[type="tel"],
.gyn-auth-form input[type="password"] {
	width: 100% !important;
	box-sizing: border-box !important;
	font-family: var(--gyn-font-body);
	font-size: 15px;
	padding: 10px 14px !important;
	border: 1.5px solid var(--gyn-line) !important;
	border-radius: 8px !important;
	background: var(--gyn-surface) !important;
	color: var(--gyn-ink);
	box-shadow: none !important;
}

.gyn-auth-form input[type="text"]:focus,
.gyn-auth-form input[type="email"]:focus,
.gyn-auth-form input[type="tel"]:focus,
.gyn-auth-form input[type="password"]:focus {
	border-color: var(--gyn-teal) !important;
	box-shadow: 0 0 0 3px rgba(10, 110, 100, 0.12) !important;
	outline: none;
}

.gyn-password-field {
	position: relative;
}

.gyn-password-field input {
	padding-right: 44px !important;
}

.gyn-password-toggle {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	position: absolute;
	right: 12px;
	bottom: 8px;
	background: none !important;
	background-image: none !important;
	box-shadow: none !important;
	border: none !important;
	padding: 4px !important;
	color: var(--gyn-ink-soft) !important;
	cursor: pointer;
	display: flex;
	border-radius: 6px;
}

.gyn-password-toggle:hover {
	color: var(--gyn-ink) !important;
}

.gyn-password-toggle svg {
	display: none;
}

.gyn-password-toggle .gyn-eye-on {
	display: block;
}

.gyn-password-toggle.is-visible .gyn-eye-on {
	display: none;
}

.gyn-password-toggle.is-visible .gyn-eye-off {
	display: block;
}

.gyn-auth-form input[type="password"]::-ms-reveal,
.gyn-auth-form input[type="password"]::-ms-clear {
	display: none;
}

.gyn-auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

.gyn-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: var(--gyn-ink-soft);
	cursor: pointer;
}

.gyn-remember input {
	width: 16px;
	height: 16px;
	accent-color: var(--gyn-teal);
	cursor: pointer;
}

.gyn-forgot {
	font-size: 13.5px;
	color: var(--gyn-teal);
	text-decoration: none;
}

.gyn-forgot:hover {
	text-decoration: underline;
}

/* Estilo completo próprio (não confiar só na classe "cta-btn" — em
   gyn-navbar.css ela só tem regra visual escopada dentro de .gyn-nav/
   .gyn-drawer; fora desses contêineres cai no `button` genérico do tema,
   que força fundo verde — mesma armadilha já documentada no projeto). */
.gyn-auth-submit {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	display: flex;
	width: 100%;
	justify-content: center;
	align-items: center;
	gap: 7px;
	text-align: center;
	background: var(--gyn-action) !important;
	color: var(--gyn-ink) !important;
	font-family: var(--gyn-font-body);
	font-weight: 700;
	font-size: 15px !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	padding: 12px 20px !important;
	border-radius: 999px !important;
	border: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background 0.15s ease;
}

.gyn-auth-submit:hover {
	background: var(--gyn-action-hover) !important;
	color: var(--gyn-ink) !important;
}

.gyn-auth-submit.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.gyn-auth-switch {
	margin: 20px 0 0;
	text-align: center;
	font-size: 13.5px;
	color: var(--gyn-ink-soft);
}

.gyn-auth-switch-link {
	color: var(--gyn-teal);
	font-weight: 600;
	text-decoration: none;
	margin-left: 4px;
}

.gyn-auth-switch-link:hover {
	text-decoration: underline;
}

/* --- Acessibilidade: foco visível para navegação por teclado --- */

.gyn-auth-tab:focus-visible,
.gyn-password-toggle:focus-visible,
.gyn-auth-submit:focus-visible,
.gyn-social-buttons .nsl-button a:focus-visible {
	outline: 2px solid var(--gyn-teal);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.gyn-auth-tab,
	.gyn-social-buttons .nsl-button,
	.gyn-auth-submit {
		transition: none;
	}
}
