/**
 * Flooring Partner Portal – Frontend styles (signup, dashboard, login).
 */

/* Signup form */
.fpp-form.fpp-signup-form {
	max-width: 100%;
	margin: 1.5em 0;
	padding: 1.5em;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	border-radius: 6px;
	border: 1px solid #e0e0e0;
}

.fpp-form .fpp-field {
	margin-bottom: 1em;
}

.fpp-form label {
	display: block;
	margin-bottom: 0.35em;
	font-weight: 600;
	color: #111111;
}

.fpp-form .required {
	color: #c00;
}

.fpp-form input[type="text"],
.fpp-form input[type="email"],
.fpp-form input[type="tel"],
.fpp-form select,
.fpp-form textarea.fpp-textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.5em 0.65em;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1em;
	box-sizing: border-box;
}

.fpp-form textarea.fpp-textarea {
	min-height: 5em;
	resize: vertical;
	font-family: inherit;
}

.fpp-form .fpp-submit {
	margin-top: 1.25em;
}

.fpp-button {
	display: inline-block;
	padding: 0.6em 1.2em;
	background: #3D66B7;
	color: #fff !important;
	border: none;
	border-radius: 4px;
	font-size: 1em;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease;
}

.fpp-button:hover {
	background: #1C97E9 !important;
}

.fpp-copy-link.fpp-button {
	min-height: 44px;
	min-width: 44px;
	padding: 0.65em 1em;
	-webkit-tap-highlight-color: transparent;
}
input#fpp_password {
    width: 100%  !important;
} 
input#fpp_password_confirm {
    width: 100% !important;
}
/* Messages */
.fpp-message {
	padding: 0.75em 1em;
	margin: 1em 0;
	border-radius: 4px;
	border-left: 4px solid;
}

.fpp-message.fpp-success {
	background: #edfaef;
	border-color: #00a32a;
	color: #1e4620;
}

.fpp-message.fpp-error {
	background: #fcf0f1;
	border-color: #d63638;
	color: #3c434a;
}

/* Dashboard – mobile-first, partners often check on phones */
.fpp-dashboard {
	max-width: 720px;
	width: 100%;
	margin: 1.5em auto;
	padding: 1.25em;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	border: 1px solid #e0e0e0;
	box-sizing: border-box;
}

.fpp-dashboard-header h2 {
	margin: 0 0 0.25em;
	font-size: 1.5em;
	color: #111111;
}

.fpp-dashboard-header .fpp-welcome {
	margin: 0 0 1.5em;
	color: #50575e;
}

.fpp-referral-link-box {
	margin-bottom: 1.5em;
	padding: 1em;
	background: #f6f7f7;
	border-radius: 6px;
	border: 1px solid #dcdcde;
}

.fpp-referral-link-box label {
	display: block;
	margin-bottom: 0.5em;
	font-weight: 600;
}

.fpp-referral-input-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	align-items: center;
	margin-bottom: 0.5em;
}

.fpp-referral-url {
	flex: 1;
	min-width: 0;
	padding: 0.6em 0.75em;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.95em;
	background: #fff;
	width: 100%;
}

.fpp-referral-code {
	margin: 0;
	font-size: 0.9em;
	color: #50575e;
}

.fpp-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 1em;
	margin: 1.5em 0;
}

.fpp-stat-card {
	padding: 1em;
	background: #f6f7f7;
	border-radius: 6px;
	border: 1px solid #dcdcde;
	text-align: center;
}

.fpp-stat-card .fpp-stat-value {
	display: block;
	font-size: 1.5em;
	font-weight: 700;
	color: #111111;
}

.fpp-stat-card .fpp-stat-label {
	font-size: 0.85em;
	color: #50575e;
}

.fpp-stat-commission .fpp-stat-value {
	color: #00a32a;
}

.fpp-stat-commission-paid .fpp-stat-value {
	color: #1C97E9;
}

.fpp-stat-sublabel {
	display: block;
	font-size: 0.75em;
	color: #787c82;
	margin-top: 0.35em;
	line-height: 1.2;
}

.fpp-dashboard-footer {
	margin-top: 1.5em;
	padding-top: 1em;
	border-top: 1px solid #e0e0e0;
}

.fpp-logout {
	color: #50575e;
	text-decoration: none;
}

.fpp-logout:hover {
	text-decoration: underline;
}

/* Pending partner: approval message and blurred locked section */
.fpp-pending-notice {
	margin-bottom: 1.5em;
	padding: 1em 1.25em;
	background: #fcf9e8;
	border: 1px solid #dba617;
	border-radius: 6px;
}

.fpp-pending-message {
	margin: 0 0 0.35em;
	font-weight: 700;
	font-size: 1.1em;
	color: #1d2327;
}

.fpp-pending-description {
	margin: 0;
	font-size: 0.95em;
	color: #50575e;
}

.fpp-dashboard--pending .fpp-dashboard-locked {
	filter: blur(5px);
	user-select: none;
	pointer-events: none;
	opacity: 0.85;
}

.fpp-dashboard--pending .fpp-dashboard-locked .fpp-referral-link-box,
.fpp-dashboard--pending .fpp-dashboard-locked .fpp-stats-grid {
	position: relative;
}

/* Partner login page */
.fpp-page-wrap.fpp-login-page {
	max-width: 400px;
	margin: 2em auto;
	padding: 0 1em;
}

.fpp-login-box {
	padding: 2em;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

.fpp-login-box h1 {
	margin-top: 0;
	margin-bottom: 1em;
	font-size: 1.5em;
	color: #111111;
}

.fpp-login-box .fpp-login-links {
	margin-top: 1em;
	font-size: 0.9em;
}

/* Mobile-friendly – most partners check on phones */
@media (max-width: 600px) {
	.fpp-dashboard {
		margin: 0.75em auto;
		padding: 1em;
		max-width: 90% !important;
		border-radius: 0;
		border-left: none;
		border-right: none;
		box-shadow: 1px 1px 7px #00000026 !important;
		border-radius: 6px;
	}
	.fpp-dashboard-header h2 {
		font-size: 1.35em;
	}
	.fpp-referral-input-wrap {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75em;
	}
	.fpp-referral-url {
		font-size: 0.875em;
	}
	.fpp-copy-link.fpp-button {
		width: 100%;
	}
	.fpp-stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75em;
	}
	.fpp-stat-card {
		padding: 1em 0.75em;
		min-height: 60px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	.fpp-stat-card .fpp-stat-value {
		font-size: 1.35em;
	}
	.fpp-stat-card .fpp-stat-label {
		font-size: 0.8em;
	}
	.fpp-logout {
		display: inline-block;
		padding: 0.5em 0;
		min-height: 44px;
		line-height: 1.4;
	}
}

@media (max-width: 380px) {
	.fpp-stats-grid {
		grid-template-columns: 1fr;
	}
}
