/* אזור בעלי תפקידים — כניסה והרשמה.
   מועתק מ-keren-site/login.html; הוסרו סרגל ההדגמה והמחלקות שהיו
   נחוצות רק להחלפת פאנלים ב-JS (כאן ההחלפה נעשית בשרת). */

.keren-auth {
	--navy: #13284f;
	--navy2: #1f3d73;
	--blue: #0F57AC;
	--gold: #F5B301;
	--ink: #1b2435;
	--muted: #6b7689;
	--line: #e2e7f0;
	--bg: #eef2f8;
	--ok: #1f9d6b;
	--okbg: #e6f7ef;
	--red: #d23b3b;
	--redbg: #fdecec;

	margin: 0;
	font-family: "IBM Plex Sans Hebrew", system-ui, Arial, sans-serif;
	background: var(--bg);
	color: var(--ink);
	line-height: 1.55;
}

.keren-auth * { box-sizing: border-box; }

.keren-auth .wrap {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 34px 16px 50px;
}

.keren-auth .card {
	width: 100%;
	max-width: 460px;
	background: #fff;
	border: 1px solid #e6ebf3;
	border-radius: 20px;
	box-shadow: 0 18px 48px rgba(10, 42, 94, .12);
	overflow: hidden;
}

.keren-auth .head {
	background: linear-gradient(135deg, var(--navy), var(--navy2));
	color: #fff;
	padding: 26px 30px 22px;
	text-align: center;
}
.keren-auth .logo { width: 60px; height: 60px; margin: 0 auto 12px; }
.keren-auth .logo img { width: 100%; height: 100%; display: block; }
.keren-auth .head h1 { margin: 0 0 3px; font-size: 20px; }
.keren-auth .head p { margin: 0; opacity: .85; font-size: 13px; }

.keren-auth .tabs { display: flex; border-bottom: 1px solid #e6ebf3; }
.keren-auth .tab {
	flex: 1;
	text-align: center;
	padding: 15px;
	font-size: 15px;
	font-weight: 700;
	color: var(--muted);
	cursor: pointer;
	background: #f6f9fe;
	border: none;
	font-family: inherit;
	text-decoration: none;
	transition: .15s;
}
.keren-auth .tab.on { color: var(--navy); background: #fff; box-shadow: inset 0 -3px 0 var(--gold); }

.keren-auth .body { padding: 26px 30px 30px; }
.keren-auth .lead { font-size: 13.5px; color: #4a5568; margin: 0 0 16px; }

.keren-auth .note {
	background: #fff8e1;
	border: 1px solid #f0d98a;
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 12.5px;
	color: #7a5d00;
	margin-bottom: 18px;
	line-height: 1.6;
}
.keren-auth .note b { color: #5a4500; }

.keren-auth .field { margin-bottom: 14px; }
.keren-auth .field label { display: block; font-size: 12.5px; font-weight: 600; color: #374563; margin-bottom: 5px; }
.keren-auth .field .req:after { content: " *"; color: var(--red); }
.keren-auth .field input,
.keren-auth .field select {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--line);
	border-radius: 11px;
	font-size: 14.5px;
	font-family: inherit;
	background: #fdfefe;
	transition: .15s;
}
.keren-auth .field input:focus,
.keren-auth .field select:focus {
	outline: none;
	border-color: var(--blue);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(15, 87, 172, .12);
}

.keren-auth .pw { position: relative; }
.keren-auth .pw input { padding-inline-end: 46px; }
.keren-auth .pw button {
	position: absolute;
	inset-inline-end: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--muted);
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
}
.keren-auth .pw button:hover { color: var(--blue); }

.keren-auth .row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 4px 0 18px;
	font-size: 13px;
}
.keren-auth .remember { display: flex; align-items: center; gap: 8px; color: #374563; }
.keren-auth .remember input { width: 16px; height: 16px; accent-color: var(--gold); }

.keren-auth .link { color: var(--blue); text-decoration: none; font-weight: 600; }
.keren-auth .link:hover { text-decoration: underline; }

.keren-auth .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.keren-auth .btn {
	width: 100%;
	border: none;
	border-radius: 12px;
	padding: 13px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	background: var(--navy);
	color: #fff;
	transition: .2s;
}
.keren-auth .btn:hover { background: var(--navy2); }

.keren-auth .consent {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	font-size: 12.5px;
	color: #374563;
	margin: 2px 0 16px;
}
.keren-auth .consent input { width: 16px; height: 16px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--gold); }

.keren-auth .err {
	background: var(--redbg);
	border: 1px solid #f3b4b4;
	color: var(--red);
	font-size: 13px;
	font-weight: 600;
	border-radius: 10px;
	padding: 10px 12px;
	margin-bottom: 14px;
}

.keren-auth .ok { text-align: center; padding: 10px 0; }
.keren-auth .ok .c {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--okbg);
	color: var(--ok);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	margin: 0 auto 14px;
}
.keren-auth .ok h2 { color: var(--navy); font-size: 19px; margin: 0 0 6px; }
.keren-auth .ok p { color: #4a5568; font-size: 14px; margin: 0 auto 8px; max-width: 340px; }

.keren-auth .backlink { display: block; text-align: center; margin-top: 14px; font-size: 13px; }

/* מלכודת הבוטים — מוסרת מהזרימה בלי display:none, שחלק מהבוטים מזהים. */
.keren-auth .hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 460px) {
	.keren-auth .grid2 { grid-template-columns: 1fr; }
}
