/* Login page refresh — loaded after login.css, scoped to body.login-v2 */
.login-v2 {
	--brand: #BEE4DD;
	--brand-strong: #8FCFC3;
	--brand-deep: #2F6F66;
	--ink: #0B1420;
	--muted: #5B6475;
	--line: #D4D7E3;
	--danger: #C0392B;
	--radius: 12px;
	font-family: 'Montserrat', sans-serif;
	color: var(--ink);
	background: #ffffff !important;
}

/* ---------- Left: form ---------- */
.login-v2 .left-section {
	padding: 48px 32px 56px;
	background:
		radial-gradient(circle at 0% 100%, rgba(190, 228, 221, 0.25), transparent 40%),
		#ffffff;
}

.login-v2 .left-section-inner {
	width: 100%;
	max-width: 400px;
	animation: lv2-rise 0.5s ease both;
}

.login-v2 .mobile-only-logo { display: none; }

.login-v2 .login-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--brand-deep);
	background: rgba(190, 228, 221, 0.45);
	padding: 6px 12px;
	border-radius: 999px;
	margin-bottom: 20px;
}

.login-v2 .login-title {
	height: auto;
	font-size: 34px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin-bottom: 8px;
}

.login-v2 .console-subtitle {
	width: auto;
	height: auto;
	font-size: 15px;
	line-height: 1.5;
	color: var(--muted);
	margin-bottom: 36px;
}

.login-v2 .field-label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: var(--ink);
	margin-bottom: 8px;
}

.login-v2 .mobile-input-container {
	width: 100%;
	height: auto;
	display: flex;
	align-items: stretch;
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
	background: #ffffff;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-v2 .mobile-input-container:focus-within {
	border-color: var(--brand-strong);
	box-shadow: 0 0 0 4px rgba(190, 228, 221, 0.55);
}

.login-v2 .mobile-input-container.has-error {
	border-color: var(--danger);
	box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12);
}

.login-v2 .country-code {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 14px;
	font-size: 15px;
	font-weight: 500;
	color: var(--muted);
	background: #F6F8FA;
	border-right: 1px solid var(--line);
	user-select: none;
}

.login-v2 .country-code svg {
	width: 16px;
	height: 16px;
	stroke: var(--muted);
}

.login-v2 .mobile-input {
	flex: 1;
	width: auto;
	min-width: 0;
	height: 52px;
	border: none;
	border-radius: 0;
	padding: 0 16px;
	font-size: 16px;
	letter-spacing: 0.06em;
	background: transparent;
}

.login-v2 .mobile-input::placeholder {
	color: #A0A7B8;
	letter-spacing: normal;
	font-weight: 400;
}

.login-v2 .div-error-msg {
	min-height: 22px;
	margin: 8px 0 24px;
}

.login-v2 .login-error {
	font-size: 13px;
	color: var(--danger);
	align-items: center;
	gap: 6px;
}

.login-v2 .login-error::before {
	content: "!";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	margin-right: 6px;
	border-radius: 50%;
	background: var(--danger);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
}

.login-v2 .request-otp-btn {
	width: 100%;
	height: 54px;
	margin-bottom: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 17px;
	font-weight: 600;
	color: var(--ink);
	background: linear-gradient(135deg, #CDEBE5 0%, var(--brand-strong) 100%);
	box-shadow: 0 8px 20px -8px rgba(47, 111, 102, 0.45);
	transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-v2 .request-otp-btn:hover {
	filter: brightness(0.97);
	transform: translateY(-1px);
	box-shadow: 0 12px 24px -10px rgba(47, 111, 102, 0.55);
}

.login-v2 .request-otp-btn:focus-visible {
	outline: 3px solid var(--brand-deep);
	outline-offset: 2px;
}

.login-v2 .request-otp-btn .btn-arrow {
	transition: transform 0.2s ease;
}

.login-v2 .request-otp-btn:hover .btn-arrow {
	transform: translateX(3px);
}

.login-v2 .request-otp-btn .spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(11, 20, 32, 0.25);
	border-top-color: var(--ink);
	border-radius: 50%;
	animation: lv2-spin 0.7s linear infinite;
}

.login-v2 .request-otp-btn.is-loading {
	pointer-events: none;
	opacity: 0.85;
}

.login-v2 .request-otp-btn.is-loading .spinner { display: inline-block; }
.login-v2 .request-otp-btn.is-loading .btn-arrow { display: none; }

.login-v2 .help-divider {
	width: 100%;
	max-width: 400px;
	margin-bottom: 16px;
}

.login-v2 .support-info {
	width: 100%;
	max-width: 400px;
	height: auto;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	background: rgba(190, 228, 221, 0.28);
}

.login-v2 .support-info svg {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	stroke: var(--brand-deep);
}

.login-v2 .support-text {
	width: auto;
	height: auto;
	font-size: 14px;
	line-height: 1.5;
}

.login-v2 .support-email {
	color: var(--brand-deep);
	font-weight: 600;
	word-break: break-all;
}

.login-v2 .copyright {
	bottom: 16px;
	height: auto;
	font-size: 11px;
	letter-spacing: 0.08em;
}

/* ---------- Right: brand panel ---------- */
.login-v2 .right-section {
	overflow: hidden;
	flex-direction: column;
	gap: 28px;
	background:
		radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.7), transparent 45%),
		linear-gradient(160deg, #D6EFEA 0%, var(--brand) 55%, #A9D9CF 100%);
}

.login-v2 .right-section::before,
.login-v2 .right-section::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.6);
	pointer-events: none;
}

.login-v2 .right-section::before {
	width: 520px;
	height: 520px;
	top: -160px;
	right: -160px;
}

.login-v2 .right-section::after {
	width: 380px;
	height: 380px;
	bottom: -140px;
	left: -120px;
	background: rgba(255, 255, 255, 0.18);
}

.login-v2 .brand-card {
	position: relative;
	z-index: 1;
	width: min(70%, 420px);
	padding: 48px 40px;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.8);
	box-shadow: 0 30px 60px -30px rgba(47, 111, 102, 0.45);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	text-align: center;
	animation: lv2-rise 0.6s 0.1s ease both;
}

.login-v2 .brand-logo {
	width: 100%;
	max-width: 260px;
	height: auto;
}

/* ---------- OTP page ---------- */
.login-v2 .otp-sent-to {
	color: var(--ink);
	font-weight: 600;
	white-space: nowrap;
}

.login-v2 .otp-edit-a-new {
	margin-left: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--brand-deep);
	text-decoration: none;
	white-space: nowrap;
}

.login-v2 .otp-edit-a-new:hover {
	text-decoration: underline;
}

.login-v2 .otp-input-container {
	width: 100%;
	height: auto;
	margin-bottom: 0;
}

.login-v2 .otp-input-container .mobile-input {
	height: 60px;
	padding: 0 16px;
	text-align: center;
	font-size: 26px;
	font-weight: 600;
	letter-spacing: 0.6em;
	text-indent: 0.6em;
}

.login-v2 .otp-input-container .mobile-input::placeholder {
	font-size: 16px;
	letter-spacing: normal;
	text-indent: 0;
}

.login-v2 .otp-meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	min-height: 22px;
	margin: 10px 0 24px;
	font-size: 13px;
}

.login-v2 .otp-resend-success {
	color: var(--brand-deep);
	font-weight: 500;
}

.login-v2 .otp-resend-success::before {
	content: "\2713";
	margin-right: 6px;
	font-weight: 700;
}

.login-v2 .resend-otp-container {
	width: auto;
	margin: 0 0 0 auto;
	font-size: 13px;
	white-space: nowrap;
}

.login-v2 .resend-otp-link {
	margin: 0;
	color: var(--brand-deep);
	font-weight: 600;
	text-decoration: none;
}

.login-v2 .resend-otp-link:hover {
	text-decoration: underline;
}

.login-v2 .resend-otp-link.is-disabled {
	pointer-events: none;
	opacity: 0.5;
}

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

@keyframes lv2-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.login-v2 *,
	.login-v2 *::before,
	.login-v2 *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
	.login-v2 .brand-card { width: 80%; padding: 36px 28px; }
}

@media (max-width: 768px) {
	.login-v2 { overflow: auto; }
	.login-v2 .main-container {
		flex-direction: column;
		height: auto;
		min-height: 100vh;
	}
	.login-v2 .right-section { display: none; }
	.login-v2 .left-section {
		width: 100%;
		min-height: 100vh;
		padding: 40px 20px 64px;
		justify-content: center;
	}
	.login-v2 .left-section-inner,
	.login-v2 .left-section-inner * { text-align: center; }
	.login-v2 #mobile_number { text-align: left; }
	.login-v2 #otp { text-align: center; }
	.login-v2 .mobile-only-logo {
		display: block;
		width: 120px;
		height: auto;
		margin: 0 auto 28px;
	}
	.login-v2 .login-title { font-size: 28px; height: auto; line-height: 1.2; }
	.login-v2 .console-subtitle { text-align: center; padding: 0; }
	.login-v2 .mobile-input,
	.login-v2 #requestOtpBtn { width: auto; }
	.login-v2 #requestOtpBtn { width: 100%; }
	.login-v2 .support-info { margin-top: 0; }
	.login-v2 .support-text { text-align: center; }
	.login-v2 .help-divider { width: 100%; }
}
