/* ==========================================================
   ÁREA PRINCIPAL
   ========================================================== */

.login-cliente-container {
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: #f4f4f4;
    box-sizing: border-box;
}


/* ==========================================================
   CARTÃO
   ========================================================== */

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 34px 28px 28px;
    background: #ffffff;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}


/* ==========================================================
   CABEÇALHO
   ========================================================== */

.login-cabecalho {
    margin-bottom: 22px;
    text-align: center;
}

.login-cabecalho h1 {
    margin: 0 0 10px;
    color: #111111;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.login-cabecalho p {
    margin: 0;
    color: #5b5b5b;
    font-size: 14px;
    line-height: 1.55;
}


/* ==========================================================
   FORMULÁRIOS
   ========================================================== */

.form-login,
.form-reenvio {
    width: 100%;
    margin: 0;
}

.grupo-campo {
    margin-bottom: 15px;
}

.grupo-campo label {
    display: block;
    margin-bottom: 7px;
    color: #171717;
    font-size: 14px;
    font-weight: 700;
}

.grupo-campo input[type="text"],
.grupo-campo input[type="email"],
.grupo-campo input[type="password"] {
    width: 100%;
    height: 44px;
    padding: 9px 12px;
    color: #171717;
    background: #ffffff;
    border: 1px solid #bdbdbd;
    border-radius: 7px;
    outline: none;
    font-size: 15px;
    box-sizing: border-box;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

.grupo-campo input::placeholder {
    color: #999999;
}

.grupo-campo input:focus {
    border-color: #0d7df2;
    box-shadow: 0 0 0 3px rgba(13, 125, 242, 0.14);
}

.grupo-campo input.valido {
    border-color: #1f9d49;
    background: #eefaf1;
}

.grupo-campo input.invalido {
    border-color: #d93025;
    background: #fff1f1;
}


/* ==========================================================
   CAMPO DE SENHA
   ========================================================== */

.campo-senha {
    position: relative;
}

.campo-senha input {
    padding-right: 70px !important;
}

.botao-mostrar-senha {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    padding: 7px 6px;
    color: #0b6bc4;
    background: transparent;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.botao-mostrar-senha:hover {
    color: #064f93;
}

.botao-mostrar-senha:focus {
    outline: 2px solid rgba(13, 125, 242, 0.35);
    border-radius: 4px;
}


/* ==========================================================
   MENSAGENS DE VALIDAÇÃO
   ========================================================== */

.mensagem-validacao {
    min-height: 18px;
    margin-top: 5px;
    color: #16833a;
    font-size: 13px;
    line-height: 1.3;
}

.mensagem-validacao.erro {
    color: #d93025;
}


/* ==========================================================
   ALERTAS
   ========================================================== */

.alertas-login {
    margin-bottom: 16px;
}

.alerta-login {
    margin-bottom: 10px;
    padding: 11px 12px;
    color: #a40000;
    background: #ffe5e5;
    border: 1px solid #ffcaca;
    border-radius: 7px;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.alerta-login:last-child {
    margin-bottom: 0;
}

.alerta-login.erro {
    color: #a40000;
    background: #ffe5e5;
    border-color: #ffcaca;
}

.alerta-login.sucesso {
    color: #146c2e;
    background: #e6f7ea;
    border-color: #bde9c7;
}

.alerta-login.aviso {
    color: #745500;
    background: #fff6d9;
    border-color: #f0d986;
}


/* ==========================================================
   BOTÕES
   ========================================================== */

.btn-login {
    display: block;
    width: 100%;
    min-height: 43px;
    margin-top: 15px;
    padding: 11px 14px;
    border-radius: 7px;
    box-sizing: border-box;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        transform 0.05s ease;
}

.btn-login:active {
    transform: translateY(1px);
}

.btn-principal {
    color: #ffffff;
    background: #0d7df2;
    border: 1px solid #0d7df2;
}

.btn-principal:hover {
    background: #056ad1;
    border-color: #056ad1;
}

.btn-secundario {
    color: #222222;
    background: #f2f2f2;
    border: 1px solid #cfcfcf;
}

.btn-secundario:hover {
    background: #e6e6e6;
    border-color: #bdbdbd;
}

.btn-cadastrar {
    color: #ffffff;
    background: #16a34a;
    border: 1px solid #16a34a;
}

.btn-cadastrar:hover {
    background: #15803d;
    border-color: #15803d;
}

.form-login .btn-principal,
.form-reenvio .btn-secundario {
    border-style: solid;
}


/* ==========================================================
   MANTER CONECTADO
   ========================================================== */

.lembrar-container {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 4px;
    color: #333333;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.lembrar-container input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    flex-shrink: 0;
    accent-color: #0d7df2;
}


/* ==========================================================
   LINKS
   ========================================================== */

.login-links {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
}

.login-links a {
    color: #096ac8;
    font-weight: 600;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}


/* ==========================================================
   SEPARADOR
   ========================================================== */

.separador-login {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 21px 0 4px;
    color: #888888;
    font-size: 12px;
    text-transform: uppercase;
}

.separador-login::before,
.separador-login::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dddddd;
}

.separador-login span {
    white-space: nowrap;
}


/* ==========================================================
   E-MAIL MASCARADO
   ========================================================== */

.email-mascarado {
    margin: 0 0 18px;
    padding: 13px 12px;
    color: #174f86;
    background: #f2f6fb;
    border: 1px solid #dbe8f4;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    word-break: break-word;
}


/* ==========================================================
   CÓDIGO DE CONFIRMAÇÃO
   ========================================================== */

.input-codigo {
    height: 50px !important;
    text-align: center;
    font-size: 24px !important;
    font-weight: 800;
    letter-spacing: 8px;
}


/* ==========================================================
   REQUISITOS DA SENHA
   ========================================================== */

.requisitos-senha {
    margin: 5px 0 15px;
    padding: 13px 15px;
    color: #5b5b5b;
    background: #f7f7f7;
    border: 1px solid #e3e3e3;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.7;
}

.requisitos-senha div {
    position: relative;
    padding-left: 20px;
}

.requisitos-senha div::before {
    content: "•";
    position: absolute;
    left: 3px;
    color: #777777;
    font-weight: 800;
}

.requisitos-senha div.ok {
    color: #16833a;
    font-weight: 600;
}

.requisitos-senha div.ok::before {
    content: "✓";
    left: 0;
    color: #16833a;
}

.requisitos-senha div.erro {
    color: #b42318;
}

.requisitos-senha div.erro::before {
    content: "×";
    left: 1px;
    color: #b42318;
}


/* ==========================================================
   CAIXA DE SEGURANÇA
   ========================================================== */

.caixa-seguranca {
    margin-top: 18px;
    padding: 13px 14px;
    color: #555555;
    background: #f6f8fa;
    border: 1px solid #e1e5e8;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.55;
}

.caixa-seguranca strong {
    display: block;
    margin-bottom: 4px;
    color: #333333;
    font-size: 13px;
}

.caixa-seguranca p {
    margin: 0;
}


/* ==========================================================
   ACESSIBILIDADE
   ========================================================== */

.btn-login:focus,
.login-links a:focus {
    outline: 3px solid rgba(13, 125, 242, 0.28);
    outline-offset: 2px;
}

.grupo-campo input:disabled,
.btn-login:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}


/* ==========================================================
   CELULAR
   ========================================================== */

@media (max-width: 480px) {
    .login-cliente-container {
        min-height: 68vh;
        padding: 22px 12px;
    }

    .login-card {
        padding: 27px 20px 23px;
        border-radius: 10px;
    }

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

    .login-cabecalho p {
        font-size: 13px;
    }

    .grupo-campo input[type="text"],
    .grupo-campo input[type="email"],
    .grupo-campo input[type="password"] {
        height: 43px;
        font-size: 16px;
    }

    .input-codigo {
        font-size: 22px !important;
        letter-spacing: 6px;
    }

    .btn-login {
        min-height: 44px;
        font-size: 15px;
    }

    .caixa-seguranca {
        font-size: 12px;
    }
}


/* ==========================================================
   TELAS MUITO PEQUENAS
   ========================================================== */

@media (max-width: 340px) {
    .login-card {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .campo-senha input {
        padding-right: 62px !important;
    }

    .botao-mostrar-senha {
        right: 5px;
        font-size: 11px;
    }
}
