/* Estimart 4.0.6 — boxed tenant sign-in using MDB-compatible forms. */
:root {
    --estimart-primary: #3b71ca;
    --estimart-primary-dark: #2f5aa2;
    --estimart-accent: #54b4d3;
    --estimart-ink: #332d2d;
    --estimart-muted: #757575;
    --estimart-border: #e0e0e0;
}
body.route-login {
    min-height: 100vh;
    margin: 0;
    color: var(--estimart-ink);
    background: linear-gradient(135deg, #f5f7fb 0%, #eef3f8 100%);
}
.estimart-login-shell { min-height: 100vh; padding: 24px; }
.estimart-login-panel {
    width: min(1180px, 100%);
    min-height: calc(100vh - 48px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08) !important;
    border-radius: 32px !important;
    background: #fff;
    box-shadow: 0 22px 70px rgba(51,45,45,.12) !important;
}
.estimart-login-layout { display: grid; grid-template-columns: minmax(360px, .92fr) minmax(430px, 1.08fr); min-height: calc(100vh - 48px); }
.estimart-login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100vh - 84px);
    margin: 18px 0 18px 18px;
    padding: 46px;
    overflow: hidden;
    color: #fff;
    border-radius: 28px;
    background: linear-gradient(145deg, #263e39 0%, #496a63 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 18px 42px rgba(38,62,57,.22);
}
.estimart-login-brand::before,
.estimart-login-brand::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.10); border-radius: 50%; }
.estimart-login-brand::before { top: -130px; right: -120px; width: 420px; height: 420px; }
.estimart-login-brand::after { bottom: -235px; left: -210px; width: 520px; height: 520px; }
.estimart-login-logo-wrap { position: relative; z-index: 1; width: 215px; max-width: 100%; }
.estimart-login-logo { display: block; width: 100%; height: auto; filter: brightness(0) invert(1); }
.estimart-login-brand-copy { position: relative; z-index: 1; max-width: 500px; margin-top: 50px; }
.estimart-login-brand-eyebrow,
.estimart-login-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.estimart-login-brand-eyebrow { color: rgba(255,255,255,.62); }
.estimart-login-brand h1 { margin: 14px 0 16px; font-size: clamp(31px, 3.4vw, 48px); font-weight: 650; line-height: 1.08; letter-spacing: -.04em; }
.estimart-login-brand-copy > p { max-width: 490px; margin: 0; color: rgba(255,255,255,.74); font-size: 14px; line-height: 1.7; }
.estimart-login-features { display: grid; gap: 14px; margin-top: 34px; }
.estimart-login-features > div { display: flex; align-items: center; gap: 13px; }
.estimart-login-features > div > i { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; color: #fff; background: rgba(255,255,255,.11); }
.estimart-login-features strong,.estimart-login-features small { display: block; }
.estimart-login-features strong { font-size: 12px; }
.estimart-login-features small { margin-top: 2px; color: rgba(255,255,255,.56); font-size: 10px; line-height: 1.45; }
.estimart-login-version { position: relative; z-index: 1; color: rgba(255,255,255,.50); font-size: 11px; }
.estimart-login-content { display: grid; place-items: center; padding: 38px; background: radial-gradient(circle at top right, rgba(84,180,211,.11), transparent 28rem), #fff; }
.estimart-login-content-card {
    width: min(100%, 430px);
    padding: 34px;
    border: 1px solid #e0e0e0 !important;
    border-radius: 22px !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 14px 38px rgba(51,45,45,.08) !important;
}
.estimart-login-eyebrow { margin-bottom: 9px; color: var(--estimart-primary); }
.estimart-login-title { margin: 0; font-size: 26px; font-weight: 650; line-height: 1.2; letter-spacing: -.03em; }
.estimart-login-subtitle { margin: 7px 0 24px; color: var(--estimart-muted); font-size: 13px; line-height: 1.6; }
.estimart-login-content .form-label { margin-bottom: 6px; color: #4f4f4f; font-size: 12px; font-weight: 600; }
.estimart-login-content .form-control {
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--estimart-border);
    border-radius: 8px;
    color: var(--estimart-ink);
    background: #fff;
    font-size: 14px;
    box-shadow: none;
}
.estimart-login-content .form-control:focus { border-color: var(--estimart-primary); box-shadow: 0 0 0 3px rgba(59,113,202,.14); }
.estimart-login-content .btn-primary { min-height: 44px; border-color: var(--estimart-primary); border-radius: 8px; background: var(--estimart-primary); font-weight: 600; text-transform: none; box-shadow: 0 8px 18px rgba(59,113,202,.18); }
.estimart-login-content .btn-primary:hover,.estimart-login-content .btn-primary:focus { border-color: var(--estimart-primary-dark); background: var(--estimart-primary-dark); }
.estimart-login-help { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--estimart-border); color: var(--estimart-muted); font-size: 11px; line-height: 1.55; }
.estimart-login-help i { margin-top: 2px; color: #14a44d; }
.estimart-demo-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 18px; }
.estimart-demo-actions .btn { border-radius: 8px; text-transform: none; }
.company-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.company-choice-form { margin: 0; }
.company-choice-card { width: 100%; min-height: 150px; padding: 17px; border: 1px solid var(--estimart-border); border-radius: 14px; color: var(--estimart-ink); background: #fff; text-align: left; cursor: pointer; transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.company-choice-card:hover,.company-choice-card:focus { transform: translateY(-2px); border-color: rgba(59,113,202,.48); box-shadow: 0 12px 28px rgba(51,45,45,.10); outline: none; }
.company-choice-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.company-choice-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; color: #2f5aa2; background: #e2eaf7; font-size: 15px; font-weight: 700; }
.company-choice-arrow { color: var(--estimart-primary); }
.company-choice-name { display: block; margin-top: 16px; font-size: 15px; font-weight: 650; }
.company-choice-role { display: block; margin-top: 5px; color: var(--estimart-muted); font-size: 11px; }
.company-selection-email { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 20px; padding: 7px 11px; border-radius: 999px; color: #2f5aa2; background: #e2eaf7; font-size: 12px; font-weight: 600; }
.company-selection-back { margin-top: 18px; text-align: center; }
.company-selection-back .btn-link { color: var(--estimart-primary); font-weight: 600; text-transform: none; text-decoration: none; }
.estimart-login-content .alert { border: 0; border-radius: 10px; font-size: 12px; }
@media (max-width: 900px) {
    .estimart-login-shell { padding: 14px; }
    .estimart-login-panel,.estimart-login-layout { min-height: calc(100vh - 28px); }
    .estimart-login-layout { grid-template-columns: 1fr; }
    .estimart-login-brand { min-height: 330px; margin: 14px 14px 0; padding: 34px; }
    .estimart-login-brand-copy { margin-top: 32px; }
    .estimart-login-brand h1 { font-size: 34px; }
    .estimart-login-content { padding: 28px 20px 34px; }
}
@media (max-width: 560px) {
    .estimart-login-shell { padding: 8px; }
    .estimart-login-panel { min-height: calc(100vh - 16px); border-radius: 22px !important; }
    .estimart-login-brand { min-height: 245px; margin: 8px 8px 0; padding: 24px 22px; border-radius: 18px; }
    .estimart-login-logo-wrap { width: 178px; }
    .estimart-login-brand-copy { margin-top: 24px; }
    .estimart-login-brand h1 { font-size: 28px; }
    .estimart-login-features { display: none; }
    .estimart-login-content { padding: 20px 14px 26px; }
    .estimart-login-content-card { padding: 24px 20px; border-radius: 16px !important; }
    .company-choice-grid,.estimart-demo-actions { grid-template-columns: 1fr; }
}


/* 4.0.6 softens the dominant left-panel text while retaining contrast. */
.estimart-login-brand h1 { color: #d7eef7; text-shadow: 0 1px 0 rgba(0,0,0,.08); }
.estimart-login-brand-copy > p { color: rgba(220,238,244,.78); }
.estimart-login-features strong { color: #e9f5f8; }
.estimart-login-features small { color: rgba(211,232,237,.64); }


/* Estimart 4.4.5 — centered company selector using the active tenant palette. */
.company-choice-grid {
    grid-template-columns: minmax(0, 360px);
    justify-content: center;
    width: 100%;
    margin-inline: auto;
}
.company-choice-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 20px;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 13px;
    min-height: 76px;
    padding: 12px 16px;
    border-color: #d8e3df;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(29,43,40,.06);
}
.company-choice-card:hover,
.company-choice-card:focus-visible {
    transform: translateY(-1px);
    border-color: #58736d;
    box-shadow: 0 10px 25px rgba(29,43,40,.12), 0 0 0 3px rgba(88,115,109,.12);
}
.company-choice-top { display: contents; }
.company-choice-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    color: #3f5954;
    background: #eaf0ee;
}
.company-choice-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: center;
    color: #00a9b5;
}
.company-choice-name {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    color: #1d2b28;
}
.company-choice-role {
    grid-column: 2;
    grid-row: 2;
    margin-top: 2px;
    color: #6f807c;
}
.company-selection-email {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 20px;
    color: #3f5954;
    background: #eaf0ee;
}

/* Estimart 4.4.11 — brighter tenant sign-in statement. */
.estimart-login-brand h1 {
    color: rgba(255, 255, 255, .92);
}
