/*
 * BA Auth — Modern SaaS Hybrid design.
 * Split layout: gradient brand panel on the left, clean white card on
 * the right. Falls back to a single centered card on mobile.
 */

.ba-auth-wrap {
	--ba-primary: #4f46e5;
	--ba-primary-dark: #3730a3;
	--ba-radius: 14px;
	display: flex;
	min-height: 560px;
	max-width: 960px;
	margin: 40px auto;
	border-radius: var(--ba-radius);
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
	background: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ba-auth-panel {
	flex: 1 1 40%;
	background: linear-gradient(160deg, var(--ba-primary) 0%, var(--ba-primary-dark) 100%);
	color: #fff;
	display: flex;
	align-items: center;
	padding: 48px;
}

.ba-auth-panel-inner h2 {
	font-size: 28px;
	line-height: 1.3;
	margin: 0 0 12px;
}

.ba-auth-panel-inner p {
	font-size: 15px;
	opacity: 0.85;
	line-height: 1.6;
	margin: 0;
}

.ba-auth-card {
	flex: 1 1 60%;
	padding: 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.ba-auth-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 24px;
	color: #111827;
}

.ba-auth-notice {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 20px;
}

.ba-auth-notice--error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.ba-auth-notice--success {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.ba-auth-notice--info {
	background: #eff6ff;
	color: #1d4ed8;
	border: 1px solid #bfdbfe;
}

.ba-auth-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ba-auth-row {
	display: flex;
	gap: 16px;
}

.ba-auth-row .ba-auth-field {
	flex: 1;
}

.ba-auth-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ba-auth-field label {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.ba-auth-field input[type="text"],
.ba-auth-field input[type="email"],
.ba-auth-field input[type="password"],
.ba-auth-field input[type="tel"] {
	padding: 11px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ba-auth-field input:focus {
	outline: none;
	border-color: var(--ba-primary);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.ba-auth-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #374151;
}

.ba-auth-checkbox input {
	width: 16px;
	height: 16px;
}

.ba-auth-row-between {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
}

.ba-auth-link {
	color: var(--ba-primary);
	text-decoration: none;
	font-weight: 600;
}

.ba-auth-link:hover {
	text-decoration: underline;
}

.ba-auth-btn {
	padding: 12px 18px;
	border-radius: 8px;
	border: none;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease;
}

.ba-auth-btn--primary {
	background: var(--ba-primary);
	color: #fff;
}

.ba-auth-btn--primary:hover {
	background: var(--ba-primary-dark);
}

.ba-auth-btn--primary:active {
	transform: translateY(1px);
}

.ba-auth-switch {
	margin-top: 4px;
	font-size: 13px;
	color: #6b7280;
	text-align: center;
}

.ba-auth-switch a {
	color: var(--ba-primary);
	font-weight: 600;
	text-decoration: none;
}

.ba-auth-switch a:hover {
	text-decoration: underline;
}

@media (max-width: 720px) {
	.ba-auth-wrap {
		flex-direction: column;
		margin: 16px;
	}

	.ba-auth-panel {
		padding: 32px;
	}

	.ba-auth-card {
		padding: 32px 24px;
	}

	.ba-auth-row {
		flex-direction: column;
		gap: 16px;
	}
}

/* Password show/hide toggle */
.ba-password-wrap {
	position: relative;
}

.ba-password-wrap input {
	width: 100%;
	padding-right: 42px !important;
	box-sizing: border-box;
}

.ba-toggle-password {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	padding: 6px;
	opacity: 0.6;
}

.ba-toggle-password:hover {
	opacity: 1;
}
