:root {
    --login-bg-1: #061a2a;
    --login-bg-2: #0a2a44;
    --login-bg-3: #0d3a5f;
    --login-card-bg: rgba(255, 255, 255, 0.985);
    --login-texto: #0f2c45;
    --login-texto-suave: #53718a;
    --login-borda: #cddae6;
    --login-acento: #1f84cc;
    --login-acento-escuro: #145f97;
    --login-sucesso: #0f8a63;
}

.login-page-monitoramento {
    position: relative;
    min-height: 100vh;
    margin: 0;
    padding: 30px 20px;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 10%, rgba(54, 166, 245, 0.2), transparent 40%),
        radial-gradient(circle at 90% 88%, rgba(57, 144, 211, 0.22), transparent 36%),
        linear-gradient(135deg, var(--login-bg-1) 0%, var(--login-bg-2) 45%, var(--login-bg-3) 100%);
    font-family: "Source Sans Pro", sans-serif;
}

.login-page-monitoramento::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(115deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(295deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 34px 34px, 44px 44px;
    opacity: 0.32;
}

.login-shell {
    position: relative;
    z-index: 1;
    width: min(1160px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(520px, 1.15fr) minmax(360px, 0.9fr);
    gap: 0;
    align-items: stretch;
    border: 1px solid rgba(197, 224, 245, 0.38);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 56px rgba(4, 18, 31, 0.34);
    background: linear-gradient(120deg, rgba(8, 40, 64, 0.7), rgba(14, 55, 86, 0.55));
}

.login-apresentacao {
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(175, 213, 238, 0.26);
    border-radius: 0;
    background-image:
        linear-gradient(145deg, rgba(6, 36, 58, 0.88), rgba(8, 33, 53, 0.9)),
        url("../images/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #f2f9ff;
    padding: 40px 38px;
}

.login-apresentacao::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(79, 189, 255, 0.44), rgba(79, 189, 255, 0.06) 66%, transparent 74%);
}

.apresentacao-conteudo {
    position: relative;
    z-index: 1;
}

.apresentacao-topo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.apresentacao-logo {
    width: 190px;
    max-width: 70%;
}

.apresentacao-selo {
    border: 1px solid rgba(196, 234, 255, 0.44);
    border-radius: 5px;
    background: rgba(18, 88, 137, 0.34);
    color: #cdefff;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 6px 10px;
    white-space: nowrap;
}

.login-apresentacao h1 {
    margin: 0;
    color: #ffffff;
    font-size: 2.02rem;
    line-height: 1.22;
    font-weight: 700;
}

.login-apresentacao p {
    margin: 14px 0 0;
    color: rgba(232, 245, 255, 0.92);
    font-size: 1.02rem;
    line-height: 1.6;
}

.apresentacao-metricas {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.metrica-card {
    border: 0;
    border-left: 2px solid rgba(118, 206, 255, 0.72);
    border-radius: 4px;
    background: rgba(20, 78, 118, 0.24);
    padding: 10px 14px 10px 14px;
    position: relative;
}

.metrica-card::before {
    display: none;
}

.metrica-card strong {
    display: block;
    font-size: 0.98rem;
    color: #f8fcff;
    margin-bottom: 2px;
}

.metrica-card span {
    display: block;
    font-size: 0.9rem;
    color: #d6ebf9;
    line-height: 1.45;
}

.apresentacao-pista {
    margin-top: 22px;
    display: grid;
    gap: 7px;
}

.apresentacao-pista span {
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(107, 208, 255, 0.86), rgba(255, 255, 255, 0));
}

.apresentacao-pista span:nth-child(1) {
    width: 94%;
}

.apresentacao-pista span:nth-child(2) {
    width: 82%;
}

.apresentacao-pista span:nth-child(3) {
    width: 98%;
}

.login-box-painel {
    width: 100%;
    margin: 0;
    align-self: stretch;
    display: block;
    background: #f4f8fc;
}

.login-box-painel .card {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: #f4f8fc;
    box-shadow: none;
    overflow: visible;
}

.login-card-body {
    padding: 34px 34px 28px;
}

.login-card-head {
    position: relative;
    text-align: center;
    padding-bottom: 15px;
    margin-bottom: 14px;
}

.login-card-head::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(49, 105, 149, 0), rgba(49, 105, 149, 0.38), rgba(49, 105, 149, 0));
}

.logoindex {
    text-align: center;
    margin-bottom: 10px;
}

.logoindex img {
    width: 170px;
    max-width: 82%;
}

.login-step-indicator {
    display: inline-block;
    border: 1px solid #cfe0ee;
    border-radius: 5px;
    background: #f2f7fc;
    color: #2f5f86;
    letter-spacing: 0.03em;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 8px;
}

.login-step-dinamico {
    margin-bottom: 10px;
}

.login-title {
    margin: 12px 0 5px;
    color: var(--login-texto);
    font-size: 1.62rem;
    font-weight: 700;
    line-height: 1.2;
}

.login-box-msg {
    margin: 0;
    color: var(--login-texto-suave);
    font-size: 0.98rem;
    line-height: 1.45;
}

.loader {
    min-height: 22px;
    color: #345775;
    font-size: 0.89rem;
    margin-bottom: 8px;
}

.loader img {
    margin-right: 6px;
}

.loader .alert {
    margin-bottom: 0;
    border-radius: 6px;
    font-size: 0.86rem;
    padding: 9px 11px;
}

.login-input-group {
    margin-top: 6px;
    margin-bottom: 13px !important;
}

.loginpasso1 .form-control,
.loginpasso2 .form-control,
.passrecover .form-control {
    height: 45px;
    border: 1px solid var(--login-borda);
    border-right: 0;
    border-radius: 5px 0 0 5px !important;
    color: var(--login-texto);
    font-size: 0.95rem;
    box-shadow: none !important;
}

.passrecover .form-control {
    border-right: 1px solid var(--login-borda);
    border-radius: 5px !important;
}

.loginpasso1 .form-control::placeholder,
.loginpasso2 .form-control::placeholder,
.passrecover .form-control::placeholder {
    color: #8ca2b6;
}

.loginpasso1 .form-control:focus,
.loginpasso2 .form-control:focus,
.passrecover .form-control:focus {
    border-color: #3295dd;
    box-shadow: 0 0 0 2px rgba(50, 149, 221, 0.17) !important;
}

.loginpasso1 .input-group-text,
.loginpasso2 .input-group-text {
    border: 1px solid var(--login-borda);
    border-left: 0;
    border-radius: 0 5px 5px 0;
    background: #f5f9fd;
    color: #4f6881;
}

.login-actions {
    align-items: center;
}

.login-buttons-inline {
    display: flex;
    gap: 8px;
}

.btn-login-primary,
.btn-login-submit,
.btn-login-back,
.btn-cadastro {
    width: 100%;
    border-radius: 5px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.btn-login-primary,
.btn-login-submit {
    border: 1px solid var(--login-acento-escuro);
    background: linear-gradient(135deg, var(--login-acento), var(--login-acento-escuro));
    color: #ffffff;
}

.btn-login-primary:hover,
.btn-login-primary:focus,
.btn-login-submit:hover,
.btn-login-submit:focus {
    background: linear-gradient(135deg, #1c76b6, #114f7e);
    border-color: #114f7e;
}

.btn-login-back {
    border: 1px solid #9fb8cd;
    background: #f4f8fc;
    color: #2c4f6d;
}

.btn-login-back:hover,
.btn-login-back:focus {
    border-color: #8ea8be;
    background: #e8f0f7;
    color: #1f425f;
}

.login-link-col {
    text-align: right;
    padding-top: 4px;
}

.login-link {
    color: #1668a3;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.login-link:hover,
.login-link:focus {
    color: #114e79;
    text-decoration: underline;
}

.login-divider {
    margin: 17px 0 12px;
    border-top: 1px solid #e0e9f1;
}

.btn-cadastro {
    border: 1px solid #1e6d4f;
    background: linear-gradient(135deg, var(--login-sucesso), #0a6a4b);
    color: #ffffff;
}

.btn-cadastro:hover,
.btn-cadastro:focus {
    background: linear-gradient(135deg, #0d7958, #085a40);
    border-color: #085a40;
}

.login-disclaimer {
    margin: 12px 0 0;
    color: #6a8298;
    font-size: 0.8rem;
    line-height: 1.45;
    text-align: center;
}

.nome {
    text-align: center;
    margin-bottom: 8px;
    color: #1e4566;
    font-size: 0.95rem;
    font-weight: 700;
}

.alert-aaa {
    border: 1px solid #c4daf0;
    border-radius: 5px;
    background: #eff6fd;
    color: #255983;
    font-size: 0.88rem;
    padding: 10px 11px;
    margin-bottom: 12px;
}

.alert-aaa p {
    margin: 0 0 5px;
}

.alert-aaa p:last-child {
    margin-bottom: 0;
}

.login-step-label {
    margin-bottom: 8px;
    color: #2b4d69;
    font-size: 0.9rem;
    font-weight: 700;
}

.login-profile-options {
    width: 100%;
    display: flex;
    margin-bottom: 12px;
}

.login-profile-options .btn {
    flex: 1;
    margin-right: 8px;
    border: 1px solid #9ec3e2;
    border-radius: 5px !important;
    background: #ffffff;
    color: #2d608b;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.login-profile-options .btn:last-child {
    margin-right: 0;
}

.login-profile-options .btn.active,
.login-profile-options .btn:not(:disabled):not(.disabled):active {
    background: #1f7bbf;
    border-color: #1a679f;
    color: #ffffff;
}

.debug,
.debugfim {
    min-height: 18px;
}

#recorverpass .modal-content {
    border: 1px solid #d8e3ee;
    border-radius: 8px;
}

#recorverpass .modal-header {
    border-bottom: 1px solid #dbe6f0;
    background: #f5f9fd;
}

#recorverpass .modal-footer {
    border-top: 1px solid #dbe6f0;
}

#recorverpass .btn {
    border-radius: 5px;
}

.login-apresentacao,
.login-box-painel .card {
    animation: fadeUp 0.46s ease both;
}

.login-box-painel .card {
    animation-delay: 0.08s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .login-apresentacao {
        order: 2;
        border-right: 0;
        border-top: 1px solid rgba(175, 213, 238, 0.22);
        padding: 30px 24px;
    }

    .login-box-painel {
        order: 1;
        display: block;
    }

    .apresentacao-topo {
        align-items: center;
        justify-content: flex-start;
    }

    .login-apresentacao h1 {
        font-size: 1.72rem;
    }
}

@media (max-width: 767px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 470px;
        border-radius: 10px;
    }

    .login-apresentacao {
        display: none;
    }

    .login-box-painel {
        order: 1;
        background: #f4f8fc;
    }

    .login-card-body {
        padding: 24px 18px 20px;
    }

    .login-card-head {
        margin-bottom: 10px;
        padding-bottom: 12px;
    }

    .login-divider {
        margin: 14px 0 10px;
    }
}

@media (max-width: 576px) {
    .login-page-monitoramento {
        padding: 16px 11px;
    }

    .login-card-body {
        padding: 22px 16px 18px;
    }

    .apresentacao-logo {
        width: 162px;
    }

    .login-title {
        font-size: 1.46rem;
    }

    .login-link-col {
        text-align: left;
        padding-top: 9px;
    }

    .login-buttons-inline {
        flex-direction: column;
    }
}
