/* Login BI Ugestor: mesma composição estrutural do ERP Ugestor. */
body.bi-login-body {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background: #fff;
    color: #10213d;
}

body.bi-login-body .app-content.content,
body.bi-login-body .content-wrapper,
body.bi-login-body .content-body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 !important;
    padding: 0 !important;
}

body.bi-login-body .content-overlay,
body.bi-login-body .header-navbar-shadow,
body.bi-login-body .content-header {
    display: none !important;
}

.bi-login-page {
    display: grid;
    grid-template-columns: minmax(0, 56fr) minmax(420px, 44fr);
    min-height: 100vh;
    min-height: 100dvh;
    background: #fff;
}

.bi-login-hero {
    position: relative;
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #061833;
    color: #fff;
    isolation: isolate;
}

.bi-login-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(118deg, rgba(5, 22, 63, .97) 0%, rgba(5, 43, 76, .87) 52%, rgba(3, 112, 123, .42) 100%);
    content: "";
}

.bi-login-brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: .75rem;
    color: inherit;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.bi-login-brand:hover,
.bi-login-brand:focus {
    color: inherit;
    text-decoration: none;
}

.bi-login-brand:focus-visible,
.bi-login-submit:focus-visible,
.bi-login-password-toggle:focus-visible,
.bi-login-passkey:focus-visible {
    outline: 3px solid rgba(50, 208, 215, .45);
    outline-offset: 3px;
}

.bi-login-brand img {
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}

.bi-login-brand--hero {
    position: absolute;
    z-index: 3;
    top: 34px;
    left: 50%;
    color: #fff;
    transform: translateX(-50%);
}

.bi-login-brand__central-logo {
    width: auto;
    max-width: 190px;
    max-height: 54px;
}

.bi-login-brand--access {
    display: none;
}

.bi-login-hero__copy {
    position: relative;
    z-index: 3;
    box-sizing: border-box;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 64px;
}

.bi-login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #32d0d7;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.bi-login-eyebrow::before {
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: #ff5a1f;
    content: "";
}

.bi-login-hero__copy h1 {
    max-width: 620px;
    margin: 20px 0 18px;
    color: #fff;
    font-size: clamp(34px, 3.6vw, 54px);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.05;
}

.bi-login-hero__copy > p {
    max-width: 520px;
    margin: 0;
    color: rgba(244, 251, 252, .86);
    font-size: 16px;
    line-height: 1.6;
}

.bi-login-capabilities {
    display: flex;
    margin: 28px 0 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 9px;
    list-style: none;
}

.bi-login-capabilities li {
    padding: 7px 12px;
    border: 1px solid rgba(126, 226, 229, .28);
    border-radius: 999px;
    background: rgba(4, 40, 67, .36);
    color: #dff9fa;
    font-size: 12px;
    font-weight: 700;
}

.bi-login-hero__visual {
    position: absolute;
    z-index: -2;
    inset: 0;
    margin: 0;
}

.bi-login-hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.bi-login-hero__signature {
    position: absolute;
    z-index: 3;
    right: 42px;
    bottom: 28px;
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
}

.bi-login-hero__glow {
    display: none;
}

.bi-login-access {
    display: flex;
    box-sizing: border-box;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 42px;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.bi-login-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 440px;
}

.bi-login-card__header {
    margin-bottom: 28px;
}

.bi-login-eyebrow--form {
    margin-bottom: 18px;
    color: #008177;
}

.bi-login-card__header h2 {
    margin: 0 0 8px;
    color: #10213d;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.08;
}

.bi-login-card__header p {
    margin: 0;
    color: #657891;
    font-size: 14px;
    line-height: 1.6;
}

.bi-login-message {
    margin-bottom: 18px;
}

.bi-login-message .alert {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(201, 53, 43, .28);
    border-radius: 10px;
    background: #fff1f0;
    color: #8d2721;
}

.bi-login-message .alert-body {
    gap: 10px;
    line-height: 1.45;
}

.bi-login-message .alert-body svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.bi-login-form {
    margin: 0;
}

.bi-login-field {
    margin-bottom: 18px;
}

.bi-login-field > .form-label,
.bi-login-label-row .form-label {
    margin: 0 0 8px;
    color: #10213d;
    font-size: 12px;
    font-weight: 600;
}

.bi-login-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.bi-login-label-row > span {
    color: #657891;
    font-size: 11px;
}

.bi-login-control {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    border: 1px solid #c9d6e4;
    border-radius: 12px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.bi-login-control:focus-within {
    border-color: #008177;
    box-shadow: 0 0 0 3px rgba(0, 129, 119, .13);
}

.bi-login-control > svg,
.bi-login-control > .bi-login-control__icon {
    position: absolute;
    z-index: 4;
    width: 18px;
    height: 18px;
    left: 16px;
    color: #6f839c;
    pointer-events: none;
}

.bi-login-control .form-control {
    box-sizing: border-box;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 48px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent;
    color: #10213d;
    font-size: 15px;
    line-height: 52px;
    text-align: left !important;
    box-shadow: none !important;
}

.bi-login-control .form-control::placeholder {
    color: #8b9bb0;
    opacity: 1;
}

.bi-login-control .form-control:focus {
    outline: 0;
}

.bi-login-password-toggle {
    position: absolute;
    z-index: 5;
    width: 46px;
    height: 46px;
    right: 4px;
    display: inline-flex;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #6f839c;
    cursor: pointer;
}

.bi-login-password-toggle:hover {
    background: rgba(0, 129, 119, .1);
    color: #006f68;
}

.bi-login-password-toggle svg {
    width: 18px;
    height: 18px;
}

.bi-login-field > span.error {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    margin: 8px 0 0;
    padding: 8px 10px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(201, 53, 43, .18);
    border-radius: 8px;
    background: #fff1f0;
    color: #c9352b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.bi-login-field > span.error::before {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.bi-login-options {
    margin: 0 0 20px;
}

.bi-login-options .form-check {
    display: flex;
    min-height: 24px;
    margin: 0;
    padding-left: 0;
    align-items: flex-start;
    gap: 10px;
}

.bi-login-options .form-check-input {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    border: 1px solid #c9d6e4;
    border-radius: 3px;
    cursor: pointer;
}

.bi-login-remember-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.bi-login-remember-copy small {
    color: #657891;
    font-size: 10px;
    line-height: 1.35;
}

.bi-login-options .form-check-input:checked {
    border-color: #008177;
    background-color: #008177;
}

.bi-login-options .form-check-input:focus {
    border-color: #008177;
    box-shadow: 0 0 0 3px rgba(0, 129, 119, .13);
}

.bi-login-options .form-check-label {
    color: #657891;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
}

.bi-login-submit.btn {
    display: inline-flex;
    width: 100%;
    min-height: 54px;
    padding: 12px 18px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6b2c 0%, #f04409 100%);
    box-shadow: 0 12px 24px rgba(240, 68, 9, .2);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: background .18s ease, box-shadow .18s ease;
}

.bi-login-submit.btn:hover,
.bi-login-submit.btn:focus {
    background: #dc3d08;
    box-shadow: 0 10px 20px rgba(240, 68, 9, .24);
    color: #fff;
}

.bi-login-divider {
    display: none;
    margin: 16px 0 12px;
    align-items: center;
    gap: 12px;
    color: #7a8ba0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.bi-login-divider::before,
.bi-login-divider::after {
    height: 1px;
    flex: 1 1 auto;
    background: #e1e9f0;
    content: "";
}

body.bi-passkey-ready .bi-login-divider {
    display: flex;
}

body.bi-passkey-ready .bi-login-options {
    display: none;
}

.bi-login-passkey.btn {
    display: inline-flex;
    width: 100%;
    min-height: 54px;
    margin-top: 0;
    padding: 10px 16px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #c9d6e4;
    border-radius: 12px;
    background: #fff;
    color: #10213d;
    font-size: 14px;
    font-weight: 700;
}

.bi-login-passkey.btn[hidden] {
    display: none;
}

.bi-login-passkey.btn:hover,
.bi-login-passkey.btn:focus {
    border-color: #008177;
    background: rgba(0, 129, 119, .06);
    color: #10213d;
}

.bi-login-version {
    margin: 24px 0 0;
    color: #7a8ba0;
    font-size: 10px;
    text-align: center;
}

@media (max-width: 900px) {
    .bi-login-page {
        display: block;
        min-height: 0;
    }

    .bi-login-hero {
        min-height: 250px;
    }

    .bi-login-brand--hero {
        top: 20px;
    }

    .bi-login-brand__central-logo {
        max-width: 168px;
        max-height: 46px;
    }

    .bi-login-hero__copy {
        padding: 76px 32px 30px;
    }

    .bi-login-hero__copy h1 {
        margin-top: 16px;
        font-size: clamp(28px, 5vw, 36px);
    }

    .bi-login-hero__copy > p {
        display: none;
    }

    .bi-login-capabilities {
        margin-top: 20px;
    }

    .bi-login-hero__signature {
        display: none;
    }

    .bi-login-access {
        min-height: 0;
        padding: 42px 24px;
    }
}

@media (max-width: 520px) {
    .bi-login-hero {
        min-height: 220px;
    }

    .bi-login-brand--hero {
        top: 16px;
    }

    .bi-login-brand__central-logo {
        max-width: 148px;
        max-height: 42px;
    }

    .bi-login-hero__copy {
        padding: 64px 22px 20px;
    }

    .bi-login-eyebrow {
        font-size: 10px;
    }

    .bi-login-hero__copy h1 {
        margin-bottom: 0;
        font-size: clamp(23px, 6.5vw, 27px);
    }

    .bi-login-capabilities {
        gap: 6px;
        margin-top: 12px;
    }

    .bi-login-capabilities li {
        padding: 6px 9px;
        font-size: 10px;
    }

    .bi-login-access {
        padding: 30px 20px;
    }

    .bi-login-eyebrow--form {
        margin-bottom: 14px;
    }

    .bi-login-card__header h2 {
        font-size: 29px;
    }

    .bi-login-card__header {
        margin-bottom: 24px;
    }

    .bi-login-field {
        margin-bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bi-login-control,
    .bi-login-submit.btn {
        transition: none;
    }
}
