﻿
/* ============================================================
   AJVCONTROL SISTEMAS
   LOGIN - CSS COMPLETO
   Layout institucional + autenticação + MFA
   ============================================================ */

/* ============================================================
   1. VARIÁVEIS E CONFIGURAÇÕES GERAIS
   ============================================================ */

:root {
    --ajv-primary: #0b4b89;
    --ajv-primary-dark: #082d55;
    --ajv-navy: #071d37;
    --ajv-accent: #34b6de;
    --ajv-text: #26364a;
    --ajv-muted: #748195;
    --ajv-border: #e1e7ee;
    --ajv-background: #f6f8fb;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    color: var(--ajv-text);
    background: var(--ajv-background);
}

a {
    text-decoration: none;
}

/* ============================================================
   2. ESTRUTURA PRINCIPAL
   ============================================================ */

.ajv-login-layout {
    display: grid;
    grid-template-columns: minmax(390px, 43%) minmax(0, 57%);
    width: 100%;
    min-height: 100vh;
}

/* ============================================================
   3. LADO ESQUERDO - ÁREA DE LOGIN
   ============================================================ */

.ajv-login-left {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: 35px 38px 25px;
    background: #ffffff;
}

.ajv-login-content {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    transform: none;
}

/* ============================================================
   4. LOGOMARCA
   ============================================================ */

.ajv-login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.ajv-login-logo {
    display: block;
    width: auto;
    max-width: 290px;
    max-height: 110px;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* ============================================================
   5. TÍTULO E DESCRIÇÃO
   ============================================================ */

.ajv-login-heading {
    margin-bottom: 25px;
    text-align: center;
}

.ajv-login-eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--ajv-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.ajv-login-heading h1 {
    margin: 0 0 8px;
    color: var(--ajv-navy);
    font-size: 29px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.ajv-login-heading p {
    margin: 0;
    color: var(--ajv-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

/* ============================================================
   6. FORMULÁRIO DE LOGIN
   ============================================================ */

.ajv-login-form .form-label {
    margin-bottom: 7px;
    color: #34465a;
    font-size: 12px;
    font-weight: 600;
}

.ajv-login-form .mb-4 {
    margin-bottom: 17px !important;
}

.ajv-login-form .mb-3 {
    margin-bottom: 13px !important;
}

.ajv-input-group {
    overflow: hidden;
    border: 1px solid var(--ajv-border);
    border-radius: 11px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .ajv-input-group:focus-within {
        border-color: var(--ajv-primary);
        box-shadow: 0 0 0 3px rgba(11, 75, 137, 0.10);
    }

    .ajv-input-group .input-group-text {
        padding: 0 13px;
        border: 0;
        background: #f9fafc;
        color: #8190a1;
        font-size: 13px;
    }

    .ajv-input-group .form-control {
        min-height: 46px;
        border: 0;
        background: #ffffff;
        color: var(--ajv-text);
        font-size: 13px;
        box-shadow: none;
    }

        .ajv-input-group .form-control:focus {
            box-shadow: none;
        }

        .ajv-input-group .form-control::placeholder {
            color: #a3acb8;
        }

.ajv-senha-toggle {
    cursor: pointer;
    transition: color 0.2s;
}

    .ajv-senha-toggle:hover {
        color: var(--ajv-primary);
    }

/* ============================================================
   7. RECUPERAÇÃO DE SENHA
   ============================================================ */

.ajv-login-recuperar {
    margin: 0 0 19px;
    text-align: right;
}

    .ajv-login-recuperar a {
        color: var(--ajv-primary);
        font-size: 12px;
        font-weight: 600;
    }

        .ajv-login-recuperar a:hover {
            text-decoration: underline;
        }

/* ============================================================
   8. BOTÃO DE LOGIN
   ============================================================ */

.ajv-btn-login {
    min-height: 47px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(120deg, #0b4b89, #0863a6);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(11, 75, 137, 0.18);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

    .ajv-btn-login:hover,
    .ajv-btn-login:focus {
        background: linear-gradient(120deg, #093e73, #07538d);
        color: #ffffff;
        box-shadow: 0 11px 22px rgba(11, 75, 137, 0.23);
    }

    .ajv-btn-login:active {
        transform: translateY(1px);
    }

/* ============================================================
   9. SEGURANÇA
   ============================================================ */

.ajv-login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 21px;
    padding: 11px 12px;
    border: 1px solid #e3edf5;
    border-radius: 10px;
    background: #f5f9fd;
    color: #667b90;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

    .ajv-login-security i {
        color: var(--ajv-primary);
        font-size: 14px;
    }

/* ============================================================
   10. RODAPÉ DO LOGIN
   ============================================================ */

.ajv-login-footer {
    margin-top: 25px;
    text-align: center;
}

    .ajv-login-footer a {
        color: var(--ajv-primary);
        font-size: 11px;
        font-weight: 600;
    }

        .ajv-login-footer a:hover {
            text-decoration: underline;
        }

    .ajv-login-footer p {
        margin: 13px 0 0;
        color: #9aa5b1;
        font-size: 10px;
    }

/* ============================================================
   11. LADO DIREITO - PAINEL INSTITUCIONAL
   ============================================================ */

.ajv-login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    padding: 45px 55px;
    background: linear-gradient(145deg, #0b477f 0%, #082f59 48%, #061c35 100%);
    color: #ffffff;
}

.ajv-institucional-content {
    width: 100%;
    max-width: 790px;
    margin: 0 auto;
}

/* ============================================================
   12. IDENTIFICAÇÃO INSTITUCIONAL
   ============================================================ */

.ajv-institucional-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 29px;
}

.ajv-institucional-label {
    color: #d7edff;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 1.2px;
}

    .ajv-institucional-label i {
        margin-right: 7px;
        color: var(--ajv-accent);
    }

.ajv-institucional-tag {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.07);
    color: #c5d9ec;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 1px;
}

/* ============================================================
   13. TÍTULO INSTITUCIONAL
   ============================================================ */

.ajv-institucional-heading {
    margin-bottom: 28px;
}

    .ajv-institucional-heading h2 {
        margin: 0 0 15px;
        color: #ffffff;
        font-size: clamp(32px, 3.2vw, 49px);
        font-weight: 800;
        line-height: 1.13;
        letter-spacing: -1.5px;
    }

        .ajv-institucional-heading h2 span {
            color: #69d0ef;
        }

    .ajv-institucional-heading p {
        max-width: 640px;
        margin: 0;
        color: #c3d6e9;
        font-size: 14px;
        line-height: 1.75;
    }

/* ============================================================
   14. TELAS FLUTUANTES - PERSPECTIVA LATERAL REAL
   ============================================================ */

.ajv-sistema-showcase {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 390px;
    margin: 20px 0 24px;
    perspective: 950px;
    perspective-origin: 48% 46%;
    transform-style: preserve-3d;
}

    .ajv-sistema-showcase::before {
        content: "";
        position: absolute;
        left: 10%;
        right: 8%;
        bottom: 8px;
        height: 90px;
        background: rgba(35, 165, 233, 0.22);
        border-radius: 50%;
        filter: blur(35px);
        pointer-events: none;
    }

/* Dashboard em primeiro plano, realmente visto de lado */
.ajv-tela-principal {
    position: absolute;
    z-index: 3;
    left: 19%;
    top: 34px;
    width: 74%;
    overflow: hidden;
    border: 1px solid rgba(210, 236, 255, 0.8);
    border-radius: 11px;
    background: #fff;
    box-shadow: -25px 30px 55px rgba(0, 7, 24, 0.52), 0 0 25px rgba(65, 169, 239, 0.13);
    transform: rotateY(-27deg) rotateX(7deg) rotateZ(-2deg) translateZ(58px);
    transform-origin: 50% 50%;
    backface-visibility: hidden;
}

.ajv-tela-barra {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    background: #eaf0f6;
}

    .ajv-tela-barra > span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #c1ccd7;
    }

        .ajv-tela-barra > span:first-child {
            background: #e99898;
        }

        .ajv-tela-barra > span:nth-child(2) {
            background: #e9c37a;
        }

        .ajv-tela-barra > span:nth-child(3) {
            background: #8ccba7;
        }

    .ajv-tela-barra small {
        margin-left: 9px;
        color: #60748b;
        font-size: 9px;
        font-weight: 650;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.ajv-tela-principal img {
    display: block;
    width: 100%;
    height: 275px;
    object-fit: contain;
    object-position: center;
    background: #fff;
}

/* Telas secundárias soltas, sobrepostas e inclinadas */
.ajv-telas-secundarias {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    transform-style: preserve-3d;
}

.ajv-tela-mini {
    position: absolute;
    width: 43%;
    overflow: hidden;
    border: 1px solid rgba(195, 230, 252, 0.7);
    border-radius: 9px;
    background: #fff;
    box-shadow: -18px 25px 40px rgba(0, 7, 24, 0.45);
    backface-visibility: hidden;
}

    .ajv-tela-mini:first-child {
        left: 0;
        top: 8px;
        z-index: 1;
        transform: rotateY(-37deg) rotateX(7deg) rotateZ(-7deg) translateZ(-65px);
        transform-origin: center;
    }

    .ajv-tela-mini:last-child {
        right: -2%;
        top: 166px;
        z-index: 4;
        transform: rotateY(-30deg) rotateX(7deg) rotateZ(5deg) translateZ(75px);
        transform-origin: center;
    }

    .ajv-tela-mini img {
        display: block;
        width: 100%;
        height: 170px;
        object-fit: contain;
        object-position: center;
        background: #fff;
    }

    .ajv-tela-mini > span {
        display: block;
        padding: 9px 10px;
        border-top: 1px solid #e7edf3;
        background: #f8fafc;
        color: #344b62;
        font-size: 11px;
        font-weight: 700;
        text-align: center;
    }

/* ============================================================
   16. RECURSOS DO SISTEMA
   ============================================================ */

.ajv-institucional-recursos {
    display: flex;
    flex-wrap: wrap;
    gap: 11px 20px;
    margin: 26px 0;
}

    .ajv-institucional-recursos span {
        color: #d5e6f5;
        font-size: 12px;
    }

    .ajv-institucional-recursos i {
        margin-right: 7px;
        color: #65d8b2;
    }

/* ============================================================
   17. CHAMADA COMERCIAL
   ============================================================ */

.ajv-institucional-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding: 21px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.07);
}

    .ajv-institucional-cta strong {
        display: block;
        margin-bottom: 5px;
        color: #ffffff;
        font-size: 13px;
    }

    .ajv-institucional-cta p {
        margin: 0;
        color: #bed2e5;
        font-size: 12px;
        line-height: 1.6;
    }

.ajv-btn-conhecer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 17px;
    border-radius: 9px;
    background: #ffffff;
    color: #0b477f;
    font-size: 12px;
    font-weight: 750;
    text-align: center;
    transition: background 0.2s, transform 0.2s;
}

    .ajv-btn-conhecer:hover {
        background: #e6f5fc;
        color: #073b72;
        transform: translateY(-1px);
    }

/* ============================================================
   18. MODAL DE VERIFICAÇÃO MFA
   ============================================================ */

.ajv-mfa-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.ajv-mfa-modal .modal-header {
    padding: 20px 24px;
    border-bottom: 0;
    background: linear-gradient(120deg, #0b4b89, #07345f);
    color: #ffffff;
}

.ajv-mfa-modal .modal-title {
    font-size: 17px;
    font-weight: 700;
}

.ajv-mfa-modal .modal-body {
    padding: 30px 25px 18px;
}

.ajv-mfa-icon {
    font-size: 42px;
}

.ajv-codigo-acesso {
    min-height: 55px;
    border: 1px solid var(--ajv-border);
    border-radius: 9px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 8px;
}

    .ajv-codigo-acesso:focus {
        border-color: var(--ajv-primary);
        box-shadow: 0 0 0 3px rgba(11, 75, 137, 0.10);
    }

/* ============================================================
   19. OVERLAYS DE LOGIN E MFA
   ============================================================ */

.ajv-login-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.ajv-overlay-codigo {
    z-index: 99999;
}

.ajv-overlay-content {
    text-align: center;
    color: #ffffff;
}

.ajv-overlay-spinner {
    width: 3rem;
    height: 3rem;
}

.ajv-overlay-text {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #ffffff;
}

.ajv-overlay-subtext {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.78);
}

/* ============================================================
   20. TELAS INTERMEDIÁRIAS
   ============================================================ */

@media (max-width: 1100px) {
    .ajv-login-layout {
        grid-template-columns: minmax(350px, 44%) minmax(0, 56%);
    }

    .ajv-login-left {
        padding: 30px 25px;
    }

    .ajv-login-right {
        padding: 40px 30px;
    }

    .ajv-institucional-heading h2 {
        font-size: 36px;
    }
}

/* ============================================================
   21. NOTEBOOKS COM POUCA ALTURA
   ============================================================ */

@media (min-width: 801px) and (max-height: 750px) {
    .ajv-login-left {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .ajv-login-brand {
        margin-bottom: 15px;
    }

    .ajv-login-heading {
        margin-bottom: 18px;
    }

    .ajv-login-security {
        margin-top: 15px;
    }

    .ajv-login-footer {
        margin-top: 18px;
    }
}

/* ============================================================
   21A. SHOWCASE 3D EM TELAS MENORES
   ============================================================ */

@media (max-width: 1200px) and (min-width: 801px) {
    .ajv-sistema-showcase {
        height: 315px;
    }

    .ajv-tela-principal img {
        height: 215px;
    }

    .ajv-tela-mini:first-child {
        top: 6px;
    }

    .ajv-tela-mini:last-child {
        top: 130px;
    }

    .ajv-tela-mini img {
        height: 155px;
    }

    .ajv-tela-mini > span {
        font-size: 10px;
    }
}

@media (min-width: 801px) and (max-height: 720px) {
    .ajv-login-content {
        transform: none;
    }

    .ajv-sistema-showcase {
        margin-top: 15px;
        margin-bottom: 16px;
    }
}

/* ============================================================
   22. TABLETS
   ============================================================ */

@media (max-width: 800px) {
    .ajv-login-layout {
        grid-template-columns: 1fr;
    }

    .ajv-login-left {
        min-height: auto;
        padding: 40px 22px;
    }

    .ajv-login-content {
        max-width: 440px;
        margin: 0 auto;
    }

    .ajv-login-brand {
        margin-bottom: 25px;
    }

    .ajv-login-right {
        padding: 45px 24px;
    }

    .ajv-institucional-content {
        max-width: 650px;
    }
}

/* Em tablets e celulares, telas retas para leitura e acessibilidade. */
@media (max-width: 800px) {
    .ajv-sistema-showcase {
        height: auto;
        padding: 0;
        perspective: none;
    }

    .ajv-tela-principal {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        transform: none;
    }

        .ajv-tela-principal img {
            height: auto;
            max-height: 310px;
        }

    .ajv-telas-secundarias {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-top: 14px;
        pointer-events: auto;
    }

    .ajv-tela-mini,
    .ajv-tela-mini:first-child,
    .ajv-tela-mini:last-child {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        transform: none;
    }

        .ajv-tela-mini img {
            height: 140px;
        }
}

/* ============================================================
   23. CELULARES
   ============================================================ */

@media (max-width: 480px) {
    .ajv-login-left {
        padding: 32px 20px;
    }

    .ajv-login-right {
        padding: 35px 20px;
    }

    .ajv-login-logo {
        max-width: 220px;
    }

    .ajv-login-heading h1 {
        font-size: 28px;
    }

    .ajv-institucional-heading h2 {
        font-size: 31px;
    }

    .ajv-telas-secundarias {
        grid-template-columns: 1fr;
    }

    .ajv-tela-mini img {
        height: 170px;
    }

    .ajv-institucional-cta {
        align-items: stretch;
    }

    .ajv-btn-conhecer {
        width: 100%;
    }

    .ajv-institucional-tag {
        display: none;
    }
}
