:root {
	--auth-primary: #01A2C8;
	--auth-primary-dark: #0D72A2;
	--auth-primary-light: #01CFE8;
	--auth-primary-soft: rgba(1, 162, 200, 0.12);
	--auth-accent: #FD6609;
	--auth-text: #202226;
	--auth-muted: #7A8494;
	--auth-border: #EEF1F5;
	--auth-input: #F3F5F8;
}

* { box-sizing: border-box; }

body.auth-screen {
	min-height: 100vh;
	margin: 0;
	padding: 0;
	background: #fff;
	font-family: "Poppins", "Roboto", sans-serif;
	color: var(--auth-text);
}

.auth-page {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	padding: 0;
	overflow-x: hidden;
	overflow-y: auto;
}

.auth-shell {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 430px;
	padding: 16px 16px 0;
	margin-bottom: -180px;
}

.auth-card {
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
	overflow: hidden;
}

.auth-card-header {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: -4px;
}

.auth-page-footer-wrap {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	line-height: 0;
	pointer-events: none;
	z-index: 0;
}

.auth-page-footer {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	margin: 0;
	padding: 0;
}

.auth-card-body {
	padding: 0 26px 16px;
}

.auth-logo {
	text-align: center;
	margin-bottom: 8px;
	margin-top: 0;
}

.auth-logo img {
	max-width: 200px;
	width: 200px;
	height: auto;
}

.auth-heading {
	text-align: center;
	margin-bottom: 14px;
}

.auth-heading h1 {
	font-size: 1.85rem;
	font-weight: 700;
	color: #111;
	margin: 0 0 8px;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.auth-heading h1 span {
	color: var(--auth-accent);
}

.auth-heading p {
	margin: 0 auto;
	max-width: 320px;
	color: var(--auth-muted);
	font-size: 0.84rem;
	line-height: 1.55;
	font-weight: 400;
}

.auth-tabs {
	display: flex;
	gap: 26px;
	border-bottom: 1px solid #EEF0F3;
	margin-bottom: 20px;
}

.auth-tabs a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 0 2px 12px;
	color: #A0A8B4;
	font-weight: 600;
	text-decoration: none;
	font-size: 0.95rem;
}

.auth-tabs a i { font-size: 1.15rem; }

.auth-tabs a.active {
	color: var(--auth-primary);
}

.auth-tabs a.active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 3px;
	background: var(--auth-primary);
	border-radius: 3px 3px 0 0;
}

.auth-label {
	display: block;
	font-size: 0.84rem;
	font-weight: 700;
	color: #111;
	margin-bottom: 8px;
}

.auth-field {
	position: relative;
	margin-bottom: 14px;
}

.auth-field .form-control {
	height: 48px;
	padding: 0 44px 0 44px;
	border: 0;
	border-radius: 10px;
	background: var(--auth-input);
	box-shadow: none;
	font-size: 0.88rem;
	color: #111;
}

.auth-field .form-control::placeholder {
	color: #9AA3B0;
}

.auth-field .form-control:focus {
	background: #fff;
	border: 1px solid var(--auth-primary);
	box-shadow: 0 0 0 3px var(--auth-primary-soft);
}

.auth-field .field-icon,
.auth-field .toggle-pass {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: #8B95A5;
	font-size: 1.2rem;
	line-height: 1;
}

.auth-field .field-icon {
	left: 14px;
	pointer-events: none;
}

.auth-field .toggle-pass {
	right: 12px;
	border: 0;
	background: transparent;
	padding: 0;
}

.auth-forgot {
	text-align: right;
	margin: -2px 0 16px;
}

.auth-forgot a {
	color: var(--auth-primary);
	font-size: 0.84rem;
	font-weight: 600;
	text-decoration: none;
}

.auth-submit {
	position: relative;
	width: 100%;
	height: 52px;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(90deg, var(--auth-primary-dark) 0%, var(--auth-primary) 50%, var(--auth-primary-light) 100%);
	color: #fff;
	font-weight: 500;
	font-size: 1.05rem;
	letter-spacing: 0.01em;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 48px;
}

.auth-submit i {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.4rem;
	font-weight: 300;
}

.auth-submit:hover {
	color: #fff;
	background: linear-gradient(90deg, #0a5f88 0%, var(--auth-primary-dark) 55%, var(--auth-primary) 100%);
}

.auth-submit-inactive {
	background: linear-gradient(90deg, #7ecfe0 0%, #a8e4ef 100%);
	cursor: not-allowed;
	opacity: 0.7;
}

.auth-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 18px 0 14px;
	color: #9AA3B0;
	font-size: 0.8rem;
}

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

.auth-social {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin-bottom: 6px;
}

.auth-social button {
	width: 54px;
	height: 46px;
	border-radius: 10px;
	border: 1px solid #EEF1F5;
	background: #fff;
	box-shadow: 0 4px 10px rgba(17, 24, 39, 0.06);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.auth-social button svg { width: 20px; height: 20px; display: block; }

.auth-cta {
	background: #e5f8fb;
	padding: 14px 18px;
	display: flex;
	align-items: center;
	gap: 12px;
	border-radius: 16px;
	margin-top: 12px;
}

.auth-cta-icon {
	width: 38px;
	height: 38px;
	border-radius: 0;
	background: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: visible;
}

.auth-cta-icon img {
	width: 38px;
	height: 38px;
	display: block;
}

.auth-cta p {
	margin: 0;
	font-size: 0.68rem;
	color: #4B5563;
	line-height: 1.35;
	flex: 1;
}

.auth-cta p strong {
	display: block;
	color: #111;
	font-weight: 700;
	font-size: 0.7rem;
}

.auth-cta a {
	color: var(--auth-primary);
	font-weight: 700;
	font-size: 0.75rem;
	text-decoration: none;
	white-space: nowrap;
}

.auth-secure {
	position: relative;
	z-index: 1;
	margin-top: 10px;
	margin-bottom: -12px;
	text-align: center;
	color: var(--auth-muted);
	font-size: 0.78rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.auth-secure img {
	width: 26px;
	height: 26px;
	display: block;
	flex-shrink: 0;
}

.invalid-feedback { display: block; }

@media (min-width: 768px) {
	.auth-shell { max-width: 440px; }
	.auth-heading h1 { font-size: 2rem; }
	.auth-card-body { padding: 0 30px 16px; }
}

@media (max-width: 767.98px) {
	.auth-page {
		justify-content: flex-end;
		padding-top: 0;
	}

	.auth-shell {
		flex: none;
		margin-bottom: -80px;
		padding: 12px 16px 0;
	}
	.auth-shell-kyc {
		margin-bottom: -80px;
	}

	.auth-card-header {
		width: 100%;
		height: 72px;
		object-fit: cover;
		object-position: top center;
	}

	.auth-heading h1 { font-size: 1.55rem; }
	.auth-card-body { padding: 0 18px 14px; }
	.auth-logo img { max-width: 180px; width: 180px; }
	.auth-cta { flex-wrap: wrap; }

	.auth-secure {
		margin-top: 10px;
		margin-bottom: -6px;
	}

	.auth-page-footer-wrap {
		margin-top: 0;
		width: 100%;
	}

	.auth-page-footer {
		width: 100%;
		height: 150px;
		object-fit: cover;
		object-position: center bottom;
	}

	.otp-boxes {
		gap: 8px;
	}

	.otp-input {
		width: 42px;
		height: 48px;
		font-size: 1.2rem;
	}
}

.otp-boxes {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 8px 0 18px;
}

.otp-input {
	width: 48px;
	height: 52px;
	border: 1px solid #b3eaf3;
	border-radius: 12px;
	text-align: center;
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--auth-primary);
	background: #fff;
}

.otp-input:focus {
	outline: none;
	border-color: var(--auth-primary);
	box-shadow: 0 0 0 3px var(--auth-primary-soft);
}

.otp-resend {
	margin-top: 18px;
	text-align: center;
	color: var(--auth-muted);
	font-size: 0.85rem;
}

.otp-resend form { display: inline; }

.otp-resend button {
	border: 0;
	background: none;
	color: var(--auth-primary);
	font-weight: 600;
	padding: 0;
}

.otp-resend button:disabled {
	color: var(--auth-muted);
}

.otp-help {
	margin-top: 18px;
	margin-bottom: 8px;
	text-align: center;
	color: var(--auth-muted);
	font-size: 0.82rem;
}

.otp-help i {
	color: var(--auth-primary);
	vertical-align: middle;
	margin-right: 4px;
}

.otp-help a {
	color: var(--auth-primary);
	font-weight: 700;
	text-decoration: none;
}

.otp-back {
	margin-top: 20px;
	text-align: center;
}

.otp-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.85rem;
	color: var(--auth-muted);
	text-decoration: none;
	transition: color 0.2s;
}

.otp-back-btn:hover {
	color: var(--auth-primary);
	text-decoration: none;
}

.otp-back-btn svg {
	flex-shrink: 0;
}

.auth-heading p strong {
	color: #111;
}

.otp-secure-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 14px 0 16px;
	color: var(--auth-muted);
	font-size: 0.78rem;
	line-height: 1.4;
}

.otp-secure-note img {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	display: block;
}

@keyframes authFadeUp {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.auth-card,
.auth-cta,
.auth-secure,
.auth-page-footer-wrap {
	opacity: 0;
	animation: authFadeUp 480ms ease-out forwards;
	will-change: opacity, transform;
}

.auth-card {
	animation-delay: 80ms;
}

.auth-cta {
	animation-delay: 180ms;
}

.auth-secure {
	animation-delay: 240ms;
}

.auth-page-footer-wrap {
	animation-delay: 300ms;
}

.kyc-steps { display:flex; flex-direction:column; gap:8px; margin: 0 0 18px; }
.kyc-step { display:flex; gap:10px; align-items:flex-start; font-size:12px; color:#6b7280; }
.kyc-step b { width:22px; height:22px; border-radius:50%; background:#e5f8fb; color:var(--auth-primary); display:flex; align-items:center; justify-content:center; font-size:11px; flex-shrink:0; }
.kyc-step.active { color:#111827; font-weight:600; }
.kyc-step.active b { background:var(--auth-primary); color:#fff; }
.kyc-step.done b { background:#22c55e; color:#fff; }
.kyc-box { background:#f8fafc; border:1px solid #e5e7eb; border-radius:12px; padding:14px; margin-bottom:14px; font-size:13px; color:#374151; }
.kyc-docs { display:flex; flex-direction:column; gap:10px; margin-bottom:16px; }
.kyc-docs label { display:flex; gap:10px; align-items:center; border:1px solid #e5e7eb; border-radius:12px; padding:12px; cursor:pointer; }
.kyc-docs input { width:18px; height:18px; }
.otp-boxes { display:flex; gap:8px; justify-content:center; margin: 8px 0 14px; }
.otp-input { width:42px; height:48px; text-align:center; font-size:20px; border:1px solid #d1d5db; border-radius:10px; }

.kyc-choice { display:flex; flex-direction:column; gap:12px; }
.kyc-choice-link {
	display:block;
	text-align:center;
	font-size:14px;
	font-weight:600;
	color:var(--auth-primary);
	padding:12px;
	border:1px solid #b3eaf3;
	border-radius:12px;
	text-decoration:none;
	background:#e5f8fb;
}
.kyc-choice-link:hover { color:var(--auth-primary-dark); text-decoration:none; background:#d6f4f8; }

body.auth-kyc-manual .auth-page {
	justify-content:flex-start;
	padding-top:18px;
}
.auth-shell-kyc {
	max-width:640px;
	margin-bottom:-180px;
}
body.auth-kyc-manual .auth-secure {
	margin-top:6px;
	margin-bottom:-18px;
}
body.auth-kyc-manual .otp-back {
	margin-top:10px;
	margin-bottom:0;
}
.kyc-manual-alert {
	background:#fef2f2;
	border:1px solid #fecaca;
	color:#b91c1c;
	border-radius:12px;
	padding:10px 12px;
	font-size:13px;
	margin-bottom:14px;
}
.kyc-manual-block {
	border:1px solid #eef1f5;
	border-radius:16px;
	padding:16px;
	margin-bottom:16px;
	background:#fff;
}
.kyc-manual-done {
	background:#f0fdf4;
	border-color:#bbf7d0;
}
.kyc-status-pills {
	display:flex;
	flex-wrap:wrap;
	gap:8px;
	margin-bottom:14px;
}
.kyc-status-pill {
	font-size:12px;
	font-weight:600;
	border-radius:999px;
	padding:6px 10px;
}
.kyc-status-pill.is-done {
	background:#dcfce7;
	color:#166534;
}
.kyc-status-pill.is-wait {
	background:#f3f4f6;
	color:#4b5563;
}
.kyc-manual-block .auth-submit {
	margin-top:14px;
}
.kyc-manual-head {
	display:flex;
	gap:12px;
	align-items:flex-start;
	margin-bottom:14px;
}
.kyc-manual-head h2 {
	margin:0;
	font-size:16px;
	font-weight:700;
}
.kyc-manual-head p {
	margin:4px 0 0;
	font-size:12px;
	color:var(--auth-muted);
}
.kyc-manual-badge {
	width:36px;
	height:36px;
	border-radius:10px;
	background:#e5f8fb;
	color:var(--auth-primary);
	display:flex;
	align-items:center;
	justify-content:center;
	flex-shrink:0;
	font-size:18px;
}
.kyc-manual-badge-aadhaar {
	font-size:10px;
	font-weight:800;
	letter-spacing:.4px;
}
.kyc-manual-label {
	display:block;
	font-size:13px;
	font-weight:600;
	margin:12px 0 6px;
}
.kyc-upload-row {
	display:grid;
	grid-template-columns:1fr;
	gap:10px;
	align-items:stretch;
}
.kyc-upload-row-aadhaar {
	grid-template-columns:1fr 1fr;
}
.kyc-upload-box {
	position:relative;
	border:1.5px dashed #b3eaf3;
	border-radius:14px;
	background:#e5f8fb;
	min-height:128px;
	display:flex;
	align-items:center;
	justify-content:center;
	text-align:center;
	padding:0;
	cursor:pointer;
	color:#4b5563;
	overflow:hidden;
}
.kyc-upload-box.has-file .kyc-upload-inner {
	padding:0;
	min-height:128px;
}
.kyc-upload-box.is-missing {
	border-color:#dc2626;
	background:#fef2f2;
}
.kyc-upload-box input {
	position:absolute;
	width:1px;
	height:1px;
	padding:0;
	margin:-1px;
	overflow:hidden;
	clip:rect(0, 0, 0, 0);
	white-space:nowrap;
	border:0;
}
.kyc-upload-inner {
	display:flex;
	flex-direction:column;
	align-items:center;
	justify-content:center;
	width:100%;
	min-height:128px;
	padding:12px;
}
.kyc-upload-box .kyc-upload-inner > i { font-size:26px; color:var(--auth-primary); }
.kyc-upload-box strong { font-size:13px; margin-top:4px; }
.kyc-upload-box small { font-size:11px; color:var(--auth-muted); }
.kyc-upload-inner img {
	width:100%;
	height:128px;
	object-fit:cover;
	display:block;
	border-radius:12px;
}
.kyc-upload-pdf {
	display:flex;
	flex-direction:column;
	align-items:center;
	font-size:12px;
	color:#4b5563;
}
.kyc-upload-pdf i { font-size:32px; color:#dc2626; }
.kyc-upload-ok {
	position:absolute;
	right:8px;
	bottom:8px;
	color:#16a34a;
	background:#fff;
	border-radius:50%;
	font-size:20px;
}
.kyc-upload-change {
	position:absolute;
	left:8px;
	bottom:8px;
	background:rgba(17, 24, 39, 0.72);
	color:#fff;
	font-size:10px;
	padding:3px 8px;
	border-radius:999px;
}
.kyc-otp-row {
	display:flex;
	gap:8px;
	align-items:stretch;
}
.kyc-otp-row .auth-field { flex:1; margin:0; }
.kyc-otp-btn {
	border:0;
	background:var(--auth-primary);
	color:#fff;
	border-radius:12px;
	padding:0 16px;
	font-weight:600;
	font-size:13px;
	white-space:nowrap;
	min-width:108px;
}
.kyc-otp-btn:disabled { opacity:.65; }
.kyc-otp-hint {
	display:flex;
	align-items:flex-start;
	gap:6px;
	margin:8px 0 0;
	font-size:12px;
	color:#16a34a;
}
.kyc-otp-hint i { font-size:16px; margin-top:1px; }
.kyc-otp-hint.is-error { color:#dc2626; }
.kyc-otp-hint.is-ok { color:#16a34a; }
.kyc-otp-ok { font-size:12px; color:#16a34a; margin:6px 0 0; }
.kyc-split {
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:10px;
}
.kyc-split .auth-field { margin:0; }

@media (max-width: 640px) {
	.kyc-upload-row-aadhaar,
	.kyc-upload-row {
		grid-template-columns:1fr;
	}
	.kyc-split { grid-template-columns:1fr; }
	.kyc-otp-row { flex-direction:column; }
	.kyc-otp-btn { height:46px; }
}

@media (prefers-reduced-motion: reduce) {
	.auth-card,
	.auth-cta,
	.auth-secure,
	.auth-page-footer-wrap {
		animation: none;
		opacity: 1;
	}
}

body.auth-screen .swal2-container {
	backdrop-filter: blur(10px) saturate(140%);
	-webkit-backdrop-filter: blur(10px) saturate(140%);
	background: rgba(15, 23, 42, 0.28) !important;
}
body.auth-screen .swal2-popup {
	position: relative;
	overflow: hidden;
	border-radius: 22px !important;
	padding: 28px 24px 22px !important;
	border: 1.5px solid rgba(255, 255, 255, 0.72) !important;
	box-shadow:
		0 18px 40px rgba(15, 23, 42, 0.22),
		inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(229, 248, 251, 0.55)) !important;
	backdrop-filter: blur(22px) saturate(170%) !important;
	-webkit-backdrop-filter: blur(22px) saturate(170%) !important;
	color: #111827 !important;
}
body.auth-screen .swal2-title {
	font-weight: 700 !important;
	color: #111827 !important;
}
body.auth-screen .swal2-html-container {
	color: #6b7280 !important;
}
body.auth-screen .swal2-styled.swal2-confirm {
	background: var(--auth-primary) !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 12px !important;
	color: #fff !important;
}
body.auth-screen .swal2-styled.swal2-cancel {
	background: #f3f5f8 !important;
	background-image: none !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 12px !important;
	color: #374151 !important;
}
