/**
 * Broker Login form styles.
 *
 * Self-contained under the `.y2bbl-` namespace, same visual language
 * as registration-form.css (white card, rounded corners, light shadow,
 * blue buttons, Font Awesome icons) — only ever loaded on the page
 * that uses [y2b_broker_login].
 */

.y2bbl-login-wrap {
	max-width: 420px;
	margin: 48px auto;
	padding: 0 16px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.y2bbl-login-wrap *,
.y2bbl-login-wrap *::before,
.y2bbl-login-wrap *::after {
	box-sizing: border-box;
}

.y2bbl-login-card {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba( 15, 23, 42, 0.08 );
	padding: 32px;
}

.y2bbl-login-header {
	text-align: center;
	margin-bottom: 22px;
}

.y2bbl-login-header h2 {
	margin: 0 0 6px;
	font-size: 1.4rem;
	font-weight: 800;
	color: #0f172a;
}

.y2bbl-login-header p {
	margin: 0;
	font-size: 0.84rem;
	color: #64748b;
}

.y2bbl-hidden {
	display: none !important;
}

.y2bbl-field {
	margin-bottom: 16px;
}

.y2bbl-field label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	color: #334155;
	margin-bottom: 6px;
}

.y2bbl-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.y2bbl-input-wrap i.fa-solid:first-child {
	position: absolute;
	left: 14px;
	color: #94a3b8;
	font-size: 0.9rem;
	pointer-events: none;
}

.y2bbl-input-wrap input[type="text"],
.y2bbl-input-wrap input[type="tel"],
.y2bbl-input-wrap input[type="password"] {
	width: 100%;
	height: 46px;
	padding: 0 14px 0 40px;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;
	font-size: 0.92rem;
	font-family: inherit;
	color: #0f172a;
	background: #fff;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.y2bbl-input-wrap input:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba( 37, 99, 235, 0.12 );
}

.y2bbl-input-wrap input.y2bbl-input-invalid {
	border-color: #dc2626;
}

.y2bbl-toggle-password {
	position: absolute;
	right: 12px;
	background: none;
	border: none;
	color: #94a3b8;
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.y2bbl-toggle-password:hover {
	color: #475569;
}

.y2bbl-field-error {
	display: block;
	margin-top: 5px;
	font-size: 0.76rem;
	font-weight: 600;
	color: #dc2626;
}

.y2bbl-login-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	font-size: 0.82rem;
}

.y2bbl-remember-label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #334155;
	cursor: pointer;
}

.y2bbl-remember-label input[type="checkbox"] {
	width: 15px;
	height: 15px;
	accent-color: #2563eb;
	cursor: pointer;
}

.y2bbl-forgot-link {
	color: #2563eb;
	font-weight: 600;
	text-decoration: none;
}

.y2bbl-forgot-link:hover {
	text-decoration: underline;
}

.y2bbl-general-error {
	background: #fef2f2;
	border: 1.5px solid #fecaca;
	color: #b91c1c;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 18px;
}

.y2bbl-login-actions {
	display: flex;
	gap: 10px;
}

.y2bbl-submit-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1;
	height: 50px;
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s ease;
}

.y2bbl-submit-btn:hover {
	background: #1d4ed8;
}

.y2bbl-submit-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.y2bbl-register-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1;
	height: 50px;
	background: #fff;
	color: #2563eb;
	border: 1.5px solid #2563eb;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 700;
	font-family: inherit;
	text-decoration: none;
	transition: background 0.15s ease;
}

.y2bbl-register-btn:hover {
	background: #eff6ff;
	color: #2563eb;
}

@media ( max-width: 480px ) {
	.y2bbl-login-wrap {
		margin: 20px auto;
	}

	.y2bbl-login-card {
		padding: 22px;
		border-radius: 12px;
	}

	.y2bbl-login-actions {
		flex-direction: column;
	}
}
