/* ── Tnaqniq split auth layout (left hero / right form) ── */

:root {
	--bbat-brand-primary: #ef5d33;
	--bbat-brand-primary-hover: #d94b25;
}

body.bbat-auth-page.login,
body.bbat-auth-page.bb-rl-register {
	background: var(--bb-rl-background-color, #fff);
	min-height: 100vh;
}

body.bbat-auth-page.login #login,
body.bbat-auth-page.bb-rl-register .register-page-main {
	border: 0;
	box-shadow: none;
	background: transparent;
	padding: 0;
	margin: 0;
	max-width: none;
}

body.bbat-auth-page.login .bb-rl-login-header,
body.bbat-auth-page.bb-rl-register .bb-rl-login-header {
	display: none !important;
}

body.bbat-auth-page.login h1.wp-login-logo {
	display: none;
}

.bbat-auth-shell {
	display: flex;
	min-height: 100vh;
	width: 100%;
}

.bbat-auth-visual {
	position: relative;
	flex: 1 1 52%;
	min-height: 100vh;
	color: #fff;
	background:
		linear-gradient(145deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.55) 100%),
		var(--bbat-auth-hero, none) center/cover no-repeat,
		linear-gradient(135deg, #3d1a0a 0%, #0f172a 55%, #431407 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(32px, 6vw, 72px);
}

.bbat-auth-visual-inner {
	max-width: 520px;
	width: 100%;
}

.bbat-auth-visual-logo {
	display: inline-block;
	margin-bottom: 28px;
}

.bbat-auth-visual-logo img {
	width: 150px;
	height: auto;
	max-height: 48px;
	object-fit: contain;
}

.bbat-auth-visual-headline {
	margin: 0 0 16px;
	font-size: clamp(2rem, 4vw, 3.25rem);
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
}

.bbat-auth-visual-headline span {
	color: var(--bbat-brand-primary, #ef5d33);
}

.bbat-auth-visual-tagline {
	margin: 0;
	font-size: clamp(1rem, 1.6vw, 1.25rem);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.82);
	max-width: 420px;
}

.bbat-auth-panel {
	flex: 1 1 48%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(24px, 4vw, 48px);
	background: var(--bb-rl-background-color, #fff);
}

.bbat-auth-panel-inner {
	width: 100%;
	max-width: 432px;
}

/* Centered logo above form */
.bbat-auth-form-logo {
	display: flex;
	justify-content: center;
	margin-bottom: 24px;
}

.bbat-auth-form-logo a {
	display: inline-flex;
	line-height: 0;
}

.bbat-auth-form-logo img {
	width: auto;
	max-width: 160px;
	height: auto;
	max-height: 48px;
	object-fit: contain;
}

.bbat-auth-register .bbat-auth-panel-inner {
	max-width: 520px;
}

.bbat-auth-form-title {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--bb-rl-text-color, #0c0c0d);
	margin: 0 0 8px;
}

.bbat-auth-form-subtitle {
	margin: 0 0 24px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--bb-rl-text-secondary-color, #5c5c5c);
}

/* wp-login form card */
body.bbat-auth-page.login #login {
	width: 100%;
}

body.bbat-auth-page.login .login-heading {
	margin-bottom: 20px;
}

body.bbat-auth-page.login .login-heading h2 {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
}

body.bbat-auth-page.login #nav,
body.bbat-auth-page.login #backtoblog {
	display: none;
}

body.bbat-auth-page.login .privacy-policy-page-link {
	text-align: center;
	margin: 20px 0 0 !important;
	position: static !important;
}

/* BuddyBoss uses negative margin here — causes Terms to overlap Create account */
body.bbat-auth-page.login #login:has(.privacy-policy-page-link:not(:empty)) {
	margin-bottom: 0 !important;
}

body.bbat-auth-page.login #login:has(.privacy-policy-page-link:not(:empty)) form {
	margin-bottom: 0 !important;
}

body.bbat-auth-page.login .privacy-policy-page-link:not(:empty) {
	margin-bottom: 0 !important;
}

/* Brand primary buttons */
body.bbat-auth-page.login .login .submit .button-primary,
body.bbat-auth-page.login .login .submit input.button-primary,
body.bbat-auth-page.login .login .submit #wp-submit.button-primary,
body.bbat-auth-page.login #loginform .submit #wp-submit,
body.bbat-auth-forgot .submit .button-primary,
.bbat-auth-register .register-page-main .submit input {
	background: var(--bbat-brand-primary) !important;
	background-color: var(--bbat-brand-primary) !important;
	border-color: var(--bbat-brand-primary) !important;
	color: #fff !important;
	box-shadow: none !important;
}

body.bbat-auth-page.login .login .submit .button-primary:hover,
body.bbat-auth-page.login .login .submit .button-primary:focus,
body.bbat-auth-page.login .login .submit input.button-primary:hover,
body.bbat-auth-page.login .login .submit input.button-primary:focus,
body.bbat-auth-page.login #loginform .submit #wp-submit:hover,
body.bbat-auth-page.login #loginform .submit #wp-submit:focus,
body.bbat-auth-forgot .submit .button-primary:hover,
body.bbat-auth-forgot .submit .button-primary:focus,
.bbat-auth-register .register-page-main .submit input:hover,
.bbat-auth-register .register-page-main .submit input:focus-within {
	background: var(--bbat-brand-primary-hover) !important;
	background-color: var(--bbat-brand-primary-hover) !important;
	border-color: var(--bbat-brand-primary-hover) !important;
	color: #fff !important;
}

/* Register page content area */
.bbat-auth-register .register-page-main {
	margin: 0;
}

.bbat-auth-register .register-page-main .register-page-logo,
.bbat-auth-register .register-page-main > h1:not(.bbat-auth-form-title) {
	display: none;
}

.bbat-auth-register #register-page {
	margin: 0;
}

.bbat-auth-register .signup-form .layout-wrap {
	margin-top: 0;
}

/* Facebook-style field rows on register */
.bbat-auth-register #profile-details-section {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--bb-rl-space-200, 16px);
}

.bbat-auth-register #profile-details-section .editfield.bbat-field-id-5,
.bbat-auth-register #profile-details-section .editfield:not(.bbat-field-id-1):not(.bbat-field-id-3):not(.bbat-field-country):not(.bbat-field-city) {
	grid-column: 1 / -1;
}

.bbat-auth-register #basic-details-section .bb-signup-field {
	margin-bottom: var(--bb-rl-space-200, 16px);
}

/* Terms / Privacy links on register */
.bbat-auth-register .register-page-main .register-privacy-info a,
.bbat-auth-register .register-page-main .checkbox-options label a,
.bbat-auth-register .register-page-main a.popup-modal-register {
	color: var(--bbat-brand-primary, #ef5d33);
	font-weight: 600;
	text-decoration: none;
}

.bbat-auth-register .register-page-main .register-privacy-info a:hover,
.bbat-auth-register .register-page-main .checkbox-options label a:hover,
.bbat-auth-register .register-page-main a.popup-modal-register:hover {
	color: var(--bbat-brand-primary-hover, #d94b25);
	text-decoration: underline;
}

.bbat-auth-register .register-page-main .submit {
	margin-top: 15px;
}

/* Footer links — sits below #login (after Terms) */
.bbat-auth-footer {
	margin-top: 20px;
	text-align: center;
	clear: both;
}

.bbat-auth-footer-text {
	margin: 0;
	font-size: 14px;
	color: var(--bb-rl-text-secondary-color, #5c5c5c);
}

.bbat-auth-footer-text a {
	color: var(--bbat-brand-primary, #ef5d33);
	font-weight: 600;
	text-decoration: none;
}

.bbat-auth-footer-text a:hover {
	color: var(--bbat-brand-primary-hover, #d94b25);
	text-decoration: underline;
}

.bbat-auth-footer-divider {
	height: 1px;
	background: var(--bb-rl-border-secondary-color, #e7e7e9);
	margin: 20px 0;
}

.bbat-auth-footer-register {
	margin: 0;
}

.bbat-auth-create-account {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: var(--bb-rl-radius-md, 8px);
	border: 1px solid var(--bbat-brand-primary, #ef5d33);
	color: var(--bbat-brand-primary, #ef5d33);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	background: transparent;
	width: 100%;
	box-sizing: border-box;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bbat-auth-create-account:hover,
.bbat-auth-create-account:focus {
	background: rgba(239, 93, 51, 0.08);
	border-color: var(--bbat-brand-primary-hover, #d94b25);
	color: var(--bbat-brand-primary-hover, #d94b25);
}

body.bbat-auth-forgot .login #lostpasswordform + p,
body.bbat-auth-forgot #login .message {
	margin-bottom: 16px;
}

/* Info / success notices — brand tint (WP core uses blue #3858e9) */
body.bbat-auth-page.login #login .message,
body.bbat-auth-page.login #login .notice,
body.bbat-auth-page.login #login .notice-info,
body.bbat-auth-page.login #login .notice.notice-info.message,
body.bbat-auth-page.login.login-action-checkemail #login .notice {
	background-color: rgba(239, 93, 51, 0.1) !important;
	border: 1px solid rgba(239, 93, 51, 0.22) !important;
	border-left: 4px solid var(--bbat-brand-primary, #ef5d33) !important;
	box-shadow: none !important;
}

body.bbat-auth-page.login #login .success {
	background-color: rgba(239, 93, 51, 0.1) !important;
	border: 1px solid rgba(239, 93, 51, 0.22) !important;
	border-left: 4px solid var(--bbat-brand-primary, #ef5d33) !important;
}

body.bbat-auth-page.login.login-action-checkemail #login .notice {
	margin-bottom: 16px !important;
}

body.bbat-auth-page.login #login .privacy-policy-page-link a {
	color: var(--bbat-brand-primary, #ef5d33);
}

body.bbat-auth-page.login #login .privacy-policy-page-link a:hover {
	color: var(--bbat-brand-primary-hover, #d94b25);
}

body.bbat-auth-page.login #loginform .input:focus,
body.bbat-auth-page.login #login .input:focus,
body.bbat-auth-page.login #lostpasswordform .input:focus,
body.bbat-auth-page.login input[type="text"]:focus,
body.bbat-auth-page.login input[type="password"]:focus {
	outline-color: var(--bbat-brand-primary, #ef5d33) !important;
	border-color: var(--bbat-brand-primary, #ef5d33) !important;
}

@media screen and (max-width: 960px) {
	.bbat-auth-shell {
		flex-direction: column;
	}

	.bbat-auth-visual {
		display: none !important;
	}

	.bbat-auth-panel {
		flex: 1;
		min-height: 100vh;
		padding: 24px 20px 40px;
	}

	.bbat-auth-register #profile-details-section {
		grid-template-columns: 1fr;
	}

	.bbat-auth-register #profile-details-section .editfield {
		grid-column: 1 / -1;
	}
}

@media screen and (max-width: 480px) {
	body.bbat-auth-page.login #login,
	body.bbat-auth-page.bb-rl-register .register-page-main {
		margin: 0;
	}
}
