/* ============================================================
   Auth layout — login / register screens
   ============================================================ */

.auth-body {
	margin: 0;
	padding: 0;
	min-height: 100vh;
}

.auth-shell {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	min-height: 100vh;
}

/* ---- Form side ---- */

.auth-form-side {
	background: #20233c;
	padding: 40px 60px;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.auth-form-side::before {
	content: '';
	position: absolute;
	bottom: -60px;
	right: -60px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(238,95,43,.3) 0%, transparent 70%);
	pointer-events: none;
}

.auth-form-side::after {
	content: '';
	position: absolute;
	top: -60px;
	left: -60px;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	border: 14px solid rgba(244,166,58,.12);
	pointer-events: none;
}

.auth-form-inner {
	max-width: 390px;
	width: 100%;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

/* ---- Logo ---- */

.auth-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	margin-bottom: 28px;
}

.auth-logo-tile {
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: linear-gradient(150deg, #ff8548, #e6501b);
	box-shadow: 0 6px 16px rgba(238,95,43,.35);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.auth-wordmark {
	font-size: 23px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.5px;
}

.auth-wordmark-num {
	color: #f4a63a;
}

/* ---- Heading ---- */

.auth-heading {
	font-size: 29px;
	font-weight: 800;
	letter-spacing: -1px;
	color: #fff;
	margin: 0 0 6px;
}

.auth-subheading {
	font-size: 14px;
	color: #aebbd6;
	margin: 0 0 22px;
}

/* ---- Google button ---- */

.auth-google-btn {
	width: 100%;
	background: #fff;
	border: none;
	border-radius: 11px;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 700;
	color: #3a3f52;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	cursor: pointer;
	font-family: inherit;
}

.auth-google-btn:hover {
	filter: brightness(.97);
}

/* ---- Divider ---- */

.auth-divider {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 10px;
	margin: 15px 0;
	color: #8b93ad;
	font-size: 12.5px;
	font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
	content: '';
	height: 1px;
	background: rgba(255,255,255,.14);
}

/* ---- Form fields ---- */

.auth-form-inner .input-container {
	display: flex;
	flex-direction: column;
}

.auth-form-inner .input-container + .input-container {
	margin-top: 11px;
}

.auth-form-inner .input-container br {
	display: none;
}

.auth-form-inner .input-title {
	font-size: 12.5px;
	font-weight: 700;
	color: #c3c9dc;
	margin-bottom: 5px;
}

.auth-form-inner .input-container-mandatory .input-title::after {
	content: " *";
	color: #f0506e;
}

.auth-form-inner .textbox {
	background: rgba(255,255,255,.07);
	border: 1px solid rgba(255,255,255,.16);
	border-radius: 11px;
	padding: 11px 14px;
	font-size: 14px;
	color: #fff;
	outline: none;
	box-sizing: border-box;
	font-family: inherit;
	width: 100%;
}

.auth-form-inner .textbox:focus {
	border-color: #f5883b;
	background: rgba(255,255,255,.11);
}

.auth-form-inner .textbox::placeholder {
	color: rgba(255,255,255,.28);
}

.auth-form-inner .password-input-container > .textbox {
	padding-inline-end: 40px;
}

.auth-form-inner .password-toggle-btn {
	color: rgba(255, 255, 255, 0.4);
}

.auth-form-inner .password-toggle-btn:hover {
	color: rgba(255, 255, 255, 0.85);
}

/* ---- Submit button ---- */

.auth-submit-btn {
	width: 100%;
	border: none;
	border-radius: 11px;
	padding: 13px;
	background: linear-gradient(120deg, #f4a63a, #ee5f2b);
	color: #fff;
	font-size: 15.5px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 12px 26px rgba(238,95,43,.4);
	font-family: inherit;
	margin-top: 16px;
}

.auth-submit-btn:hover {
	filter: brightness(1.05);
}

a.auth-submit-btn {
	display: block;
	text-align: center;
	text-decoration: none;
}

/* ---- Switch row ---- */

.auth-switch {
	text-align: center;
	margin-top: 14px;
	font-size: 13px;
	font-weight: 600;
	color: #aebbd6;
}

.auth-switch a {
	font-weight: 800;
	color: #f5883b;
	text-decoration: underline;
}

/* ---- Footer ---- */

.auth-footer {
	border-top: 1px solid rgba(255,255,255,.1);
	margin-top: 16px;
	padding-top: 14px;
	font-size: 12px;
	font-weight: 600;
	color: #8b93ad;
	display: flex;
	gap: 14px;
	justify-content: center;
	align-items: center;
}

.auth-footer a {
	color: #8b93ad;
	text-decoration: none;
}

.auth-footer a:hover {
	color: #f5883b;
}

.auth-footer-dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(255,255,255,.2);
	flex-shrink: 0;
}

.auth-required {
	color: #f0506e;
}

.auth-terms {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	margin-top: 11px;
	font-size: 12.5px;
	line-height: 1.55;
	font-weight: 600;
	color: #aebbd6;
}

.auth-terms input[type="checkbox"] {
	width: 18px;
	height: 18px;
	min-width: 18px;
	border-radius: 5px;
	border: 2px solid rgba(255,255,255,.28);
	margin-top: 1px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	background: transparent;
}

.auth-terms input[type="checkbox"]:checked {
	background: #f5883b;
	border-color: #f5883b;
}

.auth-terms a {
	color: #f5883b;
	font-weight: 700;
	text-decoration: underline;
}

.auth-reassurance {
	text-align: center;
	margin-top: 9px;
	font-size: 12px;
	color: #8b93ad;
}

/* ---- Brand side ---- */

.auth-brand-side {
	background: #f1ebe3;
	padding: 34px 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	position: relative;
	overflow: hidden;
}

.auth-brand-blob {
	position: absolute;
	top: -30px;
	left: -30px;
	width: 210px;
	height: 220px;
	background: linear-gradient(155deg, #ffc24a, #f5883b);
	border-radius: 60% 40% 65% 35% / 50% 55% 45% 60%;
	opacity: .5;
	pointer-events: none;
}

.auth-brand-ring {
	position: absolute;
	bottom: -40px;
	right: -40px;
	width: 180px;
	height: 180px;
	border: 18px solid rgba(238,95,43,.16);
	border-radius: 50%;
	pointer-events: none;
}

.auth-brand-monster {
	max-width: 280px;
	width: 100%;
	filter: drop-shadow(0 22px 32px rgba(120,90,50,.3));
	position: relative;
	z-index: 1;
}

.auth-brand-headline {
	text-align: center;
	max-width: 400px;
	position: relative;
	z-index: 1;
}

.auth-brand-headline h2 {
	font-size: 23px;
	font-weight: 800;
	letter-spacing: -.7px;
	color: #22293f;
	margin: 0 0 6px;
}

.auth-brand-headline p {
	font-size: 13.5px;
	font-weight: 600;
	color: #8b857c;
	margin: 0;
}

.auth-caps {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: center;
	position: relative;
	z-index: 1;
}

.auth-cap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.auth-cap-icon {
	width: 36px;
	height: 36px;
	background: #fdece5;
	border-radius: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.auth-cap-label {
	font-size: 10.5px;
	font-weight: 700;
	color: #8b857c;
}

.auth-stats {
	border-top: 1px solid #e4dccf;
	padding-top: 18px;
	display: flex;
	gap: 18px;
	align-items: flex-start;
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 400px;
	justify-content: center;
}

.auth-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.auth-stat-num {
	font-size: 24px;
	font-weight: 800;
	color: #ee5f2b;
	line-height: 1;
}

.auth-stat-label {
	font-size: 12.5px;
	font-weight: 600;
	color: #8b857c;
	text-align: center;
}

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

@media (max-width: 900px) {
	.auth-shell {
		grid-template-columns: 1fr;
	}
	.auth-brand-side {
		display: none;
	}
	.auth-form-side {
		padding: 34px 24px;
	}
}

/* ---- RTL overrides ---- */

[dir="rtl"] .auth-logo {
	flex-direction: row-reverse;
}

[dir="rtl"] .auth-divider {
	direction: rtl;
}

[dir="rtl"] .auth-footer {
	flex-direction: row-reverse;
}

/* ---- Google pre-fill block ---- */

.auth-google-prefill {
	background: rgba(255,255,255,.05);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 11px;
	padding: 12px 14px;
	margin-bottom: 11px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.auth-prefill-row {
	display: flex;
	gap: 8px;
	font-size: 13px;
}

.auth-prefill-label {
	font-weight: 700;
	color: #c3c9dc;
	min-width: 46px;
}

.auth-prefill-value {
	color: #fff;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---- Validation errors ---- */

.auth-form-inner .input-container-validation-error {
	position: static;
	background: none;
	color: #ff4d6a;
	font-size: 11.5px;
	font-weight: 600;
	padding: 5px 3px 0;
	min-width: 0;
	width: auto;
	border-radius: 0;
}

.auth-form-inner .input-container-validation-error-displayed > .textbox {
	border-color: #ff4d6a;
	background: rgba(255,77,106,.07);
}

/* ---- OTP input ---- */

#OtpCode .textbox {
	font-size: 24px;
	letter-spacing: 10px;
	text-align: center;
	padding-left: 18px;
}

.auth-otp-sep {
	color: rgba(255,255,255,.2);
	margin: 0 4px;
}
