/* TakshanERP sign-in — TakshanDMS design system (login.module.css), applied around the upstream form. */
body[data-path="login"] { background: #edf1f5; }
body[data-path="login"] .navbar,
body[data-path="login"] .web-footer,
body[data-path="login"] footer.web-footer { display: none !important; }
body[data-path="login"] .page_content,
body[data-path="login"] .page-content-wrapper,
body[data-path="login"] main.container,
body[data-path="login"] .container { max-width: none !important; padding: 0 !important; margin: 0 !important; }

.tk-screen {
	--login-muted: #52647a;
	--login-ink: #172b42;
	--login-primary: #0965d5;
	--login-border: #8593a4;
	position: fixed;
	inset: 0;
	overflow: auto;
	z-index: 1;
	padding: 24px;
	background: #edf1f5;
	color: var(--login-ink);
	display: flex;
	align-items: center;
	font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.tk-layout {
	width: 100%;
	max-width: 1520px;
	min-height: calc(100dvh - 48px);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.12fr 1fr;
	background: #fff;
	border: 1px solid #e1e7ef;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 20px 70px #19324b0c;
}

/* ---------- hero ---------- */
.tk-hero {
	position: relative;
	isolation: isolate;
	min-height: 640px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 38px 42px;
	background: #152d40;
	color: #fff;
}
.tk-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% center; z-index: -2; }
.tk-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, #0b223869 0%, #0b223805 32%, #102a40aa 58%, #10263bf5 84%, #10263b 100%);
}
.tk-hero-logo { width: 200px; height: auto; }
.tk-eyebrow { display: flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #b9e9e5; margin: 0 0 18px; }
.tk-eyebrow::before { content: ""; width: 26px; height: 2px; background: #64d6c7; }
.tk-headline { font-size: clamp(34px, 3.2vw, 48px); line-height: 1.08; letter-spacing: -0.045em; font-weight: 600; max-width: 17ch; text-wrap: balance; margin: 0 0 20px; color: #fff; }
.tk-description { font-size: 15px; line-height: 1.7; color: #d3dfeb; max-width: 42ch; margin: 0; }
.tk-features { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid #ffffff26; }
.tk-features li { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #e0e9f2; }
.tk-features svg { color: #81dfd2; flex-shrink: 0; }

/* ---------- form panel ---------- */
.tk-form-panel { display: flex; flex-direction: column; padding: 36px 48px 26px; }
.tk-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--login-muted); }
.tk-tenant { border: 1px solid #e1e7ef; border-radius: 99px; padding: 7px 12px; font-size: 12px; letter-spacing: 0; text-transform: none; color: #52647a; }
.tk-card { width: 100%; max-width: 370px; margin: auto; padding: 48px 0; }
.tk-product { display: flex; gap: 10px; align-items: center; margin-bottom: 30px; font-size: 17px; font-weight: 600; color: #22384e; }
.tk-product img { width: 30px; height: 34px; object-fit: contain; }
.tk-title { font-size: 38px; font-weight: 600; line-height: 1.15; letter-spacing: -.045em; margin: 0 0 12px; color: #152b43; }
.tk-intro { font-size: 14px; line-height: 1.7; color: var(--login-muted); margin: 0 0 28px; }
.tk-help { padding-top: 22px; margin: 0; color: var(--login-muted); font-size: 12px; line-height: 1.8; }
.tk-help strong { display: block; color: #53677c; font-weight: 500; }
.tk-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--login-muted); font-size: 12px; }
.tk-secure { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- upstream form, restyled to match ---------- */
.tk-card .page-card,
.tk-card .login-content { box-shadow: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; max-width: none !important; background: transparent !important; }
.tk-card .page-card-head { display: none !important; } /* replaced by tk-title / tk-intro */
.tk-card .form-signin { display: grid; gap: 4px; }
.tk-card .form-group { margin-bottom: 17px; }
.tk-card .form-group label,
.tk-card .form-label { display: block; margin-bottom: 9px; color: #30445b; font-size: 13px; font-weight: 500; font-family: inherit; }
.tk-card .field-icon { display: none !important; }
.tk-card input.form-control,
.tk-card input[type="email"],
.tk-card input[type="password"],
.tk-card input[type="text"] {
	width: 100%;
	height: 50px !important;
	min-height: 50px !important;
	padding: 0 15px !important;
	background: #fff !important;
	border: 1px solid var(--login-border) !important;
	border-radius: 9px !important;
	font-family: inherit !important;
	font-size: 16px !important;
	color: var(--login-ink) !important;
	box-shadow: none !important;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.tk-card input.form-control::placeholder { color: #68778b; }
.tk-card input.form-control:focus { border-color: #2672d7 !important; box-shadow: 0 0 0 3px #2672d718 !important; }
.tk-card .toggle-password { right: 12px !important; color: #64758a; font-size: 12px; }
.tk-card .forgot-password-message { margin: 10px 0 8px; text-align: right; font-size: 12.5px; }
.tk-card .forgot-password-message a { color: var(--login-primary); font-weight: 500; }
.tk-card .btn-login:not(.btn-login-with-email-link),
.tk-card .btn-default.btn-login {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 50px;
	margin-top: 5px;
	padding: 12px 18px;
	border: 1px solid #075bc5 !important;
	border-radius: 9px !important;
	background: var(--login-primary) !important;
	color: #fff !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	box-shadow: 0 4px 10px #0965d518 !important;
	transition: background .15s;
}
.tk-card .btn-login:not(.btn-login-with-email-link)::after { content: "→"; font-size: 15px; line-height: 1; }
.tk-card .btn-login:not(.btn-login-with-email-link):hover { background: #0755b3 !important; }
.tk-card .btn-login:not(.btn-login-with-email-link):active { background: #064c9e !important; }
.tk-card .btn-login-with-email-link,
.tk-card .login-with-email-link .btn {
	min-height: 46px;
	border-radius: 9px !important;
	font-family: inherit !important;
	font-weight: 500 !important;
	background: #fff !important;
	color: #30445b !important;
	border: 1px solid #d5dde7 !important;
	box-shadow: none !important;
}
.tk-card .btn-login-with-email-link:hover { background: #f5f8fb !important; }
.tk-card .btn:focus-visible { outline: 3px solid #529aff; outline-offset: 3px; }
.tk-card .sign-up-message { font-size: 13px; color: var(--login-muted); margin-top: 16px; }

/* ---------- responsive (same breakpoints as TakshanDMS) ---------- */
@media (min-width: 1600px) { .tk-layout { min-height: 850px; } }
@media (max-width: 1100px) {
	.tk-screen { padding: 16px; }
	.tk-layout { min-height: calc(100dvh - 32px); grid-template-columns: 1fr 1fr; }
	.tk-hero { padding: 32px; min-height: 600px; }
	.tk-form-panel { padding: 30px; }
	.tk-footer { flex-wrap: wrap; }
}
@media (max-width: 760px) {
	.tk-screen { padding: 0; background: #fff; align-items: stretch; }
	.tk-layout { min-height: 100dvh; border: 0; border-radius: 0; display: block; box-shadow: none; }
	.tk-hero { display: none; }
	.tk-form-panel { min-height: 100dvh; padding: max(26px, env(safe-area-inset-top)) 24px max(26px, env(safe-area-inset-bottom)); }
	.tk-card { padding: 48px 0; }
	.tk-title { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { .tk-card input.form-control, .tk-card .btn-login { transition: none; } }
