* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f1f3f7;
    color: #27283a;
}

.pagina-login {
    min-height: 100vh;

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

    padding: 24px;
}

.card-login {
    width: 100%;
    max-width: 420px;

    background: #ffffff;

    border-radius: 22px;

    padding: 32px;

    box-shadow:
        0 20px 50px
        rgba(30, 30, 60, 0.12);
}

.logo-area {
    width: 100%;

    display: flex;
    justify-content: center;

    margin-bottom: 30px;
}

.logo {
    width: 100%;
    max-width: 320px;
    height: auto;

    display: block;
}

.cabecalho-login {
    text-align: center;

    margin-bottom: 30px;
}

.cabecalho-login h1 {
    font-size: 27px;
    font-weight: 700;

    color: #45456f;

    margin-bottom: 2px;
}

.cabecalho-login p {
    font-size: 12px;

    color: #747484;

    line-height: 1.5;
}

.form-login {
    display: flex;
    flex-direction: column;

    gap: 20px;
}

.campo {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.campo label {
    font-size: 14px;
    font-weight: 600;

    color: #45455a;
}

.campo input {
    width: 100%;
    height: 54px;

    padding: 0 16px;

    border: 1px solid #d5d5df;
    border-radius: 12px;

    background: #fafafa;

    font-size: 16px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.campo input:focus {
    background: #ffffff;

    border-color: #484872;

    box-shadow:
        0 0 0 4px
        rgba(72, 72, 114, 0.12);
}

.botao-entrar {
    width: 100%;
    height: 56px;

    margin-top: 4px;

    border: 0;
    border-radius: 20px;

    background: #484872;

    color: #ffffff;

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

    cursor: pointer;

    transition:
        transform 0.15s ease,
        background 0.2s ease;
}

.botao-entrar:hover {
    background: #3c3c64;
}

.botao-entrar:active {
    transform: scale(0.98);
}

.rodape-login {
    margin-top: 30px;

    padding-top: 20px;

    border-top: 1px solid #eeeeF3;

    text-align: center;

    color: #9999a8;

    font-size: 10px;
}


/* Ajustes específicos para smartphone */

@media (max-width: 480px) {

    .pagina-login {
        padding: 16px;
    }

    .card-login {
        padding: 28px 22px;

        border-radius: 18px;
    }

    .logo {
        max-width: 270px;
    }

    .cabecalho-login h1 {
        font-size: 26px;
    }

    .campo input {
        height: 56px;
    }

    .botao-entrar {
        height: 58px;
    }
}



.mensagem-erro {

    margin-bottom: 20px;

    padding: 14px 16px;

    border-radius: 10px;

    background: #fff0f0;

    border: 1px solid #f2c7c7;

    color: #a62d2d;

    font-size: 14px;

    text-align: center;

}

/* ========================================
   TELA DE RONDA
======================================== */

.pagina-ronda {
    min-height: 100vh;
    background: #f1f3f7;
}

.topo-ronda {
    height: 82px;

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

    padding: 14px 24px;

    background: #484872;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.logo-ronda {
    width: 190px;
    max-height: 54px;
    object-fit: contain;
}

.botao-sair {
    padding: 10px 16px;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 9px;

    color: #ffffff;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;
}

.conteudo-ronda {
    width: 100%;
    max-width: 600px;

    margin: 0 auto;

    padding: 28px 20px;
}

.boas-vindas {
    margin-bottom: 24px;
}

.boas-vindas p {
    color: #858594;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;

    margin-bottom: 4px;
}

.boas-vindas h1 {
    color: #363650;
    font-size: 25px;

    margin-bottom: 8px;
}

.boas-vindas span {
    display: inline-block;

    padding: 6px 11px;

    background: #e5f5e9;

    border-radius: 20px;

    color: #28783e;

    font-size: 12px;
    font-weight: 600;
}

.card-scanner {
    background: #ffffff;

    padding: 34px 26px;

    border-radius: 20px;

    text-align: center;

    box-shadow:
        0 12px 35px
        rgba(30, 30, 60, 0.08);
}

.icone-qr {
    width: 72px;
    height: 72px;

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

    margin: 0 auto 20px;

    border-radius: 18px;

    background: #eeeeF5;

    color: #484872;

    font-size: 45px;
}

.card-scanner h2 {
    color: #363650;

    font-size: 23px;

    margin-bottom: 10px;
}

.card-scanner p {
    max-width: 350px;

    margin: 0 auto 26px;

    color: #7b7b89;

    font-size: 15px;
    line-height: 1.55;
}

.botao-camera {
    width: 100%;
    height: 58px;

    border: 0;
    border-radius: 13px;

    background: #484872;

    color: #ffffff;

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

    cursor: pointer;
}

.botao-camera:active {
    transform: scale(0.98);
}

.status-ronda {
    margin-top: 20px;
}

.status-item {
    background: #ffffff;

    padding: 18px 20px;

    border-radius: 14px;

    box-shadow:
        0 8px 25px
        rgba(30, 30, 60, 0.05);
}

.status-titulo {
    display: block;

    color: #92929e;

    font-size: 12px;
    text-transform: uppercase;

    margin-bottom: 5px;
}

.status-item strong {
    color: #46465b;

    font-size: 14px;
}


/* Smartphone */

@media (max-width: 480px) {

    .topo-ronda {
        height: 72px;

        padding: 12px 16px;
    }

    .logo-ronda {
        width: 155px;
    }

    .conteudo-ronda {
        padding: 22px 16px;
    }

    .boas-vindas h1 {
        font-size: 22px;
    }

    .card-scanner {
        padding: 30px 20px;
    }

}

/* ========================================
   CAMERA / QR CODE
======================================== */

.oculto {
    display: none;
}

.area-camera {
    position: relative;

    width: 100%;

    margin-bottom: 20px;

    overflow: hidden;

    border-radius: 16px;

    background: #000000;
}

#video-camera {
    display: block;

    width: 100%;
    height: 320px;

    object-fit: cover;
}

.mira-camera {
    position: absolute;

    width: 210px;
    height: 210px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    border: 3px solid #ffffff;
    border-radius: 16px;

    box-shadow:
        0 0 0 9999px
        rgba(0, 0, 0, 0.25);

    pointer-events: none;
}


@media (max-width: 480px) {

    #video-camera {
        height: 300px;
    }

    .mira-camera {
        width: 190px;
        height: 190px;
    }

}

/* ========================================
   CONFIRMACAO DE REGISTRO
======================================== */

.mensagem-sucesso {

    margin-top: 20px;

    background: #ffffff;

    padding: 30px 24px;

    border-radius: 20px;

    text-align: center;

    box-shadow:
        0 12px 35px
        rgba(30, 30, 60, 0.08);

}


.icone-sucesso {

    width: 72px;
    height: 72px;

    margin: 0 auto 18px;

    display: flex;

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

    border-radius: 50%;

    background: #e4f6e8;

    color: #2f8a47;

    font-size: 38px;

    font-weight: 700;

}


.mensagem-sucesso h3 {

    margin-bottom: 12px;

    color: #363650;

    font-size: 23px;

}


.mensagem-sucesso strong {

    display: block;

    margin-bottom: 8px;

    color: #484872;

    font-size: 20px;

}


.mensagem-sucesso span {

    display: block;

    margin-bottom: 24px;

    color: #7d7d8c;

    font-size: 14px;

}


.botao-proximo {

    width: 100%;

    height: 56px;

    border: 0;

    border-radius: 12px;

    background: #484872;

    color: #ffffff;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

}


.botao-proximo:active {

    transform: scale(0.98);

}


.ultimo-horario {

    display: block;

    margin-top: 5px;

    color: #8a8a98;

    font-size: 13px;

}

.mensagem-erro-ronda {

    margin-top: 20px;

    background: #ffffff;

    padding: 30px 24px;

    border-radius: 20px;

    text-align: center;

    box-shadow:
        0 12px 35px
        rgba(30, 30, 60, 0.08);

}


.icone-erro {

    width: 72px;
    height: 72px;

    margin: 0 auto 18px;

    display: flex;

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

    border-radius: 50%;

    background: #fdeaea;

    color: #b23a3a;

    font-size: 38px;

    font-weight: 700;

}


.mensagem-erro-ronda h3 {

    margin-bottom: 12px;

    color: #363650;

    font-size: 22px;

}


.mensagem-erro-ronda p {

    margin-bottom: 24px;

    color: #7d7d8c;

    font-size: 15px;

    line-height: 1.5;

}


.botao-tentar {

    width: 100%;

    height: 56px;

    border: 0;

    border-radius: 12px;

    background: #484872;

    color: #ffffff;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

}

.icone-nfc {

    width: 78px;
    height: 78px;

    margin: 0 auto 20px;

    display: flex;

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

    border-radius: 22px;

    background: #eeeeF5;

    color: #484872;

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

    letter-spacing: 2px;

}


.resultado-nfc {

    min-height: 20px;

    margin-top: 16px;

    color: #686878;

    font-size: 14px;

    line-height: 1.5;

    text-align: center;

}

/* ========================================
   AVISO DA RONDA
======================================== */

.aviso-ronda {

    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 24px;

    padding: 14px 16px;

    background: #fff7e6;

    border: 1px solid #f0d49b;
    border-radius: 12px;

}


.aviso-icone {

    width: 36px;
    height: 36px;

    flex-shrink: 0;

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

    border-radius: 50%;

    background: #f2b84b;

    color: #ffffff;

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

}


.aviso-texto strong {

    display: block;

    margin-bottom: 3px;

    color: #775510;

    font-size: 14px;

}


.aviso-texto p {

    margin: 0;

    color: #80682e;

    font-size: 13px;

    line-height: 1.4;

}