.tc-auth {
	--tc-auth-surface: #fff;
	--tc-auth-border: #e9e9e9;
	--tc-auth-border-strong: #d7d7d7;
	--tc-auth-text: #242424;
	--tc-auth-secondary: #555;
	--tc-auth-muted: #8b8b8b;
	--tc-auth-accent: #2e7d32;
	--tc-auth-accent-hover: #256f2b;
	--tc-auth-accent-bg: rgba(46, 125, 50, .12);
	--tc-auth-success-bg: #dcfae6;
	--tc-auth-success-border: #75e0a7;
	--tc-auth-success-text: #085d3a;
	--tc-auth-error-bg: #fee4e2;
	--tc-auth-error-text: #912018;
	--tc-auth-radius: 5px;
	--tc-auth-shadow: 0 8px 24px rgba(0, 0, 0, .08);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	min-height: auto;
	padding: 72px 16px 64px;
	background: transparent;
	color: var(--tc-auth-text);
	font-family: inherit;
}

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

.tc-auth__brand {
	margin-bottom: 22px;
	color: var(--tc-auth-text);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}

.tc-auth__card {
	width: 100%;
	max-width: 520px;
	padding: 34px;
	background: var(--tc-auth-surface);
	border: 1px solid var(--tc-auth-border);
	border-radius: 8px;
	box-shadow: var(--tc-auth-shadow);
}

.tc-auth__tabs {
	display: flex;
	gap: 0;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--tc-auth-border);
}

.tc-auth__tab {
	position: relative;
	flex: 1;
	min-height: 42px;
	padding: 10px 6px;
	overflow: hidden;
	background: transparent;
	border: 0;
	border-bottom: 2px solid transparent;
	color: var(--tc-auth-muted);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.tc-auth__tab::after {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 2px;
	background: var(--tc-auth-accent);
	content: "";
	opacity: 0;
	transform: scaleX(.2);
	transform-origin: center;
	transition: opacity .18s ease, transform .18s ease;
	pointer-events: none;
}

.tc-auth__tab:hover,
.tc-auth__tab:focus {
	color: var(--tc-auth-secondary);
	background: rgba(46, 125, 50, .04);
	outline: none;
}

.tc-auth__tab.is-active {
	color: var(--tc-auth-accent);
	border-bottom-color: var(--tc-auth-accent) !important;
	background: rgba(46, 125, 50, .06);
}

.tc-auth__tab.is-active::after {
	opacity: 1;
	transform: scaleX(1);
}

.tc-auth__panel {
	position: relative;
}

.tc-auth__panel[hidden] {
	display: none !important;
}

.tc-auth__panel.is-active {
	display: block;
	animation: tcAuthPanelIn .24s cubic-bezier(.2, .8, .2, 1) both;
}

.tc-auth form {
	max-width: none !important;
	margin: 0 !important;
}

.tc-auth .pmpro,
.tc-auth .pmpro_section,
.tc-auth .pmpro_card,
.tc-auth .pmpro_card_content,
.tc-auth .pmpro_card_actions {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.tc-auth .pmpro_card_title {
	margin: 0 0 14px !important;
	color: var(--tc-auth-text) !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
}

.tc-auth p {
	margin: 0 0 14px;
}

.tc-auth label,
.tc-auth .pmpro_form label,
.tc-auth .simple-wp-registration-form label {
	display: block !important;
	margin: 0 0 6px !important;
	color: var(--tc-auth-secondary) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1.6 !important;
}

.tc-auth .login-password,
.tc-auth .tc-auth__password-field {
	display: flex;
	align-items: center;
	gap: 0 8px;
	flex-wrap: wrap;
}

.tc-auth .login-password label,
.tc-auth .tc-auth__password-field label {
	order: 1;
	flex: 1 1 auto;
	margin: 0 0 6px !important;
}

.tc-auth .login-password .pmpro_form_field-password-toggle,
.tc-auth .tc-auth__password-field .tc-auth__password-toggle-wrap {
	order: 2;
}

.tc-auth .login-password input[type="password"],
.tc-auth .login-password input[type="text"],
.tc-auth .tc-auth__password-field input[type="password"],
.tc-auth .tc-auth__password-field input[type="text"] {
	order: 3;
	flex: 0 0 100%;
}

.tc-auth input[type="text"],
.tc-auth input[type="email"],
.tc-auth input[type="password"],
.tc-auth input[type="url"] {
	width: 100% !important;
	min-height: 40px !important;
	padding: 0 12px !important;
	border: 1px solid var(--tc-auth-border-strong) !important;
	border-radius: var(--tc-auth-radius) !important;
	background: var(--tc-auth-surface) !important;
	color: var(--tc-auth-text) !important;
	font-size: 14px !important;
	line-height: 40px !important;
	box-shadow: none !important;
	outline: none !important;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.tc-auth input[type="text"]:focus,
.tc-auth input[type="email"]:focus,
.tc-auth input[type="password"]:focus,
.tc-auth input[type="url"]:focus {
	border-color: var(--tc-auth-accent) !important;
	box-shadow: 0 0 0 3px var(--tc-auth-accent-bg) !important;
}

.tc-auth input[type="submit"],
.tc-auth button[type="submit"],
.tc-auth .pmpro_btn:not(.pmpro_btn-plain),
.tc-auth .simple-wp-registration-form button:not(.tc-auth__password-toggle) {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-height: 42px !important;
	margin: 6px 0 0 !important;
	padding: 10px 18px !important;
	border: 0 !important;
	border-radius: var(--tc-auth-radius) !important;
	background: var(--tc-auth-accent) !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	cursor: pointer !important;
	box-shadow: none !important;
	transition: background .15s ease, transform .15s ease;
}

.tc-auth input[type="submit"]:hover,
.tc-auth button[type="submit"]:hover,
.tc-auth .pmpro_btn:not(.pmpro_btn-plain):hover,
.tc-auth .simple-wp-registration-form button:not(.tc-auth__password-toggle):hover {
	background: var(--tc-auth-accent-hover) !important;
	color: #fff !important;
}

.tc-auth input[type="submit"]:active,
.tc-auth button[type="submit"]:active {
	transform: scale(.99);
}

.tc-auth .pmpro_form_field-password-toggle,
.tc-auth .tc-auth__password-toggle-wrap {
	margin: 0 0 6px auto !important;
}

.tc-auth .pmpro_form_field-password-toggle .pmpro_btn-plain,
.tc-auth .tc-auth__password-toggle {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 6px !important;
	width: auto !important;
	min-width: 0 !important;
	min-height: 30px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--tc-auth-secondary) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	cursor: pointer !important;
}

.tc-auth .pmpro_form_field-password-toggle .pmpro_btn-plain:hover,
.tc-auth .pmpro_form_field-password-toggle .pmpro_btn-plain:focus,
.tc-auth .tc-auth__password-toggle:hover,
.tc-auth .tc-auth__password-toggle:focus {
	background: transparent !important;
	color: var(--tc-auth-text) !important;
	outline: none !important;
}

.tc-auth .pmpro_form_field-password-toggle svg,
.tc-auth .tc-auth__password-toggle svg {
	width: 16px !important;
	height: 16px !important;
	stroke: currentColor !important;
}

.tc-auth input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--tc-auth-accent);
}

.tc-auth a {
	color: var(--tc-auth-accent);
	text-decoration: none;
}

.tc-auth a:hover {
	text-decoration: underline;
}

.tc-auth__hint {
	margin: 18px 0 0 !important;
	color: var(--tc-auth-muted);
	font-size: 13px;
	text-align: center;
}

.tc-auth__footer {
	max-width: none;
	margin: 18px 0 0 !important;
	color: var(--tc-auth-muted);
	font-size: 12px;
	line-height: 1.6;
	text-align: center;
}

.tc-auth__footer a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tc-auth .pmpro_message,
.tc-auth .pmpro_error,
.tc-auth .simple-wp-registration-form__message,
.tc-auth .simple-wp-registration-form__success,
.tc-auth .simple-wp-registration-form--notice {
	width: 100%;
	max-width: none;
	margin: 0 0 16px !important;
	padding: 12px 14px !important;
	border-radius: var(--tc-auth-radius) !important;
	font-size: 13px;
	line-height: 1.5;
}

.tc-auth .simple-wp-registration-form__success,
.tc-auth .simple-wp-registration-form--notice,
.tc-auth .pmpro_success {
	border: 1px solid var(--tc-auth-success-border) !important;
	background: var(--tc-auth-success-bg) !important;
	color: var(--tc-auth-success-text) !important;
}

.tc-auth .simple-wp-registration-form__message--error,
.tc-auth .pmpro_error {
	border: 0 !important;
	background: var(--tc-auth-error-bg) !important;
	color: var(--tc-auth-error-text) !important;
}

.tc-auth .simple-wp-registration-form__login-link {
	display: inline-flex !important;
	width: auto !important;
	min-height: 38px !important;
	margin-top: 4px !important;
	padding: 9px 14px !important;
	background: var(--tc-auth-accent) !important;
	color: #fff !important;
	border-radius: var(--tc-auth-radius) !important;
	font-weight: 700 !important;
	text-decoration: none !important;
}

.tc-auth .simple-wp-registration-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.tc-auth .login-remember label {
	display: flex !important;
	gap: 8px;
	align-items: center;
	font-weight: 500 !important;
}

.tc-auth__loading {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 210px;
	padding: 28px 0;
	color: var(--tc-auth-secondary);
	text-align: center;
	animation: tcAuthLoadingIn .22s ease both;
}

.tc-auth__spinner {
	width: 42px;
	height: 42px;
	margin-bottom: 14px;
	border: 3px solid rgba(46, 125, 50, .16);
	border-top-color: var(--tc-auth-accent);
	border-radius: 50%;
	animation: tcAuthSpin .75s linear infinite;
}

.tc-auth__loading-text {
	color: var(--tc-auth-secondary);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}

.tc-auth__panel.is-loading form,
.tc-auth__panel.is-loading .tc-auth__hint {
	max-height: 0;
	margin: 0 !important;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-6px);
	transition: opacity .16s ease, transform .16s ease;
}

.tc-auth__panel.is-loading .tc-auth__loading {
	display: flex;
}

.tc-auth.is-submitting .tc-auth__tabs,
.tc-auth.is-submitting .tc-auth__footer {
	pointer-events: none;
}

@keyframes tcAuthPanelIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes tcAuthLoadingIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes tcAuthSpin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tc-auth__panel.is-active,
	.tc-auth__loading,
	.tc-auth__spinner {
		animation: none;
	}

	.tc-auth__tab,
	.tc-auth input[type="text"],
	.tc-auth input[type="email"],
	.tc-auth input[type="password"],
	.tc-auth input[type="url"],
	.tc-auth input[type="submit"],
	.tc-auth button[type="submit"],
	.tc-auth__panel.is-loading form,
	.tc-auth__panel.is-loading .tc-auth__hint {
		transition: none !important;
	}
}

@media (max-width: 480px) {
	.tc-auth {
		padding: 44px 12px 42px;
		min-height: auto;
	}

	.tc-auth__card {
		padding: 24px 18px;
	}

	.tc-auth__brand {
		margin-bottom: 16px;
	}

	.tc-auth__footer {
		font-size: 11px;
	}
}
