/*
 * Login card (/כניסה/) — Kelly's approved design "3 · כניסה (טלפון)", 2026-11-11.
 * Presentation only. Fonts come from the site (inherit + --kb-display-font). Every colour is set explicitly so the theme's magenta button and
 * link reset (hello-elementor's #c36) cannot leak in; selectors carry three classes so
 * they also outrank Elementor's `.login-card button[type=submit]` page CSS.
 * Contrast on white (IS 5568 / WCAG 2.0 AA): #1f2937 14.7:1, #1b4332 11.1:1,
 * #4b5563 7.6:1, #6b7280 4.8:1, #15803d 5.0:1 (white on #15803d 5.0:1).
 */
.kap-card {
	box-sizing: border-box;
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
	padding: 28px 22px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	background: #ffffff;
	color: #1f2937;
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
	/* Same text font as the rest of the site: inherit the page body font (Heebo). */
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	text-align: right;
	direction: rtl;
}
.kap-card > *,
.kap-card .kap-form > * {
	margin: 0;
}
.kap-card .kap-card-title {
	margin: 0;
	padding: 0;
	text-align: center;
	/* Same heading font as every other h1 on the site (mu-plugins/16-kb-humor-fonts.php). */
	font-family: var(--kb-display-font, "Suez One", "Heebo", "Segoe UI", Arial, sans-serif);
	font-weight: 400;
	font-size: 26px;
	line-height: 1.3;
	color: #1b4332;
}

/* Provider buttons (kibbutz-provider-login inserts them at the card's marker). */
.kap-card .kpl-provider-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}
.kap-card .kpl-provider-options p {
	margin: 0;
	font-size: 14px;
	color: #4b5563;
}
.kap-card .kpl-provider-options a.kpl-provider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	width: 100%;
	min-height: 52px;
	padding: 8px 16px;
	background: #ffffff;
	color: #1f2937;
	border: 1.5px solid #d1d5db;
	border-radius: 12px;
	font-family: inherit;
	font-weight: 700;
	font-size: 17px;
	line-height: 1.3;
	text-decoration: none;
	text-align: center;
	box-shadow: none;
}
.kap-card .kpl-provider-options a.kpl-provider:hover {
	background: #f9fafb;
	color: #1f2937;
	border-color: #9ca3af;
}
.kap-card .kpl-provider-options a.kpl-provider .kpl-provider-mark {
	flex-shrink: 0;
	display: block;
}

/* "או בקישור למייל" — shown only when a provider box precedes it. */
.kap-card .kap-or {
	align-items: center;
	gap: 12px;
	color: #6b7280;
	font-size: 14px;
}
.kap-card .kpl-provider-options ~ .kap-or[hidden] {
	display: flex;
}
.kap-card .kap-or::before,
.kap-card .kap-or::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e5e7eb;
}

/* Email form. */
.kap-card .kap-form {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}
.kap-card .kap-form .kap-label {
	display: block;
	font-weight: 700;
	font-size: 15px;
	color: #1f2937;
}
.kap-card .kap-form .kap-input {
	box-sizing: border-box;
	width: 100%;
	min-height: 52px;
	padding: 0 14px;
	background: #ffffff;
	color: #1f2937;
	border: 1.5px solid #6b7280;
	border-radius: 12px;
	font-family: inherit;
	font-size: 17px;
	direction: ltr;
	text-align: left;
	box-shadow: none;
}
.kap-card .kap-form .kap-input::placeholder {
	color: #6b7280;
	opacity: 1;
}
.kap-card .kap-form button.kap-primary,
.kap-card form button.kap-primary {
	box-sizing: border-box;
	width: 100%;
	min-height: 52px;
	margin-top: 10px;
	padding: 8px 16px;
	background: #15803d;
	color: #ffffff;
	border: 0;
	border-radius: 12px;
	font-family: inherit;
	font-weight: 700;
	font-size: 17px;
	line-height: 1.3;
	text-transform: none;
	cursor: pointer;
	box-shadow: none;
}
.kap-card .kap-form button.kap-primary:hover,
.kap-card form button.kap-primary:hover {
	background: #166534;
	color: #ffffff;
}

/* Footer lines. */
.kap-card .kap-hint {
	text-align: center;
	font-size: 14px;
	line-height: 1.5;
	color: #4b5563;
}
.kap-card .kbp-note {
	text-align: center;
	font-size: 14px;
	color: #4b5563;
}
.kap-card .kap-join {
	text-align: center;
}
.kap-card .kap-join a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: #15803d;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}
.kap-card .kap-join a:hover {
	color: #1b4332;
	text-decoration: underline;
}

/* Visible focus ring on every control (IS 5568). */
.kap-card a:focus-visible,
.kap-card button:focus-visible,
.kap-card input:focus-visible {
	outline: 3px solid #1b4332;
	outline-offset: 2px;
}
.kap-card .kap-form .kap-input:focus {
	border-color: #15803d;
}

/* Inside the Elementor login page: the card replaces the old card chrome and heading,
   so there is one card and one h1. Browsers without :has() keep both (still usable). */
.login-card:has(.kap-card) {
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
	padding: 0 !important;
}
.login-card:has(.kap-card) .login-h1,
body:has(.kap-card) .entry-title,
body:has(.kap-card) .wp-block-post-title {
	display: none !important;
}

@media (max-width: 380px) {
	.kap-card {
		padding: 22px 16px;
	}
}
