/*
 * ShereheHub sign-in and registration pages: photo on the left, form on the right.
 */
.auth-split {
	--auth-primary: #3D5EE1;
	--auth-ink: #202C4B;
	--auth-gold: #F4C56A;
	display: flex;
	min-height: 100vh;
	background: #fff;
}

/* ---------- Photo side ---------- */
.auth-visual {
	position: relative;
	flex: 1 1 56%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 48px 56px;
	overflow: hidden;
	color: #fff;
	background: #14110f;
	isolation: isolate;
}

.auth-visual-photo {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% 42%;
	animation: auth-drift 28s ease-in-out infinite alternate;
}

/* Darkens the photo where the text sits and keeps the sunlight in the top right. */
.auth-visual::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(13, 14, 28, 0.45) 0%, rgba(13, 14, 28, 0) 24%),
		linear-gradient(0deg, rgba(13, 14, 28, 0.9) 0%, rgba(13, 14, 28, 0.5) 36%, rgba(13, 14, 28, 0) 62%),
		linear-gradient(90deg, rgba(24, 28, 70, 0.3) 0%, rgba(24, 28, 70, 0) 55%);
}

.auth-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.2px;
}

.auth-brand:hover {
	color: #fff;
}

.auth-brand img {
	width: 40px;
	height: 40px;
}

.auth-brand span span {
	color: var(--auth-gold);
}

.auth-pitch {
	max-width: 560px;
	animation: auth-rise 0.9s ease-out both;
}

.auth-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	color: var(--auth-gold);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2.4px;
	text-transform: uppercase;
}

.auth-eyebrow::before {
	content: "";
	width: 36px;
	height: 1px;
	background: var(--auth-gold);
}

.auth-pitch h1 {
	margin-bottom: 18px;
	color: #fff;
	font-family: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
	font-size: clamp(34px, 3.6vw, 54px);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.5px;
}

.auth-pitch h1 em {
	color: var(--auth-gold);
	font-style: italic;
}

.auth-pitch p {
	max-width: 480px;
	margin-bottom: 28px;
	color: rgba(255, 255, 255, 0.84);
	font-size: 16px;
	line-height: 1.65;
}

.auth-points {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.auth-points li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #fff;
	font-size: 14px;
}

.auth-points i {
	color: var(--auth-gold);
	font-size: 17px;
}

/* ---------- Form side ---------- */
.auth-panel {
	flex: 1 1 44%;
	display: flex;
	flex-direction: column;
	max-width: 640px;
	min-height: 100vh;
	padding: 28px 40px;
	background: #fff;
}

.auth-panel-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.auth-panel-top .auth-logo {
	visibility: hidden;
}

.auth-panel-body {
	width: 100%;
	max-width: 400px;
	margin: auto;
	padding: 32px 0;
	animation: auth-rise 0.7s ease-out both;
}

.auth-panel-body h2 {
	margin-bottom: 8px;
	color: var(--auth-ink);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.3px;
}

.auth-panel-body .auth-lead {
	margin-bottom: 28px;
	color: #6A7287;
	font-size: 15px;
}

.auth-panel-body .form-label {
	color: var(--auth-ink);
	font-weight: 500;
}

.auth-panel-body .form-control {
	height: 48px;
	border-radius: 10px;
}

.auth-panel-body .form-control:focus {
	border-color: var(--auth-primary);
	box-shadow: 0 0 0 4px rgba(61, 94, 225, 0.14);
}

.auth-panel-body .btn-primary {
	height: 50px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	box-shadow: 0 10px 24px -10px rgba(61, 94, 225, 0.75);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-panel-body .btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px -10px rgba(61, 94, 225, 0.85);
}

.auth-switch {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #EEF0F5;
	text-align: center;
	color: #6A7287;
}

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

.auth-footer {
	color: #9AA1B2;
	font-size: 13px;
	text-align: center;
}

.auth-split .language-switch .btn {
	min-width: 42px;
	font-weight: 600;
}

/* ---------- Tablets and phones: the photo becomes a banner ---------- */
@media (max-width: 991.98px) {
	.auth-split {
		flex-direction: column;
	}

	.auth-visual {
		flex: 0 0 auto;
		min-height: 250px;
		padding: 24px;
	}

	.auth-pitch h1 {
		margin-bottom: 0;
		font-size: 30px;
	}

	.auth-pitch p,
	.auth-points,
	.auth-eyebrow {
		display: none;
	}

	.auth-panel {
		flex: 1 1 auto;
		max-width: none;
		min-height: 0;
		padding: 20px 24px 24px;
	}

	.auth-panel-top {
		justify-content: flex-end;
	}

	.auth-panel-top .auth-logo {
		display: none;
	}

	.auth-panel-body {
		padding: 20px 0 28px;
	}
}

@keyframes auth-drift {
	from { transform: scale(1.02); }
	to { transform: scale(1.12) translate(-1.5%, -1%); }
}

@keyframes auth-rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.auth-visual-photo,
	.auth-pitch,
	.auth-panel-body {
		animation: none;
	}
}
