/**
 * Get Smart LMS
 * Customer Login + Dashboard
 */

.gsf-portal-auth-shell,
.gsf-customer-dashboard {
	max-width: 1180px;
	margin: 34px auto;
	font-family: inherit;
}

.gsf-portal-auth-shell {
	display: grid;
	grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr);
	border: 1px solid #dbe4ef;
	border-radius: 22px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 18px 50px rgba(15,23,42,.09);
}

.gsf-portal-login-card,
.gsf-portal-login-side {
	padding: 42px;
	box-sizing: border-box;
}

.gsf-portal-login-side {
	background: #062b59;
	color: #fff;
}

.gsf-portal-brand-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 22px;
	border-radius: 14px;
	background: #ecfdf3;
	color: #15803d;
}

.gsf-portal-brand-mark .dashicons {
	width: 26px;
	height: 26px;
	font-size: 26px;
}

.gsf-portal-eyebrow {
	margin: 0 0 7px;
	color: #0a8f3d;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.gsf-portal-login-card h1,
.gsf-dashboard-hero h1 {
	margin: 0;
	color: #082a57;
	line-height: 1.15;
}

.gsf-portal-login-card h1 {
	font-size: clamp(30px,4vw,40px);
}

.gsf-portal-intro {
	margin: 10px 0 25px;
	color: #64748b;
	font-size: 14px;
	line-height: 1.7;
}

.gsf-customer-login-form {
	display: grid;
	gap: 17px;
}

.gsf-portal-field {
	display: grid;
	gap: 7px;
}

.gsf-portal-field label {
	color: #334155;
	font-size: 12px;
	font-weight: 800;
}

.gsf-portal-field input {
	width: 100%;
	min-height: 48px;
	box-sizing: border-box;
	padding: 10px 13px;
	border: 1px solid #cbd5e1;
	border-radius: 9px;
	outline: 0;
}

.gsf-portal-field input:focus {
	border-color: #0a8f3d;
	box-shadow: 0 0 0 3px rgba(10,143,61,.12);
}

.gsf-portal-password-wrap {
	position: relative;
}

.gsf-portal-password-wrap input {
	padding-right: 60px;
}

.gsf-portal-password-toggle {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	color: #0a8f3d;
	font-size: 11px;
	font-weight: 800;
	cursor: pointer;
}

.gsf-portal-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #64748b;
	font-size: 11px;
}

.gsf-portal-primary-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 47px;
	padding: 0 18px;
	border: 1px solid #0a8f3d;
	border-radius: 9px;
	background: #0a8f3d;
	color: #fff !important;
	text-decoration: none !important;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	box-sizing: border-box;
}

.gsf-portal-primary-button:hover {
	background: #087a35;
}

.gsf-portal-primary-button[disabled] {
	opacity: .58;
	cursor: not-allowed;
}

.gsf-portal-login-footer {
	margin-top: 20px;
	text-align: center;
	color: #64748b;
	font-size: 11px;
}

.gsf-portal-login-footer a {
	color: #0a8f3d;
	font-weight: 800;
	text-decoration: none;
}

.gsf-portal-login-footer small {
	display: block;
	margin-top: 8px;
	color: #94a3b8;
}

.gsf-portal-login-side .gsf-portal-eyebrow {
	color: #86efac;
}

.gsf-portal-login-side h2 {
	max-width: 400px;
	margin: 0 0 30px;
	color: #fff;
	font-size: 31px;
	line-height: 1.25;
}

.gsf-portal-benefit {
	display: grid;
	grid-template-columns: 40px minmax(0,1fr);
	gap: 14px;
	align-items: flex-start;
	padding: 18px 0;
	border-bottom: 1px solid rgba(255,255,255,.12);
}

.gsf-portal-benefit:last-child {
	border-bottom: 0;
}

.gsf-portal-benefit > .dashicons {
	width: 22px;
	height: 22px;
	font-size: 22px;
	color: #4ade80;
}

.gsf-portal-benefit strong {
	display: block;
	color: #fff;
	font-size: 13px;
}

.gsf-portal-benefit p {
	margin: 5px 0 0;
	color: #bfdbfe;
	font-size: 11px;
	line-height: 1.6;
}

.gsf-portal-notice {
	margin: 0 0 18px;
	padding: 12px 14px;
	border-radius: 9px;
	font-size: 12px;
	font-weight: 600;
}

.gsf-portal-notice.is-error {
	border: 1px solid #fecaca;
	background: #fef2f2;
	color: #991b1b;
}

.gsf-portal-notice.is-success {
	border: 1px solid #bbf7d0;
	background: #f0fdf4;
	color: #166534;
}

/* Dashboard */

.gsf-customer-dashboard {
	overflow: hidden;
	border: 1px solid #dbe4ef;
	border-radius: 22px;
	background: #f8fafc;
	box-shadow: 0 18px 50px rgba(15,23,42,.08);
}

.gsf-dashboard-hero {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 34px 38px;
	background: #fff;
	border-bottom: 1px solid #e2e8f0;
}

.gsf-dashboard-hero h1 {
	font-size: 31px;
}

.gsf-dashboard-hero > div:first-child > p:last-child {
	margin: 8px 0 0;
	color: #64748b;
	font-size: 13px;
}

.gsf-dashboard-customer-id {
	padding: 14px 17px;
	border: 1px solid #dbe4ef;
	border-radius: 12px;
	background: #f8fafc;
	text-align: right;
}

.gsf-dashboard-customer-id > span {
	display: block;
	color: #64748b;
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.gsf-dashboard-customer-id strong {
	display: block;
	margin-top: 4px;
	color: #0f172a;
	font-size: 15px;
}

.gsf-dashboard-customer-id small {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
	color: #15803d;
	font-size: 9px;
	font-weight: 700;
}

.gsf-dashboard-customer-id .dashicons {
	width: 14px;
	height: 14px;
	font-size: 14px;
}

.gsf-dashboard-layout {
	display: grid;
	grid-template-columns: 225px minmax(0,1fr);
}

.gsf-dashboard-sidebar {
	display: flex;
	flex-direction: column;
	min-height: 720px;
	padding: 18px 14px;
	background: #082a57;
}

.gsf-customer-nav {
	display: grid;
	gap: 5px;
}

.gsf-customer-nav a,
.gsf-customer-logout {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 12px;
	border-radius: 8px;
	color: #dbeafe;
	text-decoration: none !important;
	font-size: 11px;
	font-weight: 700;
}

.gsf-customer-nav a:hover,
.gsf-customer-nav a.is-active {
	background: rgba(255,255,255,.10);
	color: #fff;
}

.gsf-customer-nav .dashicons,
.gsf-customer-logout .dashicons {
	width: 17px;
	height: 17px;
	font-size: 17px;
}

.gsf-customer-logout {
	margin-top: auto;
	border-top: 1px solid rgba(255,255,255,.12);
	border-radius: 0;
	color: #fecaca;
}

.gsf-dashboard-main {
	min-width: 0;
	padding: 25px;
}

.gsf-dashboard-section {
	margin-bottom: 20px;
}

.gsf-dashboard-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 12px;
}

.gsf-dashboard-section-heading h2 {
	margin: 0;
	color: #0f172a;
	font-size: 19px;
}

.gsf-dashboard-stat-grid {
	display: grid;
	grid-template-columns: repeat(4,minmax(0,1fr));
	gap: 12px;
}

.gsf-dashboard-stat {
	padding: 17px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
}

.gsf-dashboard-stat span {
	display: block;
	color: #64748b;
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.gsf-dashboard-stat strong {
	display: block;
	margin-top: 10px;
	color: #082a57;
	font-size: 20px;
}

.gsf-current-application-card,
.gsf-empty-application-card,
.gsf-dashboard-small-card,
.gsf-dashboard-section#gsf-dashboard-history,
.gsf-dashboard-section#gsf-dashboard-profile {
	padding: 21px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #fff;
}

.gsf-current-application-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 15px;
}

.gsf-current-application-top > div span {
	display: block;
	color: #64748b;
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
}

.gsf-current-application-top > div strong {
	display: block;
	margin-top: 4px;
	color: #0f172a;
	font-size: 15px;
}

.gsf-customer-status {
	display: inline-flex;
	padding: 6px 10px;
	border-radius: 999px;
	background: #f1f5f9;
	color: #475569;
	font-size: 9px;
	font-weight: 800;
	white-space: nowrap;
}

.gsf-customer-status.is-approved,
.gsf-customer-status.is-completed {
	background: #ecfdf3;
	color: #166534;
}

.gsf-customer-status.is-declined {
	background: #fef2f2;
	color: #b91c1c;
}

.gsf-customer-status.is-under_review,
.gsf-customer-status.is-credit_bureau_check,
.gsf-customer-status.is-affordability_assessment {
	background: #eff6ff;
	color: #1d4ed8;
}

.gsf-customer-status.is-documents_pending,
.gsf-customer-status.is-draft {
	background: #fff7ed;
	color: #c2410c;
}

.gsf-application-progress {
	margin: 20px 0;
}

.gsf-progress-copy {
	display: flex;
	justify-content: space-between;
	margin-bottom: 7px;
	color: #475569;
	font-size: 10px;
	font-weight: 700;
}

.gsf-progress-track {
	overflow: hidden;
	height: 8px;
	border-radius: 999px;
	background: #e2e8f0;
}

.gsf-progress-track span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: #0a8f3d;
}

.gsf-dashboard-coming-soon {
	display: block;
	margin-top: 8px;
	color: #94a3b8;
	font-size: 9px;
}

.gsf-empty-application-card {
	text-align: center;
}

.gsf-empty-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0 auto 13px;
	border-radius: 50%;
	background: #ecfdf3;
	color: #15803d;
}

.gsf-empty-application-card h3 {
	margin: 0;
	color: #0f172a;
	font-size: 16px;
}

.gsf-empty-application-card p {
	max-width: 500px;
	margin: 8px auto 17px;
	color: #64748b;
	font-size: 11px;
	line-height: 1.6;
}

.gsf-dashboard-two-column {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 16px;
}

.gsf-dashboard-small-card {
	margin-bottom: 20px;
}

.gsf-dashboard-mini-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	margin-bottom: 12px;
	border-radius: 9px;
	background: #eff6ff;
	color: #1d4ed8;
}

.gsf-dashboard-small-card h3 {
	margin: 0;
	color: #0f172a;
	font-size: 13px;
}

.gsf-dashboard-small-card > strong {
	display: block;
	margin-top: 8px;
	color: #082a57;
	font-size: 24px;
}

.gsf-dashboard-small-card > p {
	margin: 5px 0 0;
	color: #64748b;
	font-size: 10px;
	line-height: 1.55;
}

.gsf-dashboard-history-list {
	display: grid;
}

.gsf-dashboard-history-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	padding: 12px 0;
	border-bottom: 1px solid #eef2f7;
}

.gsf-dashboard-history-row:last-child {
	border-bottom: 0;
}

.gsf-dashboard-history-row strong {
	display: block;
	color: #0f172a;
	font-size: 11px;
}

.gsf-dashboard-history-row div span {
	display: block;
	margin-top: 3px;
	color: #94a3b8;
	font-size: 9px;
}

.gsf-dashboard-empty-row {
	padding: 18px;
	border: 1px dashed #cbd5e1;
	border-radius: 10px;
	background: #f8fafc;
	color: #64748b;
	font-size: 11px;
}

.gsf-profile-summary-grid {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	gap: 1px;
	background: #e2e8f0;
}

.gsf-profile-summary-grid > div {
	padding: 15px;
	background: #fff;
}

.gsf-profile-summary-grid span {
	display: block;
	color: #64748b;
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
}

.gsf-profile-summary-grid strong {
	display: block;
	margin-top: 5px;
	color: #0f172a;
	font-size: 11px;
	overflow-wrap: anywhere;
}

.gsf-portal-simple-card {
	max-width: 560px;
	margin: 40px auto;
	padding: 30px;
	border: 1px solid #dbe4ef;
	border-radius: 16px;
	background: #fff;
	text-align: center;
	box-shadow: 0 12px 35px rgba(15,23,42,.07);
}

.gsf-portal-simple-card > .dashicons {
	width: 34px;
	height: 34px;
	font-size: 34px;
	color: #15803d;
}

.gsf-portal-simple-card h2 {
	color: #082a57;
}

.gsf-portal-simple-card p {
	color: #64748b;
	font-size: 12px;
}

@media (max-width: 900px) {
	.gsf-portal-auth-shell {
		grid-template-columns: 1fr;
	}

	.gsf-dashboard-layout {
		grid-template-columns: 1fr;
	}

	.gsf-dashboard-sidebar {
		min-height: 0;
	}

	.gsf-customer-nav {
		grid-template-columns: repeat(2,minmax(0,1fr));
	}

	.gsf-customer-logout {
		margin-top: 15px;
	}

	.gsf-dashboard-stat-grid {
		grid-template-columns: repeat(2,minmax(0,1fr));
	}
}

@media (max-width: 600px) {
	.gsf-portal-login-card,
	.gsf-portal-login-side {
		padding: 25px;
	}

	.gsf-dashboard-hero {
		align-items: flex-start;
		flex-direction: column;
		padding: 25px;
	}

	.gsf-dashboard-customer-id {
		width: 100%;
		box-sizing: border-box;
		text-align: left;
	}

	.gsf-dashboard-customer-id small {
		justify-content: flex-start;
	}

	.gsf-dashboard-main {
		padding: 16px;
	}

	.gsf-dashboard-stat-grid,
	.gsf-dashboard-two-column,
	.gsf-profile-summary-grid {
		grid-template-columns: 1fr;
	}

	.gsf-customer-nav {
		grid-template-columns: 1fr;
	}

	.gsf-current-application-top {
		flex-direction: column;
	}
}


/* ==========================================================
 * Sprint 8.2B — Email OTP Login
 * ========================================================== */

.gsf-login-otp-card {
	text-align: center;
}

.gsf-login-otp-card .gsf-portal-brand-mark {
	margin-left: auto;
	margin-right: auto;
}

.gsf-login-otp-form {
	display: grid;
	gap: 13px;
	margin-top: 24px;
}

.gsf-login-otp-form label {
	color: #334155;
	font-size: 12px;
	font-weight: 800;
}

.gsf-login-otp-form input {
	width: min(100%, 320px);
	min-height: 56px;
	margin: 0 auto;
	box-sizing: border-box;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #fff;
	color: #082a57;
	text-align: center;
	font-size: 25px;
	font-weight: 800;
	letter-spacing: .32em;
	outline: none;
}

.gsf-login-otp-form input:focus {
	border-color: #0a8f3d;
	box-shadow: 0 0 0 3px rgba(10,143,61,.12);
}

.gsf-login-otp-resend {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 15px;
}

.gsf-portal-text-button {
	padding: 0;
	border: 0;
	background: transparent;
	color: #0a8f3d;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.gsf-login-otp-resend small {
	color: #94a3b8;
	font-size: 10px;
}


/* Sprint 8.3A hotfix — Email OTP login spacing */
.gsf-login-otp-form .gsf-portal-primary-button,
.gsf-customer-login-form .gsf-portal-primary-button,
.gsf-email-otp-form .gsf-portal-primary-button {
	margin-top: 18px;
}

/* Fallback for the OTP verification form markup used by Sprint 8.2B. */
input[name="login_otp"] + .gsf-portal-primary-button,
input[name="otp_code"] + .gsf-portal-primary-button,
input[name="verification_code"] + .gsf-portal-primary-button {
	margin-top: 18px;
}
