/* Login and Sign up pages (web/auth.php). Kailah, 2026-11-22.
   Four designs, all in the org's own color (--theme-color) with
   "Powered by Kannect" at the bottom of the card in every one. */
.kauth {
	--kauth-accent: var(--theme-color, #0997d9);
	--kauth-on-accent: var(--theme-on-primary, #fff);
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(var(--site-vh, 1vh) * 72);
	padding: 56px 16px;
}
.kauth-panel { position: relative; z-index: 1; width: 100%; display: flex; justify-content: center; }
.kauth-card {
	width: 100%;
	max-width: 440px;
	background: #fff;
	border: 1px solid #e6e8ec;
	border-radius: 18px;
	box-shadow: 0 12px 32px rgba(16, 24, 40, .08);
	padding: 40px 32px 28px;
	text-align: center;
	color: #1f2937;
}
.kauth-logo { display: flex; justify-content: center; margin-bottom: 20px; }
.kauth-logo .org-logo-frame { margin: 0 auto; }
.kauth-title { font-size: 1.65rem; line-height: 1.25; margin: 0 0 10px; color: inherit; }
.kauth-text { color: #4b5563; margin: 0 0 24px; font-size: 1rem; }
.kauth-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 50px;
	border-radius: 10px;
	background: var(--kauth-accent);
	color: var(--kauth-on-accent) !important;
	font-weight: 600;
	font-size: 1.05rem;
	text-decoration: none !important;
	transition: filter .15s ease, transform .15s ease;
}
.kauth-btn:hover { filter: brightness(.94); }
.kauth-btn:active { transform: translateY(1px); }
.kauth-note { font-size: .82rem; color: #6b7280; margin: 10px 0 0; }
.kauth-alt { margin: 22px 0 0; font-size: .95rem; color: #4b5563; }
.kauth-alt a { color: var(--kauth-accent); font-weight: 600; }
.kauth-alt-sub { margin-top: 8px; font-size: .88rem; }
/* Partnership note + the form (posts to the member portal). */
.kauth-partner {
	margin: 0 0 22px;
	padding: 12px 14px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--kauth-accent) 8%, #fff);
	color: #374151;
	font-size: .88rem;
	line-height: 1.45;
	text-align: left;
}
.kauth-form { text-align: left; }
.kauth-row { display: flex; gap: 12px; }
.kauth-row .kauth-field { flex: 1; min-width: 0; }
.kauth-field { display: block; margin: 0 0 14px; }
.kauth-field span { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 500; color: #374151; }
.kauth-field input {
	display: block;
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #fff;
	font-size: 1rem;
	color: #111827;
}
.kauth-field input:focus {
	outline: none;
	border-color: var(--kauth-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--kauth-accent) 20%, transparent);
}
.kauth-field .kauth-pw { position: relative; display: block; margin: 0; font-size: inherit; font-weight: inherit; }
.kauth-field .kauth-pw input { padding-right: 64px; }
.kauth-pw-toggle {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	width: auto !important;
	height: auto !important;
	padding: 4px 8px;
	border: 0;
	background: transparent;
	color: var(--kauth-accent);
	font-size: .85rem;
	font-weight: 600;
	cursor: pointer;
}
.kauth-forgot { margin: -6px 0 16px; text-align: right; font-size: .85rem; }
.kauth-forgot a, .kauth-check a { color: var(--kauth-accent); }
.kauth-hint { margin: -6px 0 12px; font-size: .8rem; color: #6b7280; }
.kauth-check { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; font-size: .88rem; color: #374151; font-weight: 400; }
.kauth-check input[type="checkbox"] {
	/* The site styles every input full-width; a checkbox stays a checkbox. */
	flex: 0 0 auto;
	width: 16px !important;
	height: 16px !important;
	min-width: 0;
	margin: 3px 0 0;
	padding: 0;
}
.kauth-check > span { flex: 1 1 auto; min-width: 0; }
.kauth-error { margin: 4px 0 12px; padding: 10px 12px; border-radius: 8px; background: #fdecec; color: #b42318; font-size: .88rem; }
.kauth-error[hidden] { display: none; }
/* Flash on a returned error so a retry visibly ran. */
.kauth-error-again { animation: kauth-error-flash .6s ease-out 1; }
@keyframes kauth-error-flash { 0% { transform: translateX(0); box-shadow: 0 0 0 3px rgba(180,35,24,.35); } 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } 100% { transform: translateX(0); box-shadow: 0 0 0 0 rgba(180,35,24,0); } }
@media (prefers-reduced-motion: reduce) { .kauth-error-again { animation: none; } }
.kauth-form .kauth-btn { border: 0; cursor: pointer; margin-top: 6px; }
.kauth-form .kauth-btn:disabled { opacity: .7; cursor: default; }
@media (max-width: 480px) { .kauth-row { flex-direction: column; gap: 0; } }
.kauth-powered { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid #eef0f3; font-size: .82rem; }
.kauth-powered a { color: #6b7280; text-decoration: none; }
.kauth-powered a:hover { color: #374151; }

/* 1. Centered card: the card on a soft wash of the org's color. */
.kauth.kauth--card {
	background: linear-gradient(180deg, color-mix(in srgb, var(--kauth-accent) 10%, #fff) 0%, #fff 100%);
}

/* 2. Split: image on one half, the sign-in panel on the other. */
.kauth.kauth--split { padding: 0; align-items: stretch; min-height: calc(var(--site-vh, 1vh) * 78); }
.kauth--split .kauth-media {
	flex: 1 1 50%;
	background: linear-gradient(135deg, var(--kauth-accent), color-mix(in srgb, var(--kauth-accent) 55%, #000));
	background-size: cover;
	background-position: center;
}
.kauth--split .kauth-panel { flex: 1 1 50%; align-items: center; padding: 48px 24px; background: #fff; }
.kauth--split .kauth-card { box-shadow: none; border: 0; }
@media (max-width: 767px) {
	.kauth.kauth--split { flex-direction: column; min-height: 0; }
	.kauth--split .kauth-media { flex: none; height: 200px; }
	.kauth--split .kauth-panel { padding: 32px 16px 40px; }
}

/* 3. Photo background: a full-width image, darkened, with the card on top. */
.kauth.kauth--photo {
	background-color: var(--kauth-accent);
	background-size: cover;
	background-position: center;
	min-height: calc(var(--site-vh, 1vh) * 78);
}
.kauth.kauth--photo::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .55));
}
.kauth.kauth--photo:not(.kauth-has-image)::before {
	background: linear-gradient(135deg, transparent, rgba(0, 0, 0, .25));
}

/* 4. Color band: the whole page in the org's color, the words in white. */
.kauth.kauth--band { background: var(--kauth-accent); color: var(--kauth-on-accent); }
.kauth--band .kauth-card { background: transparent; border: 0; box-shadow: none; color: var(--kauth-on-accent); }
.kauth--band .kauth-text,
.kauth--band .kauth-note,
.kauth--band .kauth-alt { color: var(--kauth-on-accent); opacity: .9; }
.kauth--band .kauth-alt a { color: var(--kauth-on-accent); text-decoration: underline; }
.kauth--band .kauth-btn { background: var(--kauth-on-accent); color: var(--kauth-accent) !important; }
.kauth--band .kauth-powered { border-top-color: rgba(255, 255, 255, .25); }
.kauth--band .kauth-powered a { color: var(--kauth-on-accent); opacity: .85; }

@media (max-width: 575px) {
	.kauth { padding: 32px 16px; min-height: 0; }
	.kauth-card { padding: 32px 20px 24px; }
	.kauth-title { font-size: 1.4rem; }
}
