/**
 * Login / register UX — focused layout, mobile-friendly fields, compact chrome.
 * Loads after mca-public-light.css.
 */

/* ---- Minimal auth header -------------------------------------------------- */
.mca-auth-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--pl-line);
}

.mca-auth-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 3.5rem;
	padding-top: 0.35rem;
	padding-bottom: 0.35rem;
}

.mca-auth-header__brand {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.mca-auth-header__brand img {
	height: 40px;
	width: auto;
	max-width: 168px;
	object-fit: contain;
}

.mca-auth-header__alt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: 0.45rem 0.95rem;
	border-radius: 999px;
	border: 1px solid var(--pl-line);
	background: #fff;
	color: var(--navy);
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.mca-auth-header__alt:hover {
	border-color: var(--blue);
	color: var(--blue);
	background: rgba(27, 117, 187, 0.06);
}

/* ---- Compact auth footer -------------------------------------------------- */
.mca-auth-footer {
	flex-shrink: 0;
	border-top: 1px solid var(--pl-line);
	background: rgba(255, 255, 255, 0.75);
}

.mca-auth-footer__inner {
	padding: 1.1rem 1.25rem 1.25rem;
	text-align: center;
}

.mca-auth-footer__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 1rem;
	margin-bottom: 0.55rem;
}

.mca-auth-footer__nav a {
	color: var(--pl-muted);
	font-size: 0.8125rem;
	font-weight: 600;
}

.mca-auth-footer__nav a:hover {
	color: var(--blue);
	text-decoration: underline;
}

.mca-auth-footer__copy {
	margin: 0;
	font-size: 0.75rem;
	color: #8a9bae;
}

/* ---- Auth page shell ------------------------------------------------------ */
.mca-public-page--auth .mca-auth {
	align-items: center;
	padding: clamp(1.25rem, 4vw, 2.5rem) 1rem clamp(1.5rem, 5vw, 2.75rem);
}

.mca-public-page--auth .mca-auth__card {
	max-width: 440px;
	padding: clamp(1.35rem, 3.5vw, 2rem);
}

.mca-public-page--auth .mca-auth__card--wide {
	max-width: 520px;
}

.mca-public-page--auth .mca-auth__logo {
	height: 52px;
}

.mca-public-page--auth .mca-auth__top {
	margin-bottom: 1rem;
}

.mca-public-page--auth .mca-auth__sub {
	font-size: 0.9375rem;
	line-height: 1.5;
	margin-bottom: 1.15rem;
}

.mca-public-page--auth .mca-auth__card h1 {
	font-size: clamp(1.35rem, 4.5vw, 1.75rem);
}

/* ---- Form sections (register) --------------------------------------------- */
.mca-auth__section {
	margin-bottom: 0.35rem;
}

.mca-auth__section + .mca-auth__section {
	margin-top: 1.15rem;
	padding-top: 1.15rem;
	border-top: 1px dashed var(--pl-line);
}

.mca-auth__section-title {
	margin: 0 0 0.85rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pl-muted);
}

.mca-auth__grid {
	display: grid;
	gap: 0;
}

.mca-auth__grid--2 {
	grid-template-columns: 1fr 1fr;
	gap: 0 0.75rem;
}

.mca-auth__grid--2 .form-group {
	margin-bottom: 1rem;
}

/* ---- Password row with forgot link ---------------------------------------- */
.mca-auth__label-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.65rem;
	margin-bottom: 0.35rem;
}

.mca-auth__label-row .mca-auth-label {
	margin-bottom: 0;
	flex: 1 1 auto;
	min-width: 0;
}

.mca-auth__inline-link {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--blue);
	white-space: nowrap;
	flex-shrink: 0;
}

.mca-auth__inline-link:hover {
	text-decoration: underline;
}

/* ---- Remember me ---------------------------------------------------------- */
.mca-auth__remember-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.25rem;
}

.mca-auth-remember {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--pl-text);
	user-select: none;
}

.mca-auth-remember input[type="checkbox"] {
	width: 1.05rem;
	height: 1.05rem;
	margin: 0;
	accent-color: var(--blue);
	flex-shrink: 0;
}

/* ---- Mobile phone (+91) --------------------------------------------------- */
.mca-auth-phone {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--pl-line);
	border-radius: 10px;
	background: var(--pl-field);
	overflow: hidden;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.mca-auth-phone:focus-within {
	background: #fff;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(27, 117, 187, 0.15);
}

.mca-auth-phone__prefix {
	display: inline-flex;
	align-items: center;
	padding: 0 0.75rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--navy);
	background: rgba(27, 117, 187, 0.06);
	border-right: 1px solid var(--pl-line);
	flex-shrink: 0;
}

.mca-auth-phone .form-control {
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	padding-left: 0.75rem;
}

.mca-auth-phone .form-control:focus {
	box-shadow: none !important;
}

/* ---- Trust chips under subtitle ------------------------------------------- */
.mca-auth__trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem 0.55rem;
	margin: -0.65rem 0 1.1rem;
	padding: 0;
	list-style: none;
}

.mca-auth__trust li {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--pl-muted);
	background: var(--pl-field);
	border: 1px solid var(--pl-line);
	border-radius: 999px;
	padding: 0.28rem 0.55rem;
}

.mca-auth__trust li::before {
	content: "✓";
	color: var(--green);
	font-weight: 800;
	font-size: 0.65rem;
}

/* ---- Submit button labels ------------------------------------------------- */
.mca-auth-btn-label--mobile {
	display: none;
}

/* ---- Note callout --------------------------------------------------------- */
.mca-auth__note {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	text-align: left;
	padding: 0.75rem 0.85rem;
	border-radius: 10px;
	background: rgba(27, 117, 187, 0.06);
	border: 1px solid rgba(27, 117, 187, 0.14);
}

.mca-auth__note .fa {
	color: var(--blue);
	margin-top: 0.1rem;
	flex-shrink: 0;
}

.mca-auth__note strong {
	color: var(--navy);
}

/* ---- Mobile --------------------------------------------------------------- */
@media (max-width: 575.98px) {
	.mca-auth-header__brand img {
		height: 36px;
		max-width: 148px;
	}

	.mca-auth-header__alt {
		min-height: 2.35rem;
		padding: 0.4rem 0.75rem;
		font-size: 0.8125rem;
	}

	.mca-public-page--auth .mca-auth {
		padding-left: 0.85rem;
		padding-right: 0.85rem;
		align-items: flex-start;
	}

	.mca-public-page--auth .mca-auth__card,
	.mca-public-page--auth .mca-auth__card--wide {
		max-width: none;
		width: 100%;
		border-radius: 14px;
		padding: 1.15rem 1rem 1.2rem;
	}

	.mca-public-page--auth .mca-public-page .form-control {
		min-height: 2.75rem;
		font-size: 1rem;
		padding: 0.72rem 0.85rem;
	}

	.mca-auth-phone .form-control {
		min-height: 2.75rem;
	}

	.mca-auth__grid--2 {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.mca-auth__links {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
		gap: 0.65rem;
	}

	.mca-auth__links a {
		display: block;
		padding: 0.55rem 0.75rem;
		border-radius: 10px;
		background: var(--pl-field);
		border: 1px solid var(--pl-line);
	}

	.mca-auth-btn-label--desktop {
		display: none;
	}

	.mca-auth-btn-label--mobile {
		display: inline;
	}

	.mca-public-page--auth .mca-auth__card button[type="submit"],
	.mca-public-page--auth .mca-auth__card .btn-primary {
		min-height: 2.85rem;
		font-size: 1rem;
	}

	.mca-google-auth-btn {
		min-height: 2.85rem;
		font-size: 0.9375rem;
	}

	.mca-recaptcha-wrap {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

@media (min-width: 576px) {
	.mca-public-page--auth .mca-auth__remember-row .mca-auth__inline-link {
		display: none;
	}
}
