.tcm-portal {
	--tcm-primary: #39793B;
	--tcm-accent: #1B5E2A;
	--tcm-leaf: #41BB2E;
	--tcm-text: #393939;
	--tcm-muted: #616861;
	--tcm-bg: #F6F8F3;
	--tcm-card: #ffffff;
	--tcm-border: #d5ddd4;
	color: var(--tcm-text);
	font-family: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
	max-width: 800px;
	margin: 0 auto;
	padding: 1.5rem 1rem 3rem;
}

.tcm-portal-title,
.tcm-portal h2,
.tcm-portal h3 {
	font-family: Fraunces, Georgia, "Times New Roman", serif;
	color: var(--tcm-accent);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.tcm-portal-title {
	font-size: 2.25rem;
	margin: 0 0 1rem;
}

.tcm-portal h2 {
	font-size: 1.5rem;
	margin: 0 0 0.75rem;
}

.tcm-portal h3 {
	font-size: 1.15rem;
	margin: 1.25rem 0 0.5rem;
}

.tcm-portal p,
.tcm-portal li,
.tcm-portal label,
.tcm-portal dd,
.tcm-portal dt {
	font-size: 1.05rem;
	line-height: 1.55;
}

.tcm-portal-card,
.tcm-portal-banner,
.tcm-portal-flash {
	background: var(--tcm-card);
	border: 1px solid var(--tcm-border);
	border-radius: 16px;
	padding: 1.35rem 1.4rem;
	margin: 0 0 1.25rem;
	box-shadow: 0 8px 24px rgba(27, 94, 42, 0.05);
}

.tcm-portal-flash--success {
	border-color: var(--tcm-primary);
	background: #eef7ee;
}

.tcm-portal-flash--error {
	border-color: #8a3b2b;
	background: #fbf1ef;
}

.tcm-portal-flash--notice {
	border-color: #b1b8ae;
	background: var(--tcm-bg);
}

.tcm-portal-welcome {
	color: var(--tcm-muted);
	margin-bottom: 1.25rem;
}

.tcm-portal-muted {
	color: var(--tcm-muted);
}

.tcm-portal-facts {
	display: grid;
	gap: 0.75rem 1.5rem;
	margin: 0 0 1rem;
}

.tcm-portal-facts dt {
	font-weight: 600;
	color: var(--tcm-accent);
	margin: 0;
}

.tcm-portal-facts dd {
	margin: 0.15rem 0 0;
}

.tcm-portal-form {
	display: grid;
	gap: 0.45rem;
}

.tcm-portal-form label {
	font-weight: 600;
	margin-top: 0.6rem;
}

.tcm-portal-form input[type="text"],
.tcm-portal-form input[type="email"],
.tcm-portal-form input[type="password"],
.tcm-portal-form select,
.tcm-portal-form textarea,
.tcm-portal-login input[type="text"],
.tcm-portal-login input[type="password"] {
	width: 100%;
	max-width: 100%;
	border: 1px solid var(--tcm-border);
	border-radius: 10px;
	padding: 0.65rem 0.75rem;
	font: inherit;
	color: var(--tcm-text);
	background: #fff;
	box-sizing: border-box;
}

.tcm-portal-form input:focus,
.tcm-portal-form select:focus,
.tcm-portal-form textarea:focus,
.tcm-portal-login input:focus {
	outline: 2px solid var(--tcm-primary);
	outline-offset: 1px;
	border-color: var(--tcm-primary);
}

.tcm-portal-btn,
.tcm-portal-login input[type="submit"],
.tcm-portal-login .button,
#tcm-tp-login #wp-submit {
	appearance: none;
	display: inline-block;
	border: 0;
	border-radius: 999px;
	background: var(--tcm-accent);
	color: #fff;
	font: 600 1.05rem "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
	padding: 0.7rem 1.35rem;
	margin-top: 0.85rem;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
}

.tcm-portal-btn:hover,
.tcm-portal-login input[type="submit"]:hover,
#tcm-tp-login #wp-submit:hover {
	background: var(--tcm-primary);
	color: #fff;
}

.tcm-portal-login-links {
	margin: 0.85rem 0 0;
}

.tcm-portal-login-links a,
.tcm-portal a {
	color: var(--tcm-accent);
}

.tcm-portal a:hover {
	color: var(--tcm-primary);
}

.tcm-portal-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 0.5rem;
}

.tcm-portal-table th,
.tcm-portal-table td {
	text-align: left;
	padding: 0.55rem 0.4rem;
	border-bottom: 1px solid var(--tcm-border);
	vertical-align: top;
}

.tcm-portal-table th {
	color: var(--tcm-accent);
	font-weight: 600;
}

#tcm-tp-login p {
	margin: 0 0 0.75rem;
}

#tcm-tp-login .login-remember {
	margin-top: 0.4rem;
}

@media (max-width: 640px) {
	.tcm-portal {
		padding: 1rem 0.75rem 2.5rem;
	}
	.tcm-portal-title {
		font-size: 1.85rem;
	}
	.tcm-portal-card {
		padding: 1.1rem;
		border-radius: 12px;
	}
}

/* Hello header/footer site logo: match approved City of Trees header sizing.
   This stylesheet is only enqueued on the tenant portal and invitation pages. */
.site-header .site-logo,
.site-header .custom-logo-link,
.site-footer .site-logo,
.site-footer .custom-logo-link {
	max-width: 220px;
}

.site-header .header-inner {
	align-items: center;
	gap: 1rem;
}

.site-header .site-logo img.custom-logo,
.site-header .custom-logo-link img,
.site-footer .site-logo img.custom-logo,
.site-footer .custom-logo-link img {
	display: block;
	width: auto !important;
	height: 64px !important;
	max-width: 220px !important;
	max-height: 64px !important;
	object-fit: contain;
}

.site-footer .site-logo,
.site-footer .custom-logo-link {
	max-width: 180px;
}

.site-footer .site-logo img.custom-logo,
.site-footer .custom-logo-link img {
	height: 52px !important;
	max-width: 180px !important;
	max-height: 52px !important;
}

@media (max-width: 900px) {
	.site-header .site-logo,
	.site-header .custom-logo-link {
		max-width: 180px;
	}
	.site-header .site-logo img.custom-logo,
	.site-header .custom-logo-link img {
		height: 52px !important;
		max-width: 180px !important;
		max-height: 52px !important;
	}
}

/* 0.1.5: rent payment method note (onboarding) */
.tcm-ach-note {
	display: none;
	margin: 6px 0 14px;
	padding: 10px 14px;
	background: #eef3ea;
	border-left: 4px solid #39793B;
	border-radius: 6px;
	color: #1B5E2A;
	font-weight: 600;
}
.tcm-portal-form:has(#tcm_rent_method option[value="ach"]:checked) .tcm-ach-note {
	display: block;
}
