/* Taskploy auth pages — overrides SignAsset / Bootstrap for login, signup, password */

.tp-auth {
	--tp-purple: #3f217c;
	--tp-purple-deep: #2a1458;
	--tp-yellow: #ffd400;
	--tp-yellow-deep: #f0c000;
	--tp-ink: #1a1430;
	--tp-muted: #5c5670;
	--tp-line: #e8e4f0;
	--tp-radius: 12px;
	--tp-radius-lg: 22px;
	--tp-shadow-soft: 0 10px 30px rgba(42, 20, 88, 0.08);
	--tp-font: "Manrope", "Avenir Next", sans-serif;
}

body.tp-auth,
body.tp-auth.auth-page,
body.tp-auth.password-page {
	margin: 0;
	min-height: 100vh;
	overflow-x: hidden;
	color: var(--tp-ink);
	font-family: var(--tp-font) !important;
	background-color: #fff !important;
	background-image:
		radial-gradient(1200px 600px at 85% -10%, rgba(255, 212, 0, 0.18), transparent 55%),
		radial-gradient(900px 500px at -10% 20%, rgba(63, 33, 124, 0.08), transparent 50%),
		linear-gradient(180deg, #fff 0%, #faf8ff 35%, #fff 70%) !important;
	background-repeat: no-repeat !important;
	background-size: auto !important;
	background-position: center top !important;
	line-height: 1.55;
}

.tp-auth *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab) {
	font-family: var(--tp-font);
}

.tp-auth a {
	color: var(--tp-purple);
	text-decoration: none;
}

.tp-auth a:hover {
	color: var(--tp-purple-deep);
	text-decoration: none;
}

.tp-auth-glow {
	pointer-events: none;
	position: fixed;
	inset: 0;
	background: radial-gradient(500px 200px at 50% 0%, rgba(255, 212, 0, 0.08), transparent 60%);
	z-index: -1;
}

.tp-auth #main {
	width: 100%;
	max-width: 100%;
	overflow: visible;
}

body.tp-auth.tp-nav-open {
	overflow: hidden;
}

/* Header — matches taskploy.com marketing nav */
.tp-site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	backdrop-filter: blur(14px);
	background: rgba(255, 255, 255, 0.84);
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.tp-site-header.scrolled {
	border-bottom-color: var(--tp-line);
	box-shadow: 0 8px 24px rgba(42, 20, 88, 0.05);
}

.tp-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 76px;
	width: min(100% - 2.5rem, 1180px);
	margin-inline: auto;
}

.tp-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
}

.tp-logo-img {
	display: block !important;
	height: 36px !important;
	max-height: 36px !important;
	width: auto !important;
	max-width: min(180px, 42vw);
	object-fit: contain;
}

.tp-nav {
	display: flex;
	align-items: center;
}

.tp-nav-list {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tp-nav-link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.55rem 0.75rem;
	border-radius: 999px;
	color: var(--tp-ink) !important;
	font-weight: 600;
	font-size: 0.95rem;
	font-family: inherit;
	line-height: 1.2;
	background: none;
	border: 0;
	cursor: pointer;
	box-shadow: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.tp-nav-link:hover,
.tp-nav-item:focus-within > .tp-nav-link,
.tp-nav-item.open > .tp-nav-link {
	background: rgba(63, 33, 124, 0.06);
	color: var(--tp-purple) !important;
	text-decoration: none;
}

.tp-nav-item {
	position: relative;
	margin: 0 !important;
}

.tp-dropdown {
	position: absolute;
	top: calc(100% + 0.4rem);
	left: 0;
	min-width: 180px;
	padding: 0.55rem;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--tp-line);
	box-shadow: var(--tp-shadow-soft);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
	display: grid;
	gap: 0.15rem;
	z-index: 60;
}

.tp-dropdown-wide {
	min-width: 260px;
}

.tp-dropdown a {
	padding: 0.55rem 0.7rem;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--tp-muted) !important;
}

.tp-dropdown a:hover {
	background: #f6f4fa;
	color: var(--tp-purple) !important;
	text-decoration: none;
}

.tp-nav-item.open .tp-dropdown,
.tp-nav-item:hover .tp-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.tp-nav-item.open .tp-nav-link svg,
.tp-nav-item:hover .tp-nav-link svg {
	transform: rotate(180deg);
}

.tp-nav-link svg {
	transition: transform 0.2s ease;
}

.tp-header-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.tp-text-link {
	font-weight: 700;
	color: var(--tp-ink) !important;
	padding: 0.4rem 0.55rem;
	text-decoration: none !important;
}

.tp-text-link:hover {
	color: var(--tp-purple) !important;
}

.tp-menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	place-items: center;
	gap: 5px;
	flex-direction: column;
	background: #f6f4fa;
	border: 0;
	cursor: pointer;
	padding: 0;
}

.tp-menu-toggle span {
	width: 18px;
	height: 2px;
	background: var(--tp-purple);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.tp-menu-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.tp-menu-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.tp-menu-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.tp-mobile-only {
	display: none;
}

.tp-auth .tp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	border-radius: var(--tp-radius);
	font-weight: 800;
	padding: 0.7rem 1.15rem;
	border: 0;
	cursor: pointer;
	text-decoration: none !important;
	transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
	white-space: nowrap;
	line-height: 1.2;
}

.tp-auth .tp-btn:hover {
	transform: translateY(-1px);
}

.tp-auth .tp-btn-primary,
.tp-auth a.tp-btn-primary,
.tp-auth button.tp-btn-primary {
	background: var(--tp-yellow) !important;
	color: var(--tp-ink) !important;
	box-shadow: 0 8px 20px rgba(255, 212, 0, 0.35);
	font-family: var(--tp-font) !important;
	min-width: 0 !important;
	margin: 0 !important;
}

.tp-auth .tp-btn-primary:hover,
.tp-auth a.tp-btn-primary:hover,
.tp-auth button.tp-btn-primary:hover {
	background: var(--tp-yellow-deep) !important;
	color: var(--tp-ink) !important;
}

.tp-auth .tp-btn-lg {
	padding: 0.95rem 1.35rem;
	font-size: 1rem;
	border-radius: 14px;
	width: 100%;
}

/* Card shell */
.tp-auth-shell {
	min-height: calc(100vh - 76px);
	display: grid;
	place-items: center;
	padding: 2.5rem 1.25rem 4rem;
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
}

.tp-auth .auth-card {
	width: min(100%, 460px);
	background: #fff;
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius-lg);
	padding: 1.5rem;
	box-shadow: var(--tp-shadow-soft);
	box-sizing: border-box;
}

.tp-auth .auth-card.auth-card-wide {
	width: min(100%, 640px);
}

.tp-auth .auth-card h1,
.tp-auth .auth-card .auth-title {
	margin: 0 0 0.35rem;
	font-size: 1.65rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--tp-ink);
	line-height: 1.25;
}

.tp-auth .auth-sub {
	margin: 0 0 1.25rem;
	color: var(--tp-muted);
	font-weight: 500;
}

.tp-auth .auth-card .form-group {
	margin-bottom: 0.9rem;
}

.tp-auth .auth-card label,
.tp-auth .auth-card .control-label,
.tp-auth #main .auth-card label {
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--tp-ink);
	margin-bottom: 0.35rem;
}

.tp-auth .auth-card .form-control {
	width: 100%;
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius);
	padding: 0.75rem 0.85rem;
	height: auto;
	font-size: 1rem;
	color: var(--tp-ink);
	background: #fff;
	box-shadow: none;
}

.tp-auth .auth-card .form-control:focus {
	border-color: var(--tp-purple-soft, #6b4db0);
	box-shadow: 0 0 0 3px rgba(63, 33, 124, 0.12);
}

.tp-auth .auth-card .has-error .form-control,
.tp-auth .auth-card .form-control.is-invalid {
	border-color: #d64545;
}

.tp-auth .auth-card .help-block,
.tp-auth .auth-card .invalid-feedback {
	color: #d64545;
	font-size: 0.85rem;
	font-weight: 600;
	margin-top: 0.25rem;
}

.tp-auth .auth-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

.tp-auth .auth-inline-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
	font-weight: 700;
	font-size: 0.9rem;
}

.tp-auth .auth-inline-row .form-group {
	margin-bottom: 0;
}

.tp-auth .auth-card .checkbox,
.tp-auth .auth-card .custom-control {
	padding-left: 0;
	min-height: 0;
}

.tp-auth .auth-card .checkbox label,
.tp-auth .auth-card .custom-control-label {
	font-weight: 600;
	color: var(--tp-ink);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0;
}

.tp-auth .auth-inline-row .checkbox {
	margin-top: 0;
	margin-bottom: 0;
}

.tp-auth .auth-card input[type="checkbox"] {
	width: 1.05rem;
	height: 1.05rem;
	accent-color: var(--tp-purple);
	margin: 0;
}

.tp-auth .auth-link {
	color: var(--tp-purple);
	font-weight: 700;
	text-decoration: none;
}

.tp-auth .auth-link:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tp-auth .auth-footer-text {
	margin: 1rem 0 0;
	color: var(--tp-muted);
	font-weight: 500;
}

.tp-auth .auth-footer-text a {
	font-weight: 700;
}

.tp-auth .flash_alert_message {
	width: 100%;
	word-break: break-word;
	border-radius: 12px;
	margin-bottom: 1rem;
}

.tp-auth .auth-password-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	font-size: 0.9rem;
	margin-bottom: 0.35rem;
}

.tp-auth .tool-tip-btn {
	background-color: var(--tp-purple) !important;
	color: #fff !important;
	border-radius: 50% !important;
	height: 16px !important;
	width: 16px !important;
	font-size: 10px;
	line-height: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: help;
}

.tp-auth .select2-container {
	width: 100% !important;
}

.tp-auth .select2-container .select2-selection {
	border: 1px solid var(--tp-line) !important;
	border-radius: var(--tp-radius) !important;
	min-height: 46px;
	padding: 0.35rem 0.5rem;
	background: #fff !important;
}

.tp-auth .select2-container--focus .select2-selection,
.tp-auth .select2-container--open .select2-selection {
	border-color: #6b4db0 !important;
	box-shadow: 0 0 0 3px rgba(63, 33, 124, 0.12);
}

.tp-auth .select2-container .select2-selection--single .select2-selection__rendered {
	line-height: 32px;
	padding-left: 4px;
	color: var(--tp-ink);
}

.tp-auth .select2-container .select2-selection--single .select2-selection__arrow {
	height: 44px;
}

.tp-auth .auth-password-label + .form-group {
	margin-top: 0;
}

@media (max-width: 840px) {
	.tp-desktop-only {
		display: none !important;
	}

	.tp-mobile-only {
		display: flex;
		flex-direction: column;
		gap: 0.75rem;
		margin-top: 1.25rem;
		padding-top: 1.25rem;
		border-top: 1px solid var(--tp-line);
	}

	.tp-menu-toggle {
		display: inline-flex;
	}

	.tp-nav {
		position: absolute;
		top: calc(100% + 0.35rem);
		left: 1rem;
		right: 1rem;
		background: #fff !important;
		border: 1px solid var(--tp-line);
		border-radius: 18px;
		padding: 1rem;
		box-shadow: 0 20px 50px rgba(42, 20, 88, 0.12);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
		z-index: 210;
		max-height: calc(100vh - 92px);
		overflow-y: auto;
	}

	.tp-nav.open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.tp-nav-list {
		flex-direction: column;
		align-items: stretch;
	}

	.tp-dropdown {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 0.25rem 0 0.25rem 0.75rem;
		display: none;
	}

	.tp-nav-item.open .tp-dropdown {
		display: grid;
	}

	.tp-nav-actions .tp-btn-primary {
		width: 100%;
	}
}

@media (max-width: 575px) {
	.tp-auth .auth-field-row {
		grid-template-columns: 1fr;
	}

	.tp-auth .auth-card {
		padding: 1.25rem;
	}

	.tp-auth .auth-card h1,
	.tp-auth .auth-card .auth-title {
		font-size: 1.4rem;
	}
}

@media (min-width: 576px) {
	.tp-auth .auth-card {
		padding: 1.75rem;
	}
}
