:root {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #101d31;
    background: #001c31;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

button, input {
    font: inherit;
}

button {
    cursor: pointer;
}

.disabled-field {
    background-color: #eef1f5 !important;
    color: #8a94a6 !important;
    cursor: not-allowed;
    opacity: 0.75;
}

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(580px, .89fr);
}

.login-showcase {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: clamp(42px, 8vw, 118px) clamp(44px, 7vw, 116px);
    color: #fff;
    background: radial-gradient(circle at 64% 43%, #14536d60 0 9%, transparent 30%), linear-gradient(112deg, #00182d 0%, #00243d 48%, #001628 100%);
}

.login-showcase::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .2;
    background: repeating-linear-gradient(115deg, transparent 0 48px, #7fb5c21c 49px 50px, transparent 51px 104px);
}

.showcase-content {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 630px;
    width: min(100%, 555px);
    flex-direction: column;
    justify-content: space-between;
}

.company-logo {
    display: flex;
    align-items: center;
    align-self: flex-start;
    gap: 15px;
    text-decoration: none;
    color: #fff;
}

/* .logo-frame {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 9px 24px #00000035;
} */

.logo-frame {
    transform: translateY(-20px);
    display: grid;
    width: 350px;
    height: auto;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    /* background: #fff; */
    box-shadow: 0 9px 24px #00000035;
}

.company-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-logo-fallback {
    display: none;
    grid-template-columns: auto 1fr;
    column-gap: 7px;
    align-items: baseline;
    font-size: clamp(1.6rem, 2.4vw, 2.28rem);
    font-weight: 300;
    letter-spacing: -.04em;
}

.company-logo-fallback {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 7px;
    align-items: baseline;
    font-size: clamp(1.6rem, 2.4vw, 2.28rem);
    font-weight: 300;
    letter-spacing: -.04em;
}

.company-logo-fallback strong {
    font-weight: 800;
}

.company-logo-fallback small {
    grid-column: 1 / -1;
    margin-top: 2px;
    font-size: .34em;
    letter-spacing: 0;
}

.showcase-message {
    max-width: 460px;
}

.platform-name {
    margin: 0 0 5px;
    color: #ff711f;
    font-size: clamp(1rem, 1.5vw, 1.27rem);
    font-weight: 800;
    letter-spacing: .18em;
}

.showcase-message h1 {
    margin: 0;
    font-size: clamp(2.25rem, 3.7vw, 3.5rem);
    line-height: 1.14;
    letter-spacing: -.045em;
}

.orange-rule {
    display: block;
    width: 62px;
    height: 3px;
    margin: 30px 0;
    background: #ff6814;
}

.showcase-message > p:not(.platform-name) {
    margin: 0;
    max-width: 430px;
    font-size: clamp(1rem, 1.28vw, 1.18rem);
    line-height: 1.62;
}

.feature-list {
    display: flex;
    max-width: 530px;
    justify-content: space-between;
    gap: 18px;
}

.feature {
    display: grid;
    justify-items: center;
    gap: 11px;
    color: #fff;
    font-size: .84rem;
    text-align: center;
    white-space: nowrap;
}

.feature-icon {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    border-radius: 50%;
    color: #ff6814;
    background: #173d588c;
}

.feature-icon i {
    font-size: 2.35rem;
    line-height: 1;
}

.feature:nth-child(2) .feature-icon svg {
    fill: currentColor;
    stroke: none;
}

.login-panel {
    display: grid;
    place-items: center;
    padding: 36px clamp(30px, 6vw, 110px);
    background: #fafbfd;
}

.login-card {
    width: min(100%, 540px);
}

.login-heading {
    margin-bottom: 47px;
}

.login-heading h2 {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 2.35vw, 2.3rem);
    letter-spacing: -.035em;
}

.login-heading p {
    margin: 0;
    color: #627086;
    font-size: 1.12rem;
}

.login-form {
    display: grid;
    gap: 13px;
}

.login-form > label {
    margin-top: 17px;
    font-size: 1rem;
    font-weight: 650;
}

.input-wrap {
    position: relative;
}

.input-wrap > i {
    position: absolute;
    top: 50%;
    left: 18px;
    z-index: 1;
    transform: translateY(-50%);
    color: #3a4f69;
    font-size: 1.35rem;
    line-height: 1;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    height: 64px;
    padding: 0 52px 0 58px;
    border: 1px solid #d7dfeb;
    border-radius: 9px;
    outline: 0;
    color: #17243a;
    background: #fff;
    font-size: 1.05rem;
    transition: border .18s, box-shadow .18s;
}

.input-wrap input::placeholder {
    color: #69778d;
}

.input-wrap input:focus {
    border-color: #ff6814;
    box-shadow: 0 0 0 3px #ff681429;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    color: #3a4f69;
    background: transparent;
}

.password-toggle i {
    width: 23px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 13px 0 30px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .95rem;
}

.remember input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #ff6814;
}

.text-action {
    padding: 0;
    border: 0;
    color: #0069ff;
    background: transparent;
    font-size: .95rem;
}

.text-action:hover {
    text-decoration: underline;
}

.login-submit {
    display: flex;
    height: 64px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #ff6814;
    box-shadow: 0 8px 16px #ff681430;
    font-size: 1.15rem;
    font-weight: 750;
    transition: transform .18s, background .18s;
}

.login-submit:hover {
    background: #e9540a;
    transform: translateY(-1px);
}

.login-submit i {
    width: 25px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.or-divider {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 37px 0;
    color: #637187;
    font-size: .9rem;
}

.or-divider::before, .or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dbe2ea;
}

.sso-button {
    display: flex;
    width: 100%;
    height: 64px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border: 1px solid #d7dfeb;
    border-radius: 8px;
    color: #14243b;
    background: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    transition: border .18s, background .18s;
}

.sso-button:hover {
    border-color: #9eabbc;
    background: #f7faff;
}

.sso-button i {
    width: 25px;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
}

.login-card footer {
    margin-top: 59px;
    color: #748299;
    font-size: .88rem;
    text-align: center;
}

.alert {
    margin: -25px 0 24px;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: .92rem;
}

.alert-error {
    color: #a51d27;
    background: #fde8e9;
}

.alert-success {
    color: #166534;
    background: #dcfce7;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #0c1f3e, #2563a9);
}

.login-page .login-card {
    padding: 36px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 50px #07152d66;
}

.eyebrow {
    margin-bottom: 4px;
    color: #5a6a83;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.intro {
    margin: 28px 0 20px;
    color: #536176;
}

.dashboard {
    max-width: 1000px;
    margin: auto;
    padding: 35px 24px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.panel {
    padding: 28px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 12px #17203312;
}

@media (max-width: 1100px) {
    .login-layout {
        grid-template-columns: minmax(370px, .8fr) minmax(520px, 1fr);
    }

    .login-showcase {
        padding-inline: 46px;
    }

    .showcase-content {
        min-height: 580px;
    }

    .feature-icon {
        width: 65px;
        height: 65px;
    }

    .feature {
        font-size: .72rem;
    }
}

@media (max-width: 820px) {
    .login-layout {
        display: block;
    }

    .login-showcase {
        min-height: 275px;
        padding: 35px 28px;
    }

    .showcase-content {
        min-height: 0;
    }

    .showcase-message, .feature-list {
        display: none;
    }

    .company-logo-fallback {
        font-size: 2rem;
    }

    .login-panel {
        min-height: calc(100vh - 275px);
        padding: 48px 27px;
    }

    .login-heading {
        margin-bottom: 32px;
    }
}

@media (max-width: 430px) {
    .login-panel {
        padding: 39px 19px;
    }

    .form-options {
        align-items: flex-start;
        gap: 17px;
        flex-direction: column;
        margin-bottom: 25px;
    }

    .login-card footer {
        margin-top: 42px;
        font-size: .77rem;
    }

    .login-heading h2 {
        font-size: 1.7rem;
    }
}

.feature-icon i {
    display: block;
    color: #ff6814;
    font-size: 2.2rem;
    line-height: 1;
}

/* ============================================================
   SCROLLBAR GLOBAL - SIGEC
   ============================================================ */

* {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

/* Firefox */
*:hover {
    scrollbar-color: rgba(120, 140, 160, 0.55) transparent;
}

/* Chrome / Edge / Safari */
*::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 999px;
}

*:hover::-webkit-scrollbar-thumb {
    background: rgba(120, 140, 160, 0.55);
}

/* Mouse sobre a própria barra */
*::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 140, 160, 0.90);
    box-shadow: 0 0 0 1px rgba(120, 140, 160, 0.20);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

.button-secondary {
    border: 0;
    border-radius: 9px;
    padding: 12px 16px;
    cursor: pointer;
    color: #174c83;
    background: #dcecff;
    font: inherit;
    font-weight: 800;
}

.button-secondary {
    display: inline-flex;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid #d9e1eb;
    border-radius: 7px;
    color: #58677d;
    background: #fff;
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button-secondary:hover {
    background: #f7f9fb;
}

/* ---------------------------------------------------------
   BOTÕES
   --------------------------------------------------------- */

.button-primary {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--admin-primary);
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 5px 12px rgba(255, 104, 20, .18);
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.button-primary:hover {
    color: #fff;
    background: var(--admin-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 7px 15px rgba(255, 104, 20, .25);
}

.button-primary i {
    font-size: .95rem;
}

.panel-header .button-primary {
    flex-shrink: 0;
}

.button-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    height: 40px;
    padding: 0 16px;

    border: 1px solid #dc3545;
    border-radius: 8px;

    color: #dc3545;
    background: #fff;

    font-size: .9rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        color .18s,
        background .18s,
        border-color .18s;
}

.button-danger:hover {
    color: #fff;
    background: #dc3545;
    border-color: #dc3545;
}

.button-danger i {
    font-size: 1rem;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.form-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.delete-user-form {
    margin: 0;
}

.sigec-modal-overlay {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(15, 23, 42, 0.55);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;

    z-index: 9999;
}

.sigec-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}


.sigec-modal {
    width: min(440px, calc(100% - 40px));

    background: #ffffff;

    border-radius: 12px;

    padding: 28px;

    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);

    transform: translateY(10px) scale(0.98);

    transition: transform 0.2s ease;
}

.sigec-modal-overlay.show .sigec-modal {
    transform: translateY(0) scale(1);
}


.sigec-modal-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 10px;

    color: #dc3545;
    background: #fff1f2;

    font-size: 20px;
}


.sigec-modal-content h3 {
    margin: 0 0 10px;

    font-size: 20px;
    font-weight: 700;

    color: #172033;
}


.sigec-modal-content p {
    margin: 0 0 8px;

    font-size: 14px;
    line-height: 1.5;

    color: #344054;
}


.sigec-modal-content p strong {
    color: #172033;
}


.sigec-modal-content small {
    display: block;

    font-size: 13px;
    line-height: 1.5;

    color: #667085;
}


.sigec-modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 10px;

    margin-top: 26px;
}
