/*
    Arquivo: public/assets/css/ccl-auth.css

    Data da atualização: 28/04/2026 às 10:58
    Autor / Responsável técnico: Rodrigo de Almeida Silveira

    Objetivo:
    Aplicar o layout moderno e institucional das telas públicas de autenticação
    do CCL Treinamento, especialmente o login do motorista e o acesso administrativo.

    O que foi ajustado:
    - Criados tokens CSS com a paleta oficial CCL;
    - Aplicado azul institucional #00377E;
    - Aplicado laranja accent #FFA500;
    - Criado fundo moderno com gradientes suaves;
    - Melhorado card de login;
    - Melhorada logo institucional;
    - Melhorados campos, labels, ícones, botões, alertas e estados de foco;
    - Criada diferenciação visual entre Motorista e Administrativo;
    - Preparada base visual para telas públicas futuras.

    Por quê:
    A tela de login é o primeiro contato do motorista com o sistema.
    Ela precisa transmitir confiança, modernidade, clareza e identidade visual CCL,
    sem depender diretamente da compilação SCSS/Vite na hospedagem.
*/

/* =========================================================
   01. TOKENS VISUAIS CCL
========================================================= */

:root {
    --ccl-primary: #00377E;
    --ccl-primary-hover: #002B63;
    --ccl-primary-strong: #001F47;
    --ccl-primary-soft: #E8F0FF;

    --ccl-accent: #FFA500;
    --ccl-accent-hover: #E69500;
    --ccl-accent-soft: #FFF3D6;

    --ccl-surface-body: #F4F7FC;
    --ccl-surface-soft: #EBF0FA;
    --ccl-surface-card: #FFFFFF;

    --ccl-dark-body: #0F1628;
    --ccl-dark-surface: #161E35;
    --ccl-dark-card: #1A2340;

    --ccl-border: #DDE4F0;
    --ccl-border-strong: #B9C7DA;

    --ccl-text-main: #0F172A;
    --ccl-text-soft: #334155;
    --ccl-text-muted: #64748B;
    --ccl-text-inverse: #FFFFFF;

    --ccl-danger: #DC3545;
    --ccl-success: #198754;
    --ccl-warning: #FFA500;
    --ccl-info: #0DCAF0;

    --ccl-radius-sm: 0.5rem;
    --ccl-radius-md: 0.75rem;
    --ccl-radius-lg: 1rem;
    --ccl-radius-xl: 1.25rem;
    --ccl-radius-xxl: 1.75rem;

    --ccl-shadow-sm: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.06);
    --ccl-shadow-md: 0 0.75rem 2rem rgba(15, 23, 42, 0.10);
    --ccl-shadow-lg: 0 1.25rem 3rem rgba(15, 23, 42, 0.14);

    --ccl-transition: 180ms ease-in-out;
}

/* =========================================================
   02. BASE DAS TELAS PÚBLICAS
========================================================= */

.auth-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(0, 55, 126, 0.13), transparent 22rem),
        radial-gradient(circle at 82% 20%, rgba(255, 165, 0, 0.14), transparent 20rem),
        linear-gradient(135deg, var(--ccl-surface-body) 0%, var(--ccl-surface-soft) 100%);
}

.auth-page::before,
.auth-page::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.auth-page::before {
    width: 24rem;
    height: 24rem;
    left: -10rem;
    bottom: -10rem;
    background: rgba(0, 55, 126, 0.08);
}

.auth-page::after {
    width: 18rem;
    height: 18rem;
    right: -7rem;
    top: 9rem;
    background: rgba(255, 165, 0, 0.10);
}

.auth-page > .container {
    position: relative;
    z-index: 1;
}

.auth-column {
    width: 100%;
    max-width: 29rem;
}

/* =========================================================
   03. LOGO / MARCA
========================================================= */

.auth-brand {
    gap: 0.7rem;
    color: var(--ccl-primary);
}

.auth-brand .auth-logo {
    width: auto;
    max-width: 10.5rem;
    max-height: 3rem;
    object-fit: contain;
}

.auth-brand span {
    color: var(--ccl-primary);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.auth-page .logo img.auth-logo {
    max-height: 3rem;
    margin-right: 0;
}

/* =========================================================
   04. CARD DE AUTENTICAÇÃO
========================================================= */

.auth-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(221, 228, 240, 0.95);
    border-radius: var(--ccl-radius-xxl);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--ccl-shadow-lg);
    backdrop-filter: blur(12px);
}

.auth-card::before {
    content: "";
    display: block;
    height: 0.35rem;
    background: linear-gradient(90deg, var(--ccl-primary) 0%, var(--ccl-accent) 100%);
}

.auth-card .card-body {
    padding: 2rem 1.55rem 1.65rem;
}

.auth-card .card-title {
    color: var(--ccl-primary);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.auth-card .small {
    color: var(--ccl-text-muted);
}

/* =========================================================
   05. ALERTA DE PERFIL
========================================================= */

.auth-profile-alert {
    border-radius: var(--ccl-radius-lg);
    font-weight: 800;
    box-shadow: var(--ccl-shadow-sm);
}

.auth-profile-alert small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.auth-profile-alert i {
    font-size: 1.05rem;
}

.auth-profile-alert--driver {
    border: 1px solid rgba(255, 165, 0, 0.38);
    background: linear-gradient(135deg, var(--ccl-accent-soft) 0%, #FFF8E8 100%);
    color: #6B4300;
}

.auth-profile-alert--admin {
    border: 1px solid rgba(0, 55, 126, 0.20);
    background: linear-gradient(135deg, var(--ccl-primary-soft) 0%, #F5F8FF 100%);
    color: var(--ccl-primary);
}

/* =========================================================
   06. FORMULÁRIO
========================================================= */

.auth-form {
    margin-top: 0.25rem;
}

.auth-form .form-label {
    color: var(--ccl-text-main);
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.auth-form .form-text {
    color: var(--ccl-text-muted);
    font-size: 0.82rem;
    margin-top: 0.38rem;
}

.auth-form .input-group {
    border-radius: var(--ccl-radius-lg);
}

.auth-form .input-group-text {
    min-width: 3rem;
    justify-content: center;
    background: var(--ccl-surface-soft);
    border-color: var(--ccl-border);
    color: var(--ccl-primary);
}

.auth-form .form-control {
    min-height: 3.05rem;
    border-color: var(--ccl-border);
    color: var(--ccl-text-main);
    font-weight: 600;
}

.auth-form .form-control::placeholder {
    color: #7C8AA5;
    font-weight: 500;
}

.auth-form .form-control:focus {
    border-color: var(--ccl-primary);
    box-shadow: 0 0 0 0.22rem rgba(0, 55, 126, 0.14);
}

.auth-form .input-group:focus-within .input-group-text {
    border-color: var(--ccl-primary);
    color: var(--ccl-primary);
}

.auth-form .form-control.is-invalid,
.auth-form .was-validated .form-control:invalid {
    border-color: var(--ccl-danger);
}

.auth-form .invalid-feedback {
    font-size: 0.83rem;
    font-weight: 700;
}

.auth-form #togglePassword {
    min-width: 3rem;
    border-color: var(--ccl-border-strong);
    color: var(--ccl-text-soft);
}

.auth-form #togglePassword:hover,
.auth-form #togglePassword:focus {
    background: var(--ccl-primary-soft);
    border-color: var(--ccl-primary);
    color: var(--ccl-primary);
}

/* =========================================================
   07. BOTÕES
========================================================= */

.auth-form .btn {
    min-height: 2.85rem;
    border-radius: var(--ccl-radius-lg);
    font-weight: 800;
}

.auth-form .btn-primary {
    background: var(--ccl-primary);
    border-color: var(--ccl-primary);
    box-shadow: 0 0.6rem 1.4rem rgba(0, 55, 126, 0.22);
}

.auth-form .btn-primary:hover,
.auth-form .btn-primary:focus {
    background: var(--ccl-primary-hover);
    border-color: var(--ccl-primary-hover);
    box-shadow: 0 0.75rem 1.7rem rgba(0, 55, 126, 0.28);
    transform: translateY(-1px);
}

.auth-form .btn-outline-primary {
    color: var(--ccl-primary);
    border-color: rgba(0, 55, 126, 0.55);
    background: #FFFFFF;
}

.auth-form .btn-outline-primary:hover,
.auth-form .btn-outline-primary:focus {
    color: var(--ccl-text-inverse);
    background: var(--ccl-primary);
    border-color: var(--ccl-primary);
    transform: translateY(-1px);
}

.auth-form .auth-link {
    color: var(--ccl-primary);
    font-weight: 800;
}

.auth-form .auth-link:hover,
.auth-form .auth-link:focus {
    color: var(--ccl-primary-hover);
}

.auth-form .auth-survey-btn {
    color: var(--ccl-text-soft);
    border-color: var(--ccl-border-strong);
    background: #FFFFFF;
}

.auth-form .auth-survey-btn:hover,
.auth-form .auth-survey-btn:focus {
    color: #6B4300;
    border-color: var(--ccl-accent);
    background: var(--ccl-accent-soft);
    transform: translateY(-1px);
}

/*
    Arquivo: public/assets/css/ccl-auth.css

    Data da atualização: 28/04/2026 às 11:11
    Autor / Responsável técnico: Rodrigo de Almeida Silveira

    Objetivo:
    Melhorar a experiência mobile-first das telas públicas de autenticação
    do CCL Treinamento, especialmente o login do motorista.

    O que foi ajustado:
    - Refinada a responsividade já existente na Seção 08;
    - Melhorada largura útil do card em celulares;
    - Reduzido impacto das formas decorativas no mobile;
    - Ajustada logo para ocupar menos espaço vertical;
    - Ajustados título, descrição, alerta, inputs e botões para toque;
    - Melhorada rolagem em telas com pouca altura;
    - Criados ajustes específicos para celulares muito pequenos;
    - Criados ajustes para orientação horizontal.

    Por quê:
    O motorista provavelmente acessará o sistema pelo celular.
    Por isso, a tela precisa ser rápida, confortável, legível e fácil de usar
    em diferentes tamanhos de tela, sem perder a identidade visual da CCL.
*/

/* =========================================================
   08. MOBILE-FIRST / RESPONSIVIDADE
========================================================= */

/*
    Tablets e telas intermediárias.
    Mantém o card confortável e evita largura excessiva.
*/
@media (max-width: 991.98px) {
    .auth-column {
        max-width: 28rem;
    }

    .auth-card {
        margin-inline: auto;
    }
}

/*
    Celulares comuns.
    Prioriza leitura, toque confortável e fundo menos competitivo.
*/
@media (max-width: 575.98px) {
    html,
    body {
        min-height: 100%;
        overflow-x: hidden;
    }

    .auth-page {
        min-height: 100dvh;
        width: 100%;
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
        background:
            radial-gradient(circle at 10% 8%, rgba(0, 55, 126, 0.10), transparent 18rem),
            radial-gradient(circle at 100% 22%, rgba(255, 165, 0, 0.11), transparent 13rem),
            linear-gradient(135deg, #EFF4FC 0%, #F8FAFE 48%, #EEF3FB 100%);
    }

    .auth-page::before {
        width: 15rem;
        height: 15rem;
        left: -7rem;
        bottom: -5rem;
        opacity: 0.75;
    }

    .auth-page::after {
        width: 11rem;
        height: 11rem;
        right: -5.5rem;
        top: 9.5rem;
        opacity: 0.65;
    }

    .auth-page .section {
        min-height: 100dvh;
        justify-content: flex-start !important;
        padding-top: max(1rem, env(safe-area-inset-top));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .auth-page .container {
        width: 100%;
        max-width: 100%;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .auth-column {
        width: 100%;
        max-width: 100%;
    }

    .auth-card {
        width: 100%;
        max-width: 27rem;
        margin: 0 auto;
        border-radius: var(--ccl-radius-xl);
    }

    .auth-card .card-body {
        padding: 1.25rem 1rem 1.15rem;
    }

    .auth-card-brand {
        margin-bottom: 0.9rem;
        padding-top: 0.15rem;
    }

    .auth-brand {
        gap: 0.55rem;
        flex-wrap: wrap;
    }

    .auth-brand .auth-logo {
        max-width: 7.7rem;
        max-height: 2.35rem;
    }

    .auth-brand span {
        font-size: 1rem;
        line-height: 1.05;
        letter-spacing: -0.025em;
    }

    .auth-card-header {
        margin-bottom: 1rem;
    }

    .auth-title {
        font-size: 1.35rem;
        line-height: 1.15;
        margin-bottom: 0.35rem !important;
    }

    .auth-desc {
        font-size: 0.88rem;
    }

    .auth-profile-alert {
        margin-bottom: 1.1rem;
        padding: 0.75rem 0.85rem;
    }

    .auth-profile-alert small {
        font-size: 0.92rem;
        line-height: 1.2;
    }

    .auth-form {
        margin-top: 0;
    }

    .auth-form .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.35rem;
    }

    .auth-form .form-text {
        font-size: 0.78rem;
        margin-top: 0.32rem;
    }

    .auth-form .input-group-text {
        min-width: 2.9rem;
    }

    .auth-form .form-control {
        min-height: 3.05rem;
        font-size: 0.98rem;
    }

    .auth-form #togglePassword {
        min-width: 2.9rem;
    }

    .auth-form .btn {
        min-height: 3.05rem;
        font-size: 0.96rem;
    }

    .auth-form .auth-link {
        font-size: 0.86rem;
    }

    .auth-form .invalid-feedback {
        font-size: 0.78rem;
    }
}

/*
    Celulares muito pequenos.
    Reduz levemente marca, textos e espaçamentos para evitar rolagem excessiva.
*/
@media (max-width: 374.98px) {
    .auth-page .container {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .auth-card .card-body {
        padding: 1.1rem 0.85rem 1rem;
    }

    .auth-brand .auth-logo {
        max-width: 6.8rem;
        max-height: 2.1rem;
    }

    .auth-brand span {
        font-size: 0.92rem;
    }

    .auth-title {
        font-size: 1.22rem;
    }

    .auth-desc {
        font-size: 0.82rem;
    }

    .auth-profile-alert small {
        font-size: 0.84rem;
    }

    .auth-form .form-control {
        font-size: 0.92rem;
    }

    .auth-form .btn {
        font-size: 0.9rem;
    }
}

/*
    Celulares com pouca altura.
    Evita que o card fique preso no centro e permite rolagem natural.
*/
@media (max-height: 740px) and (max-width: 575.98px) {
    .auth-page .section {
        justify-content: flex-start !important;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .auth-card-brand {
        margin-bottom: 0.65rem;
    }

    .auth-card-header {
        margin-bottom: 0.85rem;
    }

    .auth-profile-alert {
        margin-bottom: 0.9rem;
    }

    .auth-card .card-body {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/*
    Orientação horizontal em celular.
    Reduz altura visual para facilitar acesso sem corte.
*/
@media (orientation: landscape) and (max-height: 520px) {
    .auth-page {
        overflow-y: auto;
    }

    .auth-page .section {
        justify-content: flex-start !important;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .auth-card {
        max-width: 28rem;
    }

    .auth-card .card-body {
        padding: 1rem;
    }

    .auth-card-brand {
        margin-bottom: 0.55rem;
    }

    .auth-brand .auth-logo {
        max-width: 7rem;
        max-height: 2rem;
    }

    .auth-title {
        font-size: 1.2rem;
    }

    .auth-desc {
        font-size: 0.82rem;
    }

    .auth-profile-alert {
        padding: 0.6rem 0.75rem;
        margin-bottom: 0.75rem;
    }

    .auth-form .form-control,
    .auth-form .input-group-text,
    .auth-form #togglePassword,
    .auth-form .btn {
        min-height: 2.8rem;
    }
}

/*
    Arquivo: public/assets/css/ccl-auth.css

    Data da atualização: 28/04/2026 às 11:24
    Autor / Responsável técnico: Rodrigo de Almeida Silveira

    Objetivo:
    Ajustar os elementos decorativos de fundo da tela pública de autenticação.

    O que foi ajustado:
    - Reposicionado o círculo/semicírculo amarelo para baixo da caixa de login;
    - Mantido o círculo azul abaixo da caixa, no lado esquerdo;
    - Removido o efeito visual do amarelo aparecendo no meio/lateral do card;
    - Ajustado o fundo decorativo em desktop, tablet e mobile;
    - Mantida a paleta oficial CCL: azul institucional #00377E e accent #FFA500.

    Por quê:
    O elemento decorativo amarelo estava competindo visualmente com o card de login.
    Ele deve funcionar como apoio visual de fundo, igual ao azul, ficando abaixo da caixa
    e não sobre a área de leitura do formulário.
*/

/* =========================================================
   09. AJUSTE DOS ELEMENTOS DECORATIVOS DE FUNDO
========================================================= */

/* Fundo base: mantém os brilhos suaves, mas joga o amarelo para a parte inferior direita */
.auth-page {
    background:
        radial-gradient(circle at 18% 18%, rgba(0, 55, 126, 0.13), transparent 22rem),
        radial-gradient(circle at 88% 88%, rgba(255, 165, 0, 0.14), transparent 20rem),
        linear-gradient(135deg, var(--ccl-surface-body) 0%, var(--ccl-surface-soft) 100%);
}

/* Círculo azul inferior esquerdo */
.auth-page::before {
    width: 24rem;
    height: 24rem;
    left: -10rem;
    bottom: -10rem;
    background: rgba(0, 55, 126, 0.08);
}

/* Círculo amarelo inferior direito */
.auth-page::after {
    width: 18rem;
    height: 18rem;
    right: -6rem;
    bottom: -6rem;
    top: auto;
    background: rgba(255, 165, 0, 0.10);
}

/* Ajuste para tablets e telas médias */
@media (max-width: 991.98px) {
    .auth-page::after {
        width: 15rem;
        height: 15rem;
        right: -5rem;
        bottom: -5rem;
        top: auto;
    }
}

/* Ajuste para celulares */
@media (max-width: 575.98px) {
    .auth-page {
        background:
            radial-gradient(circle at 10% 8%, rgba(0, 55, 126, 0.10), transparent 18rem),
            radial-gradient(circle at 92% 92%, rgba(255, 165, 0, 0.11), transparent 13rem),
            linear-gradient(135deg, #EFF4FC 0%, #F8FAFE 48%, #EEF3FB 100%);
    }

    .auth-page::before {
        width: 15rem;
        height: 15rem;
        left: -7rem;
        bottom: -5rem;
        opacity: 0.75;
    }

    .auth-page::after {
        width: 11rem;
        height: 11rem;
        right: -4.5rem;
        bottom: -4.5rem;
        top: auto;
        opacity: 0.62;
    }
}

/* Ajuste para celulares muito pequenos */
@media (max-width: 374.98px) {
    .auth-page::after {
        width: 9.5rem;
        height: 9.5rem;
        right: -4rem;
        bottom: -4rem;
        top: auto;
        opacity: 0.55;
    }
}

/*
    Arquivo: public/assets/css/ccl-auth.css

    Data da atualização: 28/04/2026 às 12:46
    Autor / Responsável técnico: Rodrigo de Almeida Silveira

    Objetivo:
    Refinar a hierarquia visual do topo do card de login.

    O que foi ajustado:
    - Removido visualmente o peso do texto lateral da marca, pois agora será usada apenas a logo;
    - Ajustado tamanho da logo institucional no topo do card;
    - Reduzido levemente o tamanho do título principal;
    - Reduzido levemente o tamanho da descrição;
    - Reduzido o peso visual de labels, botões e textos auxiliares;
    - Mantida a identidade visual CCL com azul institucional e accent laranja.

    Por quê:
    A tela já está moderna, mas o topo ainda estava visualmente pesado.
    Usar apenas a logo deixa o card mais limpo, elegante e profissional,
    melhorando a leitura e valorizando o formulário de acesso.
*/

/* =========================================================
   10. REFINAMENTO DO TOPO DO CARD E TIPOGRAFIA
========================================================= */

.auth-brand--logo-only {
    gap: 0;
}

.auth-brand--logo-only .auth-logo {
    max-width: 8.75rem;
    max-height: 3.15rem;
}

.auth-card-brand {
    margin-bottom: 0.85rem;
    padding-top: 0.2rem;
}

.auth-title {
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.auth-desc {
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-profile-alert small {
    font-size: 0.95rem;
}

.auth-form .form-label {
    font-size: 0.88rem;
}

.auth-form .form-control {
    font-size: 0.96rem;
}

.auth-form .form-text {
    font-size: 0.78rem;
}

.auth-form .btn {
    font-size: 0.94rem;
}

.auth-form .auth-link {
    font-size: 0.84rem;
}

/* Ajuste mobile */
@media (max-width: 575.98px) {
    .auth-brand--logo-only .auth-logo {
        max-width: 7.6rem;
        max-height: 2.7rem;
    }

    .auth-card-brand {
        margin-bottom: 0.7rem;
    }

    .auth-title {
        font-size: 1.28rem;
    }

    .auth-desc {
        font-size: 0.84rem;
    }

    .auth-profile-alert small {
        font-size: 0.86rem;
    }

    .auth-form .form-label {
        font-size: 0.86rem;
    }

    .auth-form .form-control {
        font-size: 0.92rem;
    }

    .auth-form .btn {
        font-size: 0.9rem;
    }
}

/*
    Arquivo: public/assets/css/ccl-auth.css

    Data da atualização: 28/04/2026 às 13:28
    Autor / Responsável técnico: Rodrigo de Almeida Silveira

    Objetivo:
    Refinar a experiência de erro, entrada de CPF e processamento do login.

    O que foi ajustado:
    - Melhorada a aparência do alerta de erro de login;
    - Reduzido o tamanho visual da mensagem de erro;
    - Melhorada a hierarquia da informação do erro;
    - Criado estado verde para o botão Entrar durante o processamento;
    - Incluído suporte visual ao spinner no botão Entrar;
    - Mantida a identidade visual CCL;
    - Mantida a numeração correta das seções do arquivo, sem duplicar a Seção 10.

    Por quê:
    O motorista precisa entender o erro com clareza, sem excesso de ruído visual.
    Ao clicar em Entrar, o sistema deve indicar claramente que recebeu a ação
    e está processando o acesso.
*/

/* =========================================================
   11. FEEDBACK DE ERRO, CPF E ESTADO DE PROCESSAMENTO
========================================================= */

.auth-form .auth-login-alert {
    padding: 0.75rem 0.85rem;
    border-radius: var(--ccl-radius-lg);
    border: 1px solid rgba(220, 53, 69, 0.22);
    background: #FCE4E7;
    color: #8A2430;
    font-size: 0.84rem;
    line-height: 1.35;
}

.auth-form .auth-login-alert i {
    color: #A52834;
    font-size: 0.95rem;
}

.auth-form .auth-login-alert strong {
    display: block;
    margin-bottom: 0.12rem;
    font-size: 0.86rem;
    font-weight: 900;
}

.auth-form .auth-login-alert span {
    display: block;
    font-weight: 700;
}

.auth-form .btn-success.auth-btn-loading,
.auth-form .btn-success.auth-btn-loading:disabled {
    background: var(--ccl-success);
    border-color: var(--ccl-success);
    color: #FFFFFF;
    opacity: 1;
    box-shadow: 0 0.7rem 1.5rem rgba(25, 135, 84, 0.25);
}

.auth-form .auth-btn-loading {
    cursor: wait;
}

.auth-form .auth-btn-loading .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Mobile: alerta mais compacto */
@media (max-width: 575.98px) {
    .auth-form .auth-login-alert {
        padding: 0.65rem 0.75rem;
        font-size: 0.8rem;
    }

    .auth-form .auth-login-alert strong {
        font-size: 0.82rem;
    }
}

/*
    Arquivo: public/assets/css/ccl-auth.css

    Data da atualização: 28/04/2026 às 14:11
    Autor / Responsável técnico: Rodrigo de Almeida Silveira

    Objetivo:
    Refinar elementos específicos da tela de cadastro do motorista.

    O que foi ajustado:
    - Criado visual padronizado para checkboxes do cadastro;
    - Melhorada área de aceite de termos;
    - Melhorada opção de motorista estrangeiro;
    - Mantido padrão visual do login;
    - Mantida compatibilidade com mobile-first.

    Por quê:
    O cadastro possui checkboxes e campos adicionais que não existem no login.
    Esses elementos precisam seguir a mesma identidade visual CCL e manter boa leitura
    em desktop e celular.
*/

/* =========================================================
   12. CADASTRO DO MOTORISTA
========================================================= */

.auth-register-form .auth-check-card {
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--ccl-border);
    border-radius: var(--ccl-radius-lg);
    background: #FFFFFF;
}

.auth-register-form .auth-check-card .form-check-input {
    margin-top: 0.22rem;
    border-color: var(--ccl-border-strong);
}

.auth-register-form .auth-check-card .form-check-input:checked {
    background-color: var(--ccl-primary);
    border-color: var(--ccl-primary);
}

.auth-register-form .auth-check-card .form-check-input:focus {
    border-color: var(--ccl-primary);
    box-shadow: 0 0 0 0.18rem rgba(0, 55, 126, 0.14);
}

.auth-register-form .auth-check-card .form-check-label {
    color: var(--ccl-text-soft);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
}

.auth-register-form .auth-check-card .invalid-feedback {
    margin-left: 0;
    margin-top: 0.35rem;
}

@media (max-width: 575.98px) {
    .auth-register-form .auth-check-card {
        padding: 0.65rem 0.75rem;
    }

    .auth-register-form .auth-check-card .form-check-label {
        font-size: 0.82rem;
    }
}

/*
|--------------------------------------------------------------------------
| 13. SELETOR GLOBAL DE IDIOMA E LINK PARA HOME
|--------------------------------------------------------------------------
|
| Data da atualização: 07/05/2026 às 13:16
| Autor / Responsável técnico: Rodrigo de Almeida Silveira
|
| Objetivo:
| Padronizar o seletor global de idioma nas telas públicas de autenticação,
| mantendo o mesmo visual usado na Home pública.
|
| O que foi ajustado:
| - Aplicado visual com flags reais;
| - Melhorado destaque do idioma ativo;
| - Criado estilo para link “Conhecer a plataforma”;
| - Mantido padrão mobile-first;
| - Preservado layout atual do card.
|
| Por quê:
| Login, cadastro e recuperação de senha também precisam permitir troca de idioma
| e acesso fácil à Home pública.
|--------------------------------------------------------------------------
*/

.ccl-language-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.ccl-language-switcher__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;

    min-height: 2.15rem;
    padding: 0.38rem 0.62rem;

    border: 1px solid rgba(0, 55, 126, 0.28);
    border-radius: 999px;

    background: #ffffff;
    color: var(--ccl-primary);

    font-weight: 800;
    line-height: 1;

    cursor: pointer;

    transition:
        transform var(--ccl-transition),
        background var(--ccl-transition),
        border-color var(--ccl-transition),
        box-shadow var(--ccl-transition);
}

.ccl-language-switcher__button:hover,
.ccl-language-switcher__button:focus {
    transform: translateY(-1px);
    border-color: rgba(0, 55, 126, 0.55);
    box-shadow: 0 0.35rem 0.9rem rgba(0, 55, 126, 0.12);
    outline: none;
}

.ccl-language-switcher__button:focus-visible {
    outline: 3px solid rgba(255, 165, 0, 0.35);
    outline-offset: 2px;
}

.ccl-language-switcher__button.is-active {
    background: var(--ccl-primary);
    border-color: var(--ccl-primary);
    color: #ffffff;
    box-shadow: 0 0.45rem 1rem rgba(0, 55, 126, 0.20);
}

.ccl-language-switcher__flag {
    width: 1.18rem;
    height: 1.18rem;

    object-fit: cover;
    border-radius: 50%;

    display: block;
    flex-shrink: 0;

    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.10);
}

.ccl-language-switcher__text {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    color: currentColor;
}

/*
|--------------------------------------------------------------------------
| Link discreto para a Home pública
|--------------------------------------------------------------------------
*/

.auth-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;

    margin-top: 0.55rem;

    color: var(--ccl-primary);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;

    transition:
        color var(--ccl-transition),
        transform var(--ccl-transition);
}

.auth-home-link:hover,
.auth-home-link:focus {
    color: var(--ccl-primary-hover);
    transform: translateY(-1px);
    text-decoration: none;
}

.auth-home-link i {
    font-size: 0.9rem;
}

/*
|--------------------------------------------------------------------------
| Ajustes mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 575.98px) {
    .ccl-language-switcher {
        gap: 0.35rem;
    }

    .ccl-language-switcher__button {
        min-height: 2rem;
        padding: 0.34rem 0.52rem;
    }

    .ccl-language-switcher__flag {
        width: 1.05rem;
        height: 1.05rem;
    }

    .ccl-language-switcher__text {
        font-size: 0.68rem;
    }

    .auth-home-link {
        font-size: 0.74rem;
        margin-top: 0.45rem;
    }
}

/*
|--------------------------------------------------------------------------
| 14. AÇÕES SECUNDÁRIAS MOBILE-FIRST
|--------------------------------------------------------------------------
|
| Data da atualização: 08/05/2026 às 13:14
| Autor / Responsável técnico: Rodrigo de Almeida Silveira
|
| Objetivo:
| Padronizar o menu inferior fixo das telas públicas
| de autenticação no mobile-first.
|
| O que foi ajustado:
| - Criado rodapé fixo mobile;
| - Login, cadastro e recuperar senha passam a usar o mesmo padrão;
| - Separadas ações desktop e mobile;
| - Melhorado espaçamento inferior;
| - Melhorado comportamento em celulares.
|
| Por quê:
| O motorista precisa acessar rapidamente as ações principais
| sem depender de rolagem ou links escondidos dentro do card.
|--------------------------------------------------------------------------
*/

.auth-desktop-actions {
    display: block;
}

.auth-mobile-actions {
    display: none;
}

.auth-mobile-actions__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;

    min-height: 2.65rem;
    padding: 0.55rem 0.45rem;

    border: 1px solid var(--ccl-border);
    border-radius: var(--ccl-radius-lg);

    background: #ffffff;
    color: var(--ccl-primary);

    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;

    transition:
        background-color var(--ccl-transition),
        border-color var(--ccl-transition),
        color var(--ccl-transition),
        transform var(--ccl-transition),
        box-shadow var(--ccl-transition);
}

.auth-mobile-actions__item i {
    font-size: 0.95rem;
    line-height: 1;
}

.auth-mobile-actions__item:hover,
.auth-mobile-actions__item:focus {
    background: var(--ccl-primary-soft);
    border-color: rgba(0, 55, 126, 0.35);
    color: var(--ccl-primary);
    transform: translateY(-1px);
    box-shadow: var(--ccl-shadow-sm);
    text-decoration: none;
}

@media (max-width: 575.98px) {

    body {
        padding-bottom: calc(88px + env(safe-area-inset-bottom));
    }

    .auth-page .section {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }

    .auth-desktop-actions {
        display: none;
    }

    .auth-mobile-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 3000;

        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.55rem;

        min-height: 76px;

        padding:
            0.55rem
            0.75rem
            calc(0.55rem + env(safe-area-inset-bottom));

        background: rgba(255, 255, 255, 0.98);

        border-top: 1px solid var(--ccl-border);

        box-shadow: 0 -0.65rem 1.5rem rgba(15, 23, 42, 0.10);

        backdrop-filter: blur(12px);
    }

    .auth-mobile-actions__item {
        flex-direction: column;
        gap: 0.25rem;

        min-height: 3.55rem;
        padding: 0.35rem 0.25rem;

        border: 0;
        border-radius: var(--ccl-radius-lg);

        background: transparent;

        color: var(--ccl-text-muted);

        font-size: 0.68rem;
    }

    .auth-mobile-actions__item i {
        font-size: 1.15rem;
    }

    .auth-mobile-actions__item:hover,
    .auth-mobile-actions__item:focus {
        background: var(--ccl-primary-soft);
        color: var(--ccl-primary);
        box-shadow: none;
    }
}


/*
|--------------------------------------------------------------------------
| 15. STEPPER DO CADASTRO DO MOTORISTA
|--------------------------------------------------------------------------
|
| Data da atualização: 08/05/2026 às 14:42
| Autor / Responsável técnico: Rodrigo de Almeida Silveira
|
| Objetivo:
| Padronizar o indicador de etapas do cadastro do motorista.
|
| O que foi ajustado:
| - Stepper movido da Blade para o CSS global;
| - Mantidos estados ativo, próximo, concluído e erro;
| - Mantido padrão mobile-first;
| - Mantida identidade visual CCL.
|
| Por quê:
| A Blade deve cuidar da estrutura, enquanto o CSS deve concentrar
| a aparência visual da interface.
|--------------------------------------------------------------------------
*/

.auth-stepper {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem 0 .15rem;
}

.auth-stepper-item {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex: 1;
    min-width: 0;
    border: 1px solid #d8e2f2;
    background: #f8fafc;
    color: #64748b;
    border-radius: 1rem;
    padding: .6rem .55rem;
    transition: all .2s ease;
    box-shadow: none;
}

.auth-stepper-icon {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8eef8;
    color: #64748b;
    flex-shrink: 0;
    transition: all .2s ease;
}

.auth-stepper-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.auth-stepper-text strong {
    font-size: .68rem;
    font-weight: 800;
}

.auth-stepper-text small {
    font-size: .58rem;
    font-weight: 600;
    opacity: .9;
}

.auth-stepper-line {
    width: .7rem;
    height: 2px;
    background: #d8e2f2;
    flex-shrink: 0;
}

.auth-stepper-item.is-next {
    border-color: #d8e2f2;
    background: #f8fafc;
    color: #64748b;
}

.auth-stepper-item.is-next .auth-stepper-icon {
    background: #e8eef8;
    color: #64748b;
}

.auth-stepper-item.is-active {
    border-color: #9db7dc;
    background: #edf4ff;
    color: #00377e;
    box-shadow: 0 .35rem 1rem rgba(0, 55, 126, .08);
}

.auth-stepper-item.is-active .auth-stepper-icon {
    background: #00377e;
    color: #ffffff;
}

.auth-stepper-item.is-complete {
    border-color: #9fd4b5;
    background: #e7f6ee;
    color: #157347;
}

.auth-stepper-item.is-complete .auth-stepper-icon {
    background: #198754;
    color: #ffffff;
}

.auth-stepper-item.is-error {
    border-color: #f1aeb5;
    background: #f8d7da;
    color: #842029;
}

.auth-stepper-item.is-error .auth-stepper-icon {
    background: #dc3545;
    color: #ffffff;
}

.auth-country-option {
    min-height: 64px;
}

.auth-register-step {
    animation: authStepFade .18s ease-in-out;
}

#registerFinalActions {
    grid-template-columns: .42fr .58fr;
}

#registerFinalActions:not(.d-none) {
    display: grid !important;
}

@keyframes authStepFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 380px) {
    .auth-stepper {
        gap: .25rem;
    }

    .auth-stepper-item {
        padding: .5rem .4rem;
        gap: .3rem;
    }

    .auth-stepper-icon {
        width: 1.55rem;
        height: 1.55rem;
    }

    .auth-stepper-text strong {
        font-size: .6rem;
    }

    .auth-stepper-text small {
        font-size: .52rem;
    }

    .auth-stepper-line {
        width: .35rem;
    }
}

/*
|--------------------------------------------------------------------------
| 16. STEPPER DO CADASTRO DO MOTORISTA
|--------------------------------------------------------------------------
*/

.auth-stepper {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem 0 .15rem;
}

.auth-stepper-item {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex: 1;
    min-width: 0;
    border: 1px solid #d8e2f2;
    background: #f8fafc;
    color: #64748b;
    border-radius: 1rem;
    padding: .6rem .55rem;
    transition: all .2s ease;
}

.auth-stepper-icon {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8eef8;
    color: #64748b;
    flex-shrink: 0;
}

.auth-stepper-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.auth-stepper-text strong {
    font-size: .68rem;
    font-weight: 800;
}

.auth-stepper-text small {
    font-size: .58rem;
    font-weight: 600;
}

.auth-stepper-line {
    width: .7rem;
    height: 2px;
    background: #d8e2f2;
    flex-shrink: 0;
}

.auth-stepper-item.is-active {
    border-color: #9db7dc;
    background: #edf4ff;
    color: #00377e;
    box-shadow: 0 .35rem 1rem rgba(0, 55, 126, .08);
}

.auth-stepper-item.is-active .auth-stepper-icon {
    background: #00377e;
    color: #ffffff;
}

.auth-stepper-item.is-complete {
    border-color: #9fd4b5;
    background: #e7f6ee;
    color: #157347;
}

.auth-stepper-item.is-complete .auth-stepper-icon {
    background: #198754;
    color: #ffffff;
}

.auth-stepper-item.is-next {
    border-color: #d8e2f2;
    background: #f8fafc;
    color: #64748b;
}

.auth-stepper-item.is-error {
    border-color: #f1aeb5;
    background: #f8d7da;
    color: #842029;
}

.auth-stepper-item.is-error .auth-stepper-icon {
    background: #dc3545;
    color: #ffffff;
}

.auth-country-option {
    min-height: 64px;
}

.auth-register-step {
    animation: authStepFade .18s ease-in-out;
}

#registerFinalActions {
    grid-template-columns: .42fr .58fr;
}

#registerFinalActions:not(.d-none) {
    display: grid !important;
}

@keyframes authStepFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 380px) {
    .auth-stepper {
        gap: .25rem;
    }

    .auth-stepper-item {
        padding: .5rem .4rem;
        gap: .3rem;
    }

    .auth-stepper-icon {
        width: 1.55rem;
        height: 1.55rem;
    }

    .auth-stepper-text strong {
        font-size: .6rem;
    }

    .auth-stepper-text small {
        font-size: .52rem;
    }

    .auth-stepper-line {
        width: .35rem;
    }
}

/*
|--------------------------------------------------------------------------
| 17. STEPPER DO CADASTRO DO MOTORISTA
|--------------------------------------------------------------------------
*/

.auth-stepper {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem 0 .15rem;
}

.auth-stepper-item {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex: 1;
    min-width: 0;
    border: 1px solid #d8e2f2;
    background: #f8fafc;
    color: #64748b;
    border-radius: 1rem;
    padding: .6rem .55rem;
    transition: all .2s ease;
}

.auth-stepper-icon {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8eef8;
    color: #64748b;
    flex-shrink: 0;
}

.auth-stepper-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.auth-stepper-text strong {
    font-size: .68rem;
    font-weight: 800;
}

.auth-stepper-text small {
    font-size: .58rem;
    font-weight: 600;
}

.auth-stepper-line {
    width: .7rem;
    height: 2px;
    background: #d8e2f2;
    flex-shrink: 0;
}

.auth-stepper-item.is-active {
    border-color: #9db7dc;
    background: #edf4ff;
    color: #00377e;
    box-shadow: 0 .35rem 1rem rgba(0, 55, 126, .08);
}

.auth-stepper-item.is-active .auth-stepper-icon {
    background: #00377e;
    color: #ffffff;
}

.auth-stepper-item.is-complete {
    border-color: #9fd4b5;
    background: #e7f6ee;
    color: #157347;
}

.auth-stepper-item.is-complete .auth-stepper-icon {
    background: #198754;
    color: #ffffff;
}

.auth-stepper-item.is-next {
    border-color: #d8e2f2;
    background: #f8fafc;
    color: #64748b;
}

.auth-stepper-item.is-error {
    border-color: #f1aeb5;
    background: #f8d7da;
    color: #842029;
}

.auth-stepper-item.is-error .auth-stepper-icon {
    background: #dc3545;
    color: #ffffff;
}

.auth-country-option {
    min-height: 64px;
}

.auth-register-step {
    animation: authStepFade .18s ease-in-out;
}

#registerFinalActions {
    grid-template-columns: .42fr .58fr;
}

#registerFinalActions:not(.d-none) {
    display: grid !important;
}

@keyframes authStepFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 380px) {
    .auth-stepper {
        gap: .25rem;
    }

    .auth-stepper-item {
        padding: .5rem .4rem;
        gap: .3rem;
    }

    .auth-stepper-icon {
        width: 1.55rem;
        height: 1.55rem;
    }

    .auth-stepper-text strong {
        font-size: .6rem;
    }

    .auth-stepper-text small {
        font-size: .52rem;
    }

    .auth-stepper-line {
        width: .35rem;
    }
}