/* AccMaster tenant login (Nov 2026).
   A compact frame centred on a soft background (wide margins on every side):
   dark green module sidebar | welcome text + accounting dashboard illustration | sign-in card | footer.
   Colours follow the workspace theme (app.css --accmaster-*), with a lime accent.
   Shared form pieces (.lv2-field, .lv2-input, .lv2-btn …) come from login_2026.css. */

.login-v2--tenant {
  --lt-side: #073f3a;
  --lt-side-deep: #05332f;
  --lt-primary: #00796b;
  --lt-primary-dark: #0b5b4a;
  --lt-heading: #0d3b33;
  --lt-text: #173f3c;
  --lt-muted: #5a6b68;
  --lt-line: #d5e2de;
  --lt-soft: #eef7f3;
  --lt-lime: #8cc63f;
  --lt-lime-soft: #f0f8e6;
  background: #eef5f2;
}

/* ---------- page + frame ---------- */

.lt-page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  padding: 32px 24px;
  background: linear-gradient(135deg, #f6faf8 0%, #eaf4f0 55%, #e2f0ea 100%);
}

/* soft decorative circles, like the reference */
.lt-page::before,
.lt-page::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.lt-page::before {
  top: -60px;
  left: 3%;
  width: 270px;
  height: 270px;
  background: rgba(255, 255, 255, 0.85);
}

.lt-page::after {
  right: -130px;
  bottom: -170px;
  width: 400px;
  height: 400px;
  background: rgba(140, 198, 63, 0.16);
}

.lt {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  max-width: 1040px;
  grid-template-columns: 190px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(7, 63, 58, 0.05), 0 24px 60px -28px rgba(7, 63, 58, 0.3);
  color: var(--lt-text);
}

/* ---------- module sidebar ---------- */

.lt-side {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 30px 20px 0;
  background: linear-gradient(180deg, #0a4a43, var(--lt-side) 40%, var(--lt-side-deep));
  color: #e4f1ee;
}

.lt-brand {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
}

.lt-mark {
  width: 70px;
  height: auto;
  margin-bottom: 4px;
}

.lt-brand-name {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.lt-brand-product {
  margin-top: 3px;
  color: #d3e6e1;
  font-size: 12.5px;
  font-weight: 500;
}

.lt-modules {
  display: grid;
  flex: none;
  gap: 16px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.lt-modules li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f1f8f6;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.lt-module-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #e6f4f0;
}

.lt-module-icon svg {
  width: 20px;
  height: 20px;
}

/* Grows into the free space under the module list (max 170px), so it never
   covers the list. */
.lt-side-wave {
  display: block;
  flex: 1 1 0;
  width: calc(100% + 40px);
  min-height: 50px;
  max-height: 170px;
  margin: auto -20px 0;
  pointer-events: none;
}

/* ---------- body ---------- */

.lt-body {
  --lt-py: 30px;
  --lt-px: 38px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 396px;
  align-items: center;
  gap: 26px;
  overflow: hidden;
  padding: var(--lt-py) 34px var(--lt-py) var(--lt-px);
  background: #fff;
}

/* Soft ledger grid + mint glow behind the body (no photo). */
.lt-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  width: 72%;
  height: 100%;
  pointer-events: none;
  background:
    radial-gradient(420px 260px at 78% 8%, rgba(140, 198, 63, 0.16), transparent 70%),
    radial-gradient(360px 300px at 40% 30%, rgba(0, 121, 107, 0.07), transparent 70%),
    linear-gradient(rgba(13, 90, 68, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(13, 90, 68, 0.06) 1px, transparent 1px) 0 0 / 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%), linear-gradient(180deg, #000 55%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 30%), linear-gradient(180deg, #000 55%, transparent);
  mask-composite: intersect;
}

/* The intro column runs edge to edge (cancels the body padding); the
   dashboard illustration shrinks to the space left under the text. It sits
   above the lime wave. */
.lt-intro {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 0;
  margin: calc(var(--lt-py) * -1) 0 calc(var(--lt-py) * -1) calc(var(--lt-px) * -1);
  padding: calc(var(--lt-py) + 22px) 0 0 var(--lt-px);
}

.lt-intro > :not(.lt-hero) {
  flex: none;
}

.lt-accent {
  display: block;
  width: 42px;
  height: 5px;
  border-radius: 99px;
  background: var(--lt-lime);
}

.lt-welcome {
  margin: 24px 0 0;
  color: var(--lt-heading);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
}

.lt-headline {
  margin: 6px 0 0;
  color: var(--lt-heading);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.lt-product {
  margin: 8px 0 0;
  color: #37504b;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
}

.lt-lead {
  max-width: 330px;
  margin: 18px 0 0;
  color: var(--lt-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.lt-badges {
  display: flex;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.lt-badges li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  color: var(--lt-heading);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.lt-badges li:first-child {
  padding-left: 0;
}

.lt-badges li + li {
  border-left: 1px solid var(--lt-line);
}

.lt-badges span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--lt-lime-soft);
  color: var(--lt-primary-dark);
}

.lt-badges svg {
  width: 20px;
  height: 20px;
}

/* ---------- accounting dashboard illustration ----------
   Chart panel on the left, three status cards stacked on the right. */

.lt-hero {
  position: relative;
  flex: 1 1 0;
  width: 100%;
  max-width: 372px;
  min-height: 210px;
  max-height: 300px;
  margin-top: 20px;
  pointer-events: none;
  user-select: none;
}

.lt-hero-panel {
  position: absolute;
  top: 6px;
  left: 0;
  width: 204px;
  padding: 12px 13px 10px;
  border: 1px solid #e1ebe7;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(7, 63, 58, 0.05), 0 18px 40px -22px rgba(7, 63, 58, 0.45);
}

.lt-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--lt-muted);
  font-size: 11px;
  font-weight: 600;
}

.lt-hero-chip {
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--lt-lime-soft);
  color: #2f7d32;
  font-size: 10.5px;
  font-weight: 700;
}

.lt-hero-figure {
  margin-top: 4px;
  color: var(--lt-heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.lt-hero-figure small {
  margin-left: 6px;
  color: #2f9a45;
  font-size: 11px;
  font-weight: 700;
}

.lt-hero-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 56px;
  margin-top: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e6eeeb;
}

.lt-hero-bars i {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #1c8a73, var(--lt-primary-dark));
}

.lt-hero-bars i.is-exp {
  background: linear-gradient(180deg, #c7e88f, var(--lt-lime));
}

.lt-hero-legend {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  color: var(--lt-muted);
  font-size: 10.5px;
}

.lt-hero-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 2px;
  background: var(--lt-primary-dark);
  vertical-align: -1px;
}

.lt-hero-legend span.is-exp::before {
  background: var(--lt-lime);
}

.lt-hero-float {
  position: absolute;
  left: 196px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 158px;
  padding: 8px 10px;
  border: 1px solid #e1ebe7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 30px -18px rgba(7, 63, 58, 0.55);
  white-space: nowrap;
}

.lt-hero-float--tb { top: 0; }
.lt-hero-float--bank { top: 58px; }
.lt-hero-float--vch { top: 116px; }

.lt-hero-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--lt-soft);
  color: var(--lt-primary-dark);
}

.lt-hero-icon.is-lime {
  background: var(--lt-lime-soft);
  color: #2f7d32;
}

.lt-hero-icon svg {
  width: 17px;
  height: 17px;
}

.lt-hero-float b {
  display: block;
  color: var(--lt-heading);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.lt-hero-float span:not(.lt-hero-icon) {
  display: block;
  color: #6b7c78;
  font-size: 10.5px;
  line-height: 1.3;
}

.lt-hero-float--bank b {
  font-size: 13px;
  font-weight: 800;
}

.lt-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 62%;
  height: 110px;
  opacity: 0.75;
  pointer-events: none;
}

/* ---------- sign-in card ---------- */

.lt-card {
  position: relative;
  z-index: 3;
  padding: 24px 30px 28px;
  border: 1px solid #e1e9e6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(7, 63, 58, 0.04), 0 22px 48px -26px rgba(7, 63, 58, 0.35);
}

.lt-card-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.lt-card-brand img {
  width: 66px;
  height: auto;
}

.lt-card-brand b {
  display: block;
  color: var(--lt-heading);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.lt-card-brand span {
  display: block;
  margin-top: 3px;
  color: var(--lt-muted);
  font-size: 13.5px;
}

.lt-secure {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border: 1px solid #e2f0d2;
  border-radius: 9px;
  background: var(--lt-lime-soft);
  color: var(--lt-heading);
  font-size: 13.5px;
  font-weight: 600;
}

.lt-secure > svg:first-child {
  width: 18px;
  height: 18px;
  color: #2f9a45;
}

.lt-secure-info {
  width: 17px;
  height: 17px;
  margin-left: auto;
  color: #9aa9a5;
}

.lt-card-title {
  margin: 0;
  color: var(--lt-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lt-card-sub {
  margin: 5px 0 18px;
  color: var(--lt-muted);
  font-size: 13px;
}

/* form, tenant look */
.lt .lv2-field {
  margin-bottom: 14px;
}

.lt .lv2-label {
  margin-bottom: 7px;
  color: var(--lt-heading);
  font-size: 13.5px;
  font-weight: 600;
}

.lt .lv2-link {
  margin: 0;
  color: var(--lt-primary);
  font-size: 13px;
  font-weight: 600;
}

.lt .lv2-input {
  gap: 0;
  height: 44px;
  padding: 0 6px 0 0;
  border: 1px solid #ccd9d5;
  border-radius: 8px;
}

.lt .lv2-input:focus-within {
  border-color: var(--lt-primary);
  box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.12);
}

.lt .lv2-icon {
  box-sizing: content-box;
  width: 18px;
  height: 18px;
  padding: 0 10px 0 14px;
  border-right: 1px solid #dbe5e2;
  color: #3e524e;
}

.lt .lv2-input input {
  padding: 0 10px;
  color: var(--lt-text);
  font-size: 14px;
}

.lt .lv2-input input::placeholder {
  color: #7d8c89;
}

.lt .lv2-eye {
  width: 32px;
  height: 32px;
  color: #3e524e;
}

.lt .lv2-eye svg {
  width: 18px;
  height: 18px;
}

.lt .lv2-eye:hover,
.lt .lv2-eye:focus-visible {
  background: var(--lt-soft);
  color: var(--lt-primary);
}

.lv2-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.lv2-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--lt-heading);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.lv2-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--lt-primary-dark);
  cursor: pointer;
}

.lt .lv2-alert {
  margin-bottom: 14px;
  border-radius: 9px;
  font-size: 13px;
}

.lt .field-error {
  margin-top: 5px;
  color: var(--tblr-danger, #d63939);
  font-size: 12px;
}

.lt .lv2-btn {
  gap: 10px;
  height: 46px;
  margin-top: 20px;
  border-radius: 8px;
  background: var(--lt-primary-dark);
  box-shadow: 0 3px 0 #063b30, 0 14px 26px -16px rgba(7, 63, 58, 0.9);
  font-size: 15px;
  font-weight: 600;
}

.lt .lv2-btn svg {
  width: 18px;
  height: 18px;
}

.lt .lv2-btn:hover {
  background: #084c3d;
}

.lt .lv2-btn:focus-visible,
.lt .lv2-link:focus-visible,
.lt .lv2-eye:focus-visible,
.lv2-check input:focus-visible {
  outline: 3px solid rgba(0, 121, 107, 0.3);
  outline-offset: 2px;
}

/* ---------- footer (inside the frame) ---------- */

.lt-foot {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 34px 0 38px;
  padding: 12px 0 13px;
  border-top: 1px solid #e3ebe8;
  color: var(--lt-muted);
  font-size: 12px;
}

.lt-foot-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.lt-foot-left svg {
  width: 17px;
  height: 17px;
  color: var(--lt-primary-dark);
}

.lt-foot-left i {
  color: #b8c7c3;
  font-style: normal;
}

.lt-foot p {
  margin: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 991.98px) {
  .lt { max-width: 640px; grid-template-columns: 170px minmax(0, 1fr); }
  .lt-side { padding: 26px 14px 0; }
  .lt-modules li { gap: 10px; font-size: 12.5px; }
  .lt-module-icon { width: 34px; height: 34px; }
  .lt-side-wave { width: calc(100% + 28px); margin: auto -14px 0; }
  .lt-body { grid-template-columns: minmax(0, 1fr); padding: 28px; }
  .lt-intro,
  .lt-wave { display: none; }
  .lt-foot { margin: 0 24px; }
}

@media (max-width: 639.98px) {
  .lt-page { display: block; padding: 0; }
  .lt-page::before,
  .lt-page::after { display: none; }
  .lt { min-height: 100vh; min-height: 100dvh; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; border: 0; border-radius: 0; box-shadow: none; }
  .lt-side { padding: 16px; }
  .lt-brand { flex-direction: row; gap: 10px; padding: 0; border: 0; }
  .lt-mark { width: 40px; margin: 0; }
  .lt-brand-name { font-size: 20px; }
  .lt-brand-product { margin: 3px 0 0 2px; font-size: 12px; }
  .lt-modules,
  .lt-side-wave,
  .lt-backdrop { display: none; }
  .lt-body { padding: 22px 16px 28px; }
  .lt-card { padding: 22px 18px 24px; }
  .lt-foot { flex-direction: column; gap: 4px; margin: 0 16px; text-align: center; }
}
