/* Shared photo treatment for admin and client sign-in only.
   Image, form background and description remain tenant/platform configurable. */
body.acs-login-page .acs-login-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    height: auto;
    padding: 0;
    background-size: cover;
    background-position: center;
}

body.acs-login-page .acs-login-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(8, 18, 30, .04) 0%, rgba(8, 18, 30, .4) 25%, rgba(8, 18, 30, .92) 65%, #08121e 100%);
    pointer-events: none;
}

body.acs-login-page .acs-login-hero .acs-panel-copy {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(28px, 4.5vw, 72px);
    padding-top: 180px;
    text-align: left;
    overflow-wrap: anywhere;
}

body.acs-login-page .acs-login-hero .acs-hero-eyebrow {
    margin: 0 0 18px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1.5;
}

body.acs-login-page .acs-login-hero .acs-panel-title {
    max-width: 20ch;
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(30px, 3.15vw, 48px);
    line-height: 1.13;
    font-weight: 600;
    letter-spacing: -.035em;
    text-shadow: none;
}

body.acs-login-page .acs-login-hero .acs-panel-desc {
    max-width: 46ch;
    margin: 0;
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1.7;
    text-shadow: none;
}

body.acs-login-page .acs-login-features {
    display: grid;
    gap: 18px;
    padding: 26px 0 0;
    margin: 26px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .24);
    list-style: none;
}

body.acs-login-page .acs-login-features li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.5;
}

body.acs-login-page .acs-login-features strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

body.acs-login-page .acs-feature-number {
    flex: 0 0 32px;
    padding-top: 2px;
    color: #cbd5e1;
    font-size: 11px;
    letter-spacing: .08em;
}

body.acs-login-page .acs-login-hero .acs-hero-footnote {
    margin: 32px 0 0;
    color: #cbd5e1;
    font-size: 12px;
}

body.acs-login-page .fxt-form .acs-login-eyebrow,
body.acs-login-page .auth-form .acs-login-eyebrow {
    margin: 0 0 10px;
    color: var(--acs-muted, var(--acsl-muted, #64748b));
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.5;
}

body.acs-login-page .fxt-form .acs-login-heading,
body.acs-login-page .auth-form .acs-login-heading {
    margin: 0 0 12px;
    color: var(--acs-ink, var(--acsl-ink, #0f172a));
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.2;
}

body.acs-login-page .fxt-form .acs-login-intro,
body.acs-login-page .auth-form .acs-login-intro {
    margin: 0 0 28px;
    color: var(--acs-muted, var(--acsl-muted, #64748b));
    font-size: 14px;
    line-height: 1.65;
}

body.acs-login-page.acs-login-admin .fxt-form {
    max-width: 460px;
    padding: 40px;
}

body.acs-login-page.acs-login-admin .fxt-form h3.text-danger {
    color: var(--acsl-text) !important;
    font-size: 12px;
    letter-spacing: .04em;
}

body.acs-login-page.acs-login-admin .fxt-form .pull-right {
    float: none;
    margin: 24px 0 0;
    text-align: center;
}

body.acs-login-page .acs-login-link-label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: var(--acsl-muted);
}

/* The old portal template fixes the cover to the viewport and hides it on tablets.
   Keep the static panel in the document flow, including when forms become taller. */
body.acs-login-page.acs-login-client .hk-auth-wrapper > header { display: none; }
body.acs-login-page.acs-login-client .hk-auth-wrapper > .container-fluid { padding: 0; }
body.acs-login-page.acs-login-client .hk-auth-wrapper > .container-fluid > .row { margin: 0; }
body.acs-login-page.acs-login-client .hk-auth-wrapper .area_a {
    display: block;
    position: relative;
    flex: 0 0 50%;
    max-width: 50%;
}
body.acs-login-page.acs-login-client .hk-auth-wrapper .auth-form-wrap_ {
    flex: 0 0 50%;
    max-width: 50%;
}
body.acs-login-page.acs-login-client .hk-auth-wrapper .auth-cover-img {
    position: relative;
    width: 100%;
    height: 100%;
}
body.acs-login-page.acs-login-client .hk-auth-wrapper .auth-form-wrap {
    min-height: 100vh;
    height: auto;
    padding: 48px 28px !important;
}
body.acs-login-page.acs-login-client .hk-auth-wrapper .auth-form {
    width: 100% !important;
    max-width: 460px;
    margin: auto;
    padding: 40px;
}
body.acs-login-page.acs-login-client .hk-auth-wrapper .auth-form > img {
    max-height: 90px;
    width: auto;
    margin-bottom: 24px;
}
body.acs-login-page.acs-login-client .hk-footer-wrap {
    position: static;
    padding: 16px 24px;
}

@media (max-width: 991px) {
    body.acs-login-page .acs-login-hero::before {
        background: linear-gradient(180deg, rgba(8, 18, 30, .08) 0, rgba(8, 18, 30, .72) 110px, rgba(8, 18, 30, .92) 65%, #08121e 100%);
    }
    body.acs-login-page .acs-login-hero .acs-panel-copy { padding: 160px 28px 36px; }
    body.acs-login-page.acs-login-admin .fxt-form,
    body.acs-login-page.acs-login-client .hk-auth-wrapper .auth-form { padding: 30px 24px; }
}

@media (max-width: 767px) {
    body.acs-login-page.acs-login-admin .fxt-bg-color,
    body.acs-login-page.acs-login-client .hk-auth-wrapper .auth-form-wrap {
        min-height: auto;
        padding: 36px 20px !important;
    }
    body.acs-login-page.acs-login-client .hk-auth-wrapper .area_a,
    body.acs-login-page.acs-login-client .hk-auth-wrapper .auth-form-wrap_ {
        flex: 0 0 100%;
        max-width: 100%;
    }
    body.acs-login-page .acs-login-hero {
        min-height: 480px;
        background-position: center 35%;
    }
    body.acs-login-page .acs-login-hero .acs-panel-copy { padding: 110px 28px 32px; }
    body.acs-login-page .fxt-form .acs-login-heading,
    body.acs-login-page .auth-form .acs-login-heading { font-size: 28px; }
    body.acs-login-page .acs-login-features { gap: 14px; }
    body.acs-login-page .acs-login-hero .acs-hero-footnote { margin-top: 24px; }
}

/* Keep the field worker, phone and meter above the copy. */
body.acs-login-page.acs-login-admin .fxt-bg-color {
    align-items: flex-start;
}
body.acs-login-page.acs-login-admin .fxt-content {
    min-height: 0;
    justify-content: flex-start;
}
body.acs-login-page.acs-login-admin .acs-login-hero {
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #08121e;
    align-items: flex-start;
}
body.acs-login-page.acs-login-admin .acs-login-hero::before {
    background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(8, 18, 30, .2) 55%, #08121e 75%);
}
body.acs-login-page.acs-login-admin .acs-login-hero .acs-panel-copy {
    padding-top: 90%;
}

/* Match the admin photographic treatment without hiding the customer or tap. */
body.acs-login-page.acs-login-client .acs-login-hero {
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #08121e;
    align-items: flex-start;
}
body.acs-login-page.acs-login-client .acs-login-hero::before {
    background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(8, 18, 30, .2) 55%, #08121e 75%);
}
body.acs-login-page.acs-login-client .acs-login-hero .acs-panel-copy {
    padding-top: 90%;
}
body.acs-login-page.acs-login-client .hk-auth-wrapper .auth-form-wrap {
    align-items: flex-start;
}
body.acs-login-page.acs-login-client .hk-auth-wrapper .auth-form {
    margin-top: 0;
}

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