/**
 * Yokaba B2B – style logowania i rejestracji (formularz + korzyści).
 * W motywie – bez wtyczki.
 */

/* ==========================================================================
   Header strony logowania B2B (zamiast standardowego headera)
   ========================================================================== */

.yokaba-b2b-login-header {
	background: #fff;
	border-bottom: 1px solid rgba(235, 235, 235, 1);
	padding: 16px 24px;
}

.yokaba-b2b-login-header-inner {
	max-width: 1240px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.yokaba-b2b-login-back-link {
	font-size: 14px;
	font-weight: 600;
	color: #1d1c1a;
	text-decoration: none;
}

.yokaba-b2b-login-back-link:hover {
	color: #a88466;
	text-decoration: underline;
}

.yokaba-b2b-login-logo {
	font-size: 18px;
	font-weight: 600;
	color: #1d1c1a;
	text-decoration: none;
	letter-spacing: 0.02em;
}

.yokaba-b2b-login-logo:hover {
	color: #a88466;
}

@media (max-width: 640px) {
	.yokaba-b2b-login-header {
		padding: 12px 16px;
	}
	.yokaba-b2b-login-header-inner {
		padding: 0;
	}
	.yokaba-b2b-login-back-link {
		font-size: 13px;
	}
	.yokaba-b2b-login-logo {
		font-size: 16px;
	}
}

/* ==========================================================================
   Layout – kontener i siatka
   ========================================================================== */

.yb2b-wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px 72px;
	font-family: "Montserrat", Arial, sans-serif;
	color: #1d1c1a;
}

.yb2b-back {
	margin-bottom: 16px;
}

.yb2b-back-link {
	color: #403e3c;
	text-decoration: none;
	font-size: 14px;
}

.yb2b-back-link:hover {
	color: #a88466;
	text-decoration: underline;
}

.yb2b-section {
	padding: 24px 0;
}

.yb2b-grid {
	display: grid;
	grid-template-columns: minmax(320px, 520px) 1fr;
	gap: 120px;
	align-items: start;
}

/* Strona logowania: ≥768px – formularz lewa, benefits prawa (jak dotychczas) */
.yb2b-grid-login {
	grid-template-columns: minmax(320px, 520px) 1fr;
}

/* Poniżej 768px: benefits nad formularzem, jedna linia + scroll-x (logowanie i rejestracja) */
@media (max-width: 767px) {
	.yb2b-grid-login,
	.yb2breg-section.yb2b-grid {
		grid-template-columns: 1fr !important;
	}

	.yb2b-grid-login .yb2b-benefits-scroll,
	.yb2breg-section .yb2breg-benefits {
		order: 1;
		width: 100%;
		min-width: 0;
		margin-bottom: 24px;
	}

	.yb2b-grid-login .yb2b-login-card,
	.yb2breg-section .yokaba-register-page-container {
		order: 2;
	}

	.yb2b-grid-login .yb2b-benefits-scroll .yb2b-benefits-title,
	.yb2breg-benefits .yb2b-benefits-title {
		margin-bottom: 16px;
	}

	/* Tylko .yb2b-benefits-list ma scroll w poziomie; tytuł zostaje na miejscu */
	.yb2b-grid-login .yb2b-benefits-scroll .yb2b-benefits-list,
	.yb2breg-benefits .yb2b-benefits-list {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 20px;
		margin: 0;
		padding: 0 24px 0 0;
		list-style: none;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 8px;
	}

	.yb2b-grid-login .yb2b-benefits-scroll .yb2b-benefit,
	.yb2breg-benefits .yb2b-benefit {
		flex: 0 0 auto;
		min-width: 240px;
		max-width: 280px;
		display: grid;
		grid-template-columns: 48px 1fr;
		gap: 16px;
		align-items: start;
	}

	/* Rejestracja: na mobile bez karty 2-col, tylko scroll jak logowanie */
	.yb2breg-benefits {
		background: transparent;
		border: none;
		box-shadow: none;
		padding: 0;
		margin-top: 0;
	}

	.yb2breg-benefits .yb2b-benefits-title {
		font-size: 20px !important;
		line-height: 28px !important;
		margin: 0 0 16px !important;
	}
}

@media (max-width: 640px) {
	.yb2b-grid-login .yb2b-benefits-scroll .yb2b-benefits-list,
	.yb2breg-benefits .yb2b-benefits-list {
		margin-left: -24px;
		margin-right: -24px;
		padding-left: 24px;
		padding-right: 24px;
	}
	.yb2b-grid-login .yb2b-benefits-scroll .yb2b-benefit,
	.yb2breg-benefits .yb2b-benefit {
		min-width: 220px;
	}
}

/* ==========================================================================
   Karta logowania
   ========================================================================== */

.yb2b-login-card {
	border: 1px solid var(--silver-100, rgba(235, 235, 235, 1));
	box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.03);


}

.yb2b-login-main{
	padding:32px;
}


.yb2b-title {
	margin: 0 0 8px !important;
	font-size: 24px !important;
	line-height: 32px !important;
	font-weight: 600 !important;
}

.yb2b-subtitle {
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.5;
	color: #403e3c;
}

.yb2b-inline-link {
	color: #a88466;
	font-weight: 600;
	text-decoration: underline;
}

.yb2b-inline-link:hover {
	text-decoration: none;
}

/* ==========================================================================
   Formularz – pola i inputy
   ========================================================================== */

.yb2b-field {
	display: block;
	margin-bottom: 14px;
}

.yb2b-label {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 600;
}

.yb2b-required {
	color: #a88466;
	margin-left: 4px;
}

.yb2b-input-wrap {
	position: relative;
	display: block;
}

.yb2b-input {
	width: 100%;
	height: 46px;
	padding: 10px 14px;
	padding-right: 80px;
	border: 1px solid var(--silver-200, rgba(224, 224, 224, 1)) !important;
	box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05) !important;

	color: #1d1c1a;
	font-size: 15px;
	line-height: 1.4;
	box-sizing: border-box;
}

.yb2b-input:focus {
	outline: none;
	border-color: #a88466;
	box-shadow: 0 0 0 2px rgba(168, 132, 102, 0.15);
}

.yb2b-input.yb2b-input-error {
	border-color: #dc2626 !important;
	box-shadow: 0 0 0 1px #dc2626;
}

.yb2b-field-error {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.35;
	color: #dc2626;
}

.yb2b-password-toggle {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: #848484;
	cursor: pointer;
}

.yb2b-password-toggle:hover {
	color: #a88466;
}

.yb2b-password-toggle .yb2b-eye-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;color: #848484;
	color: rgba(132, 132, 132, 1) !important;

}

.yb2b-password-toggle .yb2b-eye-icon svg {
	display: block;

}

.yb2b-forgot {
	display: inline-block;
	margin-top: 2px;
	font-size: 14px;
	color: #a88466;
	font-weight: 600;
	text-decoration: underline;
}

.yb2b-error-msg {
	margin: 0 0 12px;
	padding: 8px 0;
	color: #c00;
	font-size: 14px;
}

/* ==========================================================================
   Przyciski
   ========================================================================== */

.yb2b-login-actions {
	padding: 24px 32px 32px;
	background: #f8f8f8;
	display: grid;
	gap: 12px;
}

.yb2b-btn {
	display: inline-flex;
	width: 100%;
	min-height: 52px;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 600;
	border: 1px solid transparent;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;

}

.yb2b-btn-primary {
	background: #a88466;
	border-color: #a88466;
	color:#fff !important;
}

.yb2b-btn-primary:hover {
	background: #967257;
	border-color: #967257;
	color: #fff;
}

.yb2b-btn-secondary {
	background: #fff;
	border-color: #e0e0e0;
	color: #1d1c1a;
}

.yb2b-btn-secondary:hover {
	border-color: #a88466;
	color: #a88466;
}

/* ==========================================================================
   Benefits – lista korzyści (prawa kolumna)
   ========================================================================== */

.yb2b-benefits-title {
	margin:  0 0 40px;
	font-size: 24px !important;
	line-height: 32px !important;
	font-weight: 600 !important;
}

.yb2b-benefits-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 40px;
}

.yb2b-benefit {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 16px;
	align-items: center;
}

.yb2b-benefit-icon {
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: #eee3d9;
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

.yb2b-benefit-icon .yb2b-icon {
	width: 22px;
	height: 22px;
	opacity: 0.6;
	border-radius: 2px;
	background: currentColor;
	display: inline-block;
}

.yb2b-benefit-heading {
	margin: 0 0 7px;
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
}

.yb2b-benefit-copy {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: rgba(65, 63, 61, 1);
}

/* ==========================================================================
   Rejestracja – rozszerzenia (ta sama siatka, karta, benefits)
   ========================================================================== */

.yb2breg-section .yb2b-grid {
	grid-template-columns: minmax(320px, 520px) 1fr;
}

.yb2breg-card {
	background: #fff;
	border: 1px solid #ebebeb;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.yb2breg-main {
	padding: 32px;
}

.yb2breg-benefits-title {
	margin: 8px 0 28px;
	font-size: 34px;
}

.yb2breg-benefits-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 18px;
}

.yb2breg-benefit {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 16px;
	align-items: start;
}

.yb2breg-benefit-icon {
	width: 48px;
	height: 48px;
	background: #eee3d9;
	border-radius: 999px;
	display: grid;
	place-items: center;
}

.yb2breg-benefit-heading {
	font-size: 16px;
	font-weight: 600;
}

.yb2breg-benefit-copy {
	font-size: 16px;
	color: #403e3c;
}

/* ==========================================================================
   Responsywność
   ========================================================================== */

@media (max-width: 1024px) {
	.yb2b-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	/* Logowanie i rejestracja: do 768px trzymamy dwie kolumny (formularz | benefits) */
	.yb2b-grid-login,
	.yb2breg-section.yb2b-grid {
		grid-template-columns: minmax(320px, 520px) 1fr;
	}

	.yb2b-benefits-title {
		font-size: 30px;
		margin-top: 0;
	}
}

@media (max-width: 640px) {
	.yb2b-wrap {
		padding-left: 16px;
		padding-right: 16px;
		padding-bottom: 48px;
	}

	.yb2b-title {
		font-size: 28px;
	}

	.yb2b-benefits-title {
		font-size: 26px;
	}

	.yb2b-login-main,
	.yb2b-login-actions {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* Benefits rejestracji – desktop (≥768px): lista pionowa po prawej; mobile (<768px) w (max-width: 767px) powyżej */
