/* Rental-S custom auth pages — split-screen login/register layout. */

.rsauth-body {
	margin: 0;
	min-height: 100vh;
	background: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1e3236;
}

.rsauth-wrap {
	display: flex;
	min-height: 100vh;
}

/* ---- Left: form panel ---- */

.rsauth-panel-form {
	flex: 1 1 480px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 48px 56px 24px;
	box-sizing: border-box;
}

.rsauth-form-inner {
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
}

.rsauth-logo {
	display: inline-block;
	margin-bottom: 32px;
	text-decoration: none;
}

.rsauth-logo-img {
	max-height: 56px;
	width: auto;
	display: block;
}

.rsauth-logo-text {
	font-size: 22px;
	font-weight: 700;
	color: #1e3236;
}

.rsauth-form-inner h1 {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 12px;
	color: #1e3236;
}

.rsauth-subtext {
	font-size: 14px;
	line-height: 1.6;
	color: #6b7680;
	margin: 0 0 28px;
}

.rsauth-error {
	background: #fdecea;
	color: #a33;
	border: 1px solid #f3c6c2;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 20px;
}

.rsauth-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #1e3236;
	margin-bottom: 6px;
}

.rsauth-form input[type="text"],
.rsauth-form input[type="email"],
.rsauth-form input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	margin-bottom: 18px;
	border: 1px solid #e2e8ee;
	border-radius: 10px;
	background: #f7fafc;
	font-size: 14px;
	color: #1e3236;
}

.rsauth-form input[type="text"]:focus,
.rsauth-form input[type="email"]:focus,
.rsauth-form input[type="password"]:focus {
	outline: none;
	border-color: var( --motors-base-color, #f0c540 );
	background: #fff;
}

.rsauth-form input::placeholder {
	color: #a7b0b8;
}

/* Honeypot: hidden from real visitors, present for bots. */
.rsauth-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rsauth-forgot {
	display: block;
	text-align: right;
	font-size: 13px;
	color: var( --motors-base-color, #b3860f );
	text-decoration: none;
	margin: -10px 0 20px;
}

.rsauth-forgot:hover {
	text-decoration: underline;
}

.cf-turnstile {
	margin: 0 0 20px;
}

.rsauth-submit {
	display: block;
	width: 100%;
	padding: 13px 16px;
	background: #1e3236;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.rsauth-submit:hover {
	background: #14262a;
}

.rsauth-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 24px 0;
	color: #9aa4ac;
	font-size: 12px;
}

.rsauth-divider::before,
.rsauth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e2e8ee;
}

.rsauth-social {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 11px 16px;
	margin-bottom: 12px;
	background: #f7fafc;
	border: 1px solid #e2e8ee;
	border-radius: 10px;
	font-size: 14px;
	color: #1e3236;
	cursor: not-allowed;
	opacity: 0.7;
}

.rsauth-social svg {
	width: 18px;
	height: 18px;
	flex: none;
}

.rsauth-switch {
	text-align: center;
	font-size: 14px;
	color: #6b7680;
	margin-top: 24px;
}

.rsauth-switch a {
	color: var( --motors-base-color, #b3860f );
	text-decoration: none;
	font-weight: 600;
}

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

.rsauth-footer {
	text-align: center;
	font-size: 12px;
	color: #b7bfc6;
	margin: 32px 0 0;
}

/* ---- Right: image panel ---- */

.rsauth-panel-image {
	flex: 1 1 45%;
	margin: 16px 16px 16px 0;
	border-radius: 24px;
	background-color: #e7eaee;
	background-image:
		radial-gradient( circle at 15% 20%, rgba( 240, 197, 64, 0.18 ), transparent 45% ),
		repeating-linear-gradient( 115deg, rgba( 30, 50, 54, 0.06 ) 0, rgba( 30, 50, 54, 0.06 ) 2px, transparent 2px, transparent 26px ),
		linear-gradient( 160deg, #eef1f4 0%, #dde2e8 60%, #cfd6dd 100% );
	background-size: cover;
	background-position: center;
}

/* ---- Responsive ---- */

@media ( max-width: 900px ) {
	.rsauth-panel-image {
		display: none;
	}

	.rsauth-panel-form {
		padding: 40px 24px 24px;
	}
}

/* ---- Dark mode (viewer preference) ---- */

@media ( prefers-color-scheme: dark ) {
	.rsauth-body {
		background: #12181a;
		color: #f2f4f5;
	}

	.rsauth-logo-text,
	.rsauth-form-inner h1 {
		color: #f2f4f5;
	}

	.rsauth-subtext,
	.rsauth-switch {
		color: #98a3ab;
	}

	.rsauth-form label {
		color: #dfe4e7;
	}

	.rsauth-form input[type="text"],
	.rsauth-form input[type="email"],
	.rsauth-form input[type="password"] {
		background: #1b2427;
		border-color: #2a3538;
		color: #f2f4f5;
	}

	.rsauth-form input[type="text"]:focus,
	.rsauth-form input[type="email"]:focus,
	.rsauth-form input[type="password"]:focus {
		background: #1b2427;
	}

	.rsauth-social {
		background: #1b2427;
		border-color: #2a3538;
		color: #f2f4f5;
	}

	.rsauth-submit {
		background: var( --motors-base-color, #f0c540 );
		color: #1e3236;
	}

	.rsauth-submit:hover {
		opacity: 0.9;
	}

	.rsauth-footer {
		color: #52605f;
	}
}
