/**
 * SAMPA Auth — login, register, account (frontend)
 */

/* Standalone auth pages — hide theme chrome (Storefront + generic themes) */
.sampa-cotacao-auth-page .site-header,
.sampa-cotacao-auth-page header.site-header,
.sampa-cotacao-auth-page #masthead,
.sampa-cotacao-auth-page .storefront-primary-navigation,
.sampa-cotacao-auth-page footer.site-footer,
.sampa-cotacao-auth-page .site-footer,
.sampa-cotacao-auth-page #colophon,
.sampa-cotacao-auth-page .footer_new,
.sampa-cotacao-auth-page .woocommerce-breadcrumb,
.sampa-cotacao-auth-page .breadcrumb,
.sampa-cotacao-auth-page .sidebar,
.sampa-cotacao-auth-page .widget-area,
.sampa-cotacao-auth-page .entry-header,
.sampa-cotacao-auth-page .page-header {
	display: none !important;
}

.sampa-cotacao-auth-page #page,
.sampa-cotacao-auth-page #content,
.sampa-cotacao-auth-page main,
.sampa-cotacao-auth-page .site-main,
.sampa-cotacao-auth-page .content-area,
.sampa-cotacao-auth-page .woocommerce,
.sampa-cotacao-auth-page .container,
.sampa-cotacao-auth-page .col-full {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.sampa-cotacao-auth-page .entry-content,
.sampa-cotacao-auth-page .elementor-section-wrap {
	margin: 0 !important;
	padding: 0 !important;
}

.sampa-auth-page-shell {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	background: var(--sampa-bg, #f8fafc);
	box-sizing: border-box;
}

.sampa-auth-page-shell *,
.sampa-auth-page-shell *::before,
.sampa-auth-page-shell *::after {
	box-sizing: border-box;
}

.sampa-auth-wrap {
	--sampa-brand: #4f46e5;
	--sampa-brand-dark: #4338ca;
	--sampa-surface: #ffffff;
	--sampa-bg: #f8fafc;
	--sampa-border: #e2e8f0;
	--sampa-text: #1e293b;
	--sampa-muted: #64748b;
	--sampa-radius: 14px;
	--sampa-danger: #b91c1c;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--sampa-text);
	line-height: 1.5;
	max-width: 480px;
	margin: 0 auto;
	padding: 0 16px;
}

.sampa-auth-card {
	background: var(--sampa-surface);
	border: 1px solid var(--sampa-border);
	border-radius: var(--sampa-radius);
	box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
	padding: 24px;
}

.sampa-auth-card__header h2 {
	margin: 0 0 6px;
	font-size: 1.35rem;
	font-weight: 700;
}

.sampa-auth-card__header p {
	margin: 0 0 20px;
	color: var(--sampa-muted);
	font-size: 0.95rem;
}

.sampa-auth-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sampa-auth-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sampa-auth-field span {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--sampa-text);
}

.sampa-auth-field input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--sampa-border);
	border-radius: 10px;
	font-size: 1rem;
	background: #fff;
	color: var(--sampa-text);
}

.sampa-auth-field input:focus {
	outline: none;
	border-color: var(--sampa-brand);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.sampa-auth-field__hint {
	font-size: 0.8rem;
	color: var(--sampa-muted);
}

.sampa-auth-field__hint.is-ok {
	color: #047857;
}

.sampa-auth-field__hint.is-error {
	color: var(--sampa-danger);
}

.sampa-auth-password {
	display: flex;
	align-items: stretch;
	gap: 0;
}

.sampa-auth-password input {
	flex: 1;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.sampa-auth-password__toggle {
	border: 1px solid var(--sampa-border);
	border-left: none;
	border-radius: 0 10px 10px 0;
	background: var(--sampa-bg);
	color: var(--sampa-muted);
	font-size: 0.8rem;
	padding: 0 12px;
	cursor: pointer;
	white-space: nowrap;
}

.sampa-auth-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: var(--sampa-muted);
}

.sampa-auth-form__submit {
	width: 100%;
	margin-top: 4px;
}

.sampa-auth-form__message {
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 0.9rem;
	margin-bottom: 14px;
}

.sampa-auth-form__message.is-success {
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
}

.sampa-auth-form__message.is-error {
	background: #fef2f2;
	color: var(--sampa-danger);
	border: 1px solid #fecaca;
}

.sampa-auth-card__footer {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--sampa-border);
	text-align: center;
	font-size: 0.9rem;
	color: var(--sampa-muted);
}

.sampa-auth-card__footer a {
	color: var(--sampa-brand);
	text-decoration: none;
	font-weight: 600;
}

.sampa-auth-card__footer a:hover {
	color: var(--sampa-brand-dark);
}

.sampa-auth-notice {
	padding: 16px;
	background: var(--sampa-bg);
	border-radius: var(--sampa-radius);
	text-align: center;
}

/* Buttons — match portal */
.sampa-auth-wrap .sampa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: 10px;
	font-size: 0.95rem;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s;
}

.sampa-auth-wrap .sampa-btn--primary {
	background: var(--sampa-brand);
	color: #fff;
	border-color: var(--sampa-brand);
}

.sampa-auth-wrap .sampa-btn--primary:hover {
	background: var(--sampa-brand-dark);
}

.sampa-auth-wrap .sampa-btn--secondary {
	background: #fff;
	color: var(--sampa-text);
	border-color: var(--sampa-border);
}

.sampa-auth-wrap .sampa-btn--danger {
	background: #fef2f2;
	color: var(--sampa-danger);
	border-color: #fecaca;
}

.sampa-auth-wrap .sampa-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Account */
.sampa-auth-account__summary {
	margin-bottom: 24px;
}

.sampa-auth-account__meta {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin: 0 0 16px;
}

.sampa-auth-account__meta dt {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--sampa-muted);
	margin: 0;
}

.sampa-auth-account__meta dd {
	margin: 2px 0 0;
	font-weight: 600;
}

.sampa-auth-account__sections {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.sampa-auth-account__section {
	padding-top: 20px;
	border-top: 1px solid var(--sampa-border);
}

.sampa-auth-account__section h3 {
	margin: 0 0 12px;
	font-size: 1rem;
}

.sampa-auth-account__section--danger {
	background: #fef2f2;
	margin: 0 -24px -24px;
	padding: 20px 24px 24px;
	border-radius: 0 0 var(--sampa-radius) var(--sampa-radius);
	border-top-color: #fecaca;
}

.sampa-auth-account__danger-text {
	font-size: 0.9rem;
	color: var(--sampa-muted);
	margin: 0 0 12px;
}

.sampa-auth-account__logout {
	text-align: center;
	margin: 0;
}

.sampa-user-status-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
}

.sampa-user-status--pending {
	background: #fef3c7;
	color: #92400e;
}

.sampa-user-status--approved {
	background: #d1fae5;
	color: #047857;
}

.sampa-user-status--blocked {
	background: #fee2e2;
	color: #b91c1c;
}

.sampa-user-status--paused {
	background: #e2e8f0;
	color: #475569;
}

/* Portal login CTA */
.sampa-client-login-prompt {
	max-width: 420px;
	margin: 40px auto;
	padding: 32px 24px;
	text-align: center;
	background: var(--sampa-surface, #fff);
	border: 1px solid var(--sampa-border, #e2e8f0);
	border-radius: 14px;
	box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.sampa-client-login-prompt__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 16px;
}

.sampa-client-status-notice {
	max-width: 520px;
	margin: 40px auto;
	padding: 24px;
	text-align: center;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
}

.sampa-client-status-notice--pending {
	border-color: #fcd34d;
	background: #fffbeb;
}

.sampa-client-status-notice--blocked,
.sampa-client-status-notice--paused {
	border-color: #fecaca;
	background: #fef2f2;
}

@media (min-width: 560px) {
	.sampa-auth-account__meta {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 799px) {
	.sampa-auth-wrap {
		max-width: none;
		margin: 16px auto;
	}

	.sampa-auth-card {
		padding: 20px 16px;
	}
}
