/*
 * Auth Onboarding – styles for [projectname_vendor_register] + [projectname_login]
 * All rules are scoped to .pn-auth to avoid leaking into the rest of the site.
 *
 * Design tokens (Figma):
 *   Primary:    #4f39f6
 *   Text dark:  #101828
 *   Text mid:   #364153
 *   Text light: #4a5565
 *   Text muted: #6a7282
 *   Placeholder:#99a1af
 *   Border:     #d1d5dc (inputs), #e5e7eb (sections), #f3f4f6 (cards)
 *   Bg page:    #f9fafb
 *   Bg card:    #ffffff
 *   Accent bg:  #e0e7ff / #eef2ff
 */

/* ─────────────────────────────────────────────────────────────────────────────
   Page-level background
   ───────────────────────────────────────────────────────────────────────────── */

body.pn-page-sell-with-us,
body.pn-page-sign-in {
	background-color: #f9fafb;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Shared base
   ───────────────────────────────────────────────────────────────────────────── */

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

.pn-auth {
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	color: #101828;
	line-height: 1.5;
}

.pn-container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 48px;
	padding-right: 48px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Already-signed-in notice
   ───────────────────────────────────────────────────────────────────────────── */

.pn-already-in {
	padding: 40px 24px;
	text-align: center;
	color: #4a5565;
}

.pn-already-in a {
	color: #4f39f6;
	text-decoration: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Alert / error banner
   ───────────────────────────────────────────────────────────────────────────── */

.pn-alert {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
}

.pn-alert-error {
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}

.pn-alert-error a {
	color: #b91c1c;
	font-weight: 500;
	text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Form elements
   ───────────────────────────────────────────────────────────────────────────── */

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

.pn-form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pn-label {
	font-size: 14px;
	font-weight: 500;
	color: #364153;
	line-height: 1.43;
}

.pn-input {
	width: 100%;
	height: 46px;
	padding: 10px 16px;
	border: 1px solid #d1d5dc;
	border-radius: 10px;
	background: #ffffff;
	font-size: 16px;
	color: #101828;
	font-family: inherit;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	appearance: none;
}

.pn-input::placeholder {
	color: #99a1af;
}

.pn-input:focus {
	border-color: #4f39f6;
	box-shadow: 0 0 0 3px rgba(79, 57, 246, 0.12);
}

.pn-has-error .pn-input {
	border-color: #dc2626;
}

.pn-has-error .pn-input:focus {
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* Checkbox row */
.pn-form-group-check {
	gap: 0;
}

.pn-label-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	font-weight: 500;
	color: #4a5565;
	cursor: pointer;
	line-height: 1.43;
}

.pn-label-check input[type="checkbox"] {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	cursor: pointer;
	accent-color: #4f39f6;
}

.pn-label-check a {
	color: #4f39f6;
	text-decoration: none;
}

.pn-label-check a:hover {
	text-decoration: underline;
}

.pn-has-error .pn-label-check {
	color: #dc2626;
}

/* Buttons */
.pn-btn {
	display: block;
	width: 100%;
	padding: 13px 16px;
	border: none;
	border-radius: 10px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	text-align: center;
	cursor: pointer;
	transition: opacity 0.15s, box-shadow 0.15s;
	box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
}

.pn-btn-primary {
	background-color: #4f39f6;
	color: #ffffff;
}

.pn-btn-primary:hover {
	opacity: 0.9;
	box-shadow: 0 4px 12px rgba(79, 57, 246, 0.3);
}

.pn-btn-primary:active {
	opacity: 0.95;
}

/* Footer text under the button */
.pn-form-footer {
	font-size: 14px;
	color: #4a5565;
	text-align: center;
	margin: 0;
}

.pn-form-footer a {
	color: #4f39f6;
	text-decoration: none;
	font-weight: 400;
}

.pn-form-footer a:hover {
	text-decoration: underline;
}

/* Hint box */
.pn-form-hint {
	background: #f9fafb;
	border-radius: 10px;
	padding: 12px;
	font-size: 14px;
	color: #4a5565;
	line-height: 1.43;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SVG icons
   ───────────────────────────────────────────────────────────────────────────── */

.pn-icon {
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   REGISTRATION PAGE — Hero section
   ───────────────────────────────────────────────────────────────────────────── */

.pn-reg-page {
	background: #f9fafb;
}

.pn-reg-hero {
	background: #ffffff;
	border-bottom: 1px solid #e5e7eb;
	padding: 80px 0;
}

.pn-reg-hero-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

/* Left: copy */
.pn-reg-hero-left {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.pn-reg-headline {
	font-size: 48px;
	font-weight: 500;
	line-height: 1.1;
	color: #101828;
	margin: 0;
}

.pn-reg-subline {
	font-size: 18px;
	font-weight: 400;
	color: #4a5565;
	line-height: 1.55;
	margin: 0;
}

.pn-reg-features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pn-reg-features li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	color: #364153;
}

.pn-feature-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	background-color: #e0e7ff;
	border-radius: 50%;
	flex-shrink: 0;
	color: #4f39f6;
}

.pn-ico-check {
	width: 12px;
	height: 12px;
}

/* Right: form card */
.pn-reg-hero-right {
	display: flex;
	justify-content: flex-end;
}

.pn-reg-card {
	width: 100%;
	max-width: 448px;
	background: #ffffff;
	border: 1px solid #f3f4f6;
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.pn-reg-card-title {
	font-size: 20px;
	font-weight: 500;
	color: #101828;
	line-height: 1.4;
	margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   REGISTRATION PAGE — Shared section styles
   ───────────────────────────────────────────────────────────────────────────── */

.pn-section {
	background: #ffffff;
	border-bottom: 1px solid #e5e7eb;
	padding: 64px 0;
}

.pn-section-title {
	font-size: 30px;
	font-weight: 500;
	color: #101828;
	text-align: center;
	margin: 0 0 48px;
	line-height: 1.2;
}

/* ─────────────────────────────────────────────────────────────────────────────
   How it works — 3-column step cards
   ───────────────────────────────────────────────────────────────────────────── */

.pn-steps-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.pn-step-card {
	background: #f9fafb;
	border: 1px solid #f3f4f6;
	border-radius: 16px;
	padding: 32px;
}

.pn-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: #e0e7ff;
	border-radius: 14px;
	margin-bottom: 16px;
}

.pn-step-num span {
	font-size: 18px;
	color: #4f39f6;
	font-weight: 400;
	line-height: 1;
}

.pn-step-card h3 {
	font-size: 18px;
	font-weight: 500;
	color: #101828;
	margin: 0 0 8px;
	line-height: 1.55;
}

.pn-step-card p {
	font-size: 16px;
	color: #4a5565;
	margin: 0;
	line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────────────────────
   What you get — 4-column benefit cards
   ───────────────────────────────────────────────────────────────────────────── */

.pn-benefits-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}

.pn-benefit-card {
	background: #ffffff;
	border: 1px solid #f3f4f6;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
}

.pn-benefit-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: #eef2ff;
	border-radius: 14px;
	margin-bottom: 16px;
	color: #4f39f6;
}

.pn-benefit-card h3 {
	font-size: 18px;
	font-weight: 500;
	color: #101828;
	margin: 0 0 8px;
	line-height: 1.5;
}

.pn-benefit-card p {
	font-size: 14px;
	color: #4a5565;
	margin: 0;
	line-height: 1.43;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FAQ section
   ───────────────────────────────────────────────────────────────────────────── */

.pn-faq-inner {
	max-width: 800px;
}

.pn-faq-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.pn-faq-item {
	background: #f9fafb;
	border: 1px solid #f3f4f6;
	border-radius: 16px;
	padding: 24px;
}

.pn-faq-item h3 {
	font-size: 18px;
	font-weight: 500;
	color: #101828;
	margin: 0 0 8px;
	line-height: 1.5;
}

.pn-faq-item p {
	font-size: 16px;
	color: #4a5565;
	margin: 0;
	line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SIGN IN PAGE
   ───────────────────────────────────────────────────────────────────────────── */

.pn-login-page {
	min-height: 70vh;
	background: #f9fafb;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 24px;
}

.pn-login-wrap {
	width: 100%;
	max-width: 420px;
}

.pn-login-card {
	background: #ffffff;
	border: 1px solid #f3f4f6;
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.pn-login-title {
	font-size: 24px;
	font-weight: 500;
	color: #101828;
	margin: 0;
	line-height: 1.33;
}

.pn-login-forgot {
	display: flex;
	justify-content: flex-end;
	margin-top: -8px;
}

.pn-login-forgot a {
	font-size: 14px;
	color: #4f39f6;
	text-decoration: none;
	line-height: 1.43;
}

.pn-login-forgot a:hover {
	text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.pn-benefits-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.pn-container {
		padding-left: 24px;
		padding-right: 24px;
	}

	/* Hero: stack columns */
	.pn-reg-hero-inner {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.pn-reg-hero-right {
		justify-content: stretch;
	}

	.pn-reg-card {
		max-width: 100%;
	}

	.pn-reg-headline {
		font-size: 32px;
	}

	.pn-reg-hero {
		padding: 48px 0;
	}

	/* How it works: stack */
	.pn-steps-grid {
		grid-template-columns: 1fr;
	}

	/* Benefits: single column */
	.pn-benefits-grid {
		grid-template-columns: 1fr;
	}

	.pn-section-title {
		font-size: 24px;
	}

	.pn-section {
		padding: 48px 0;
	}
}

@media (max-width: 480px) {
	.pn-reg-headline {
		font-size: 26px;
	}

	.pn-reg-card {
		padding: 24px;
	}

	.pn-login-card {
		padding: 24px;
	}
}
