/**
 * @package     Sescoop.Site
 * @subpackage  mod_keycloak_login
 *
 * @copyright   (C) 2026 Hirlei Carlos Pereira de Araújo
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 *
 * Estilos do layout Central da Marca. Tipografia alinhada à página original
 * (WhatFont): títulos em "Intro Light" 28px, textos em "Inter" 16px, botões
 * "Inter" 500 12px. Cor institucional #18186A, botões em pílula.
 */

.cm {
    --cm-azul: #18186A;
    --cm-hover: #5c8cfa;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--cm-azul);
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0 3rem;
}

.cm__intro {
    font-size: 16px;
    line-height: 24px;
    width: 100%;
    margin-bottom: 3.5rem;
}

.cm__intro p:last-child {
    margin-bottom: 0;
}

.cm__cols {
    display: grid;
    /* Duas colunas 50/50 quando há espaço; empilha sozinho em container estreito
       (ex.: dentro de uma coluna estreita do Page Builder), sem espremer. */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4.5rem;
    align-items: start;
}

.cm__title {
    font-family: "Intro Light", "Inter", system-ui, sans-serif;
    color: var(--cm-azul);
    font-size: 28px;
    line-height: 35px;
    font-weight: 400;
    margin: 0 0 1.5rem;
}

.cm__text {
    font-size: 16px;
    line-height: 25px;
    margin-bottom: 1.5rem;
}

.cm__list {
    margin: 0 0 1.5rem;
    padding-left: 1.2rem;
    font-size: 16px;
    line-height: 25px;
}

.cm__list li {
    margin-bottom: 0.35rem;
}

/* ---- Formulário ---- */
.cm__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 420px;
}

.cm__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cm__label {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--cm-azul);
}

/* Texto de apoio entre o rótulo e o campo. O espaçamento vem do gap de .cm__field. */
.cm__hint {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: #6c757d;
}

.cm__input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 16px;
    line-height: 24px;
    color: #212529;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
}

.cm__input::placeholder {
    color: #6c757d;
    opacity: 1;
}

.cm__input:focus-visible {
    outline: 0;
    border-color: var(--cm-hover);
    box-shadow: 0 0 0 3px rgba(92, 140, 250, 0.25);
}

/* ---- Botões em pílula ---- */
.cm__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

.cm__btn {
    display: inline-block;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    padding: 0.85rem 2rem;
    border-radius: 100px;
    border: 1px solid var(--cm-azul);
    cursor: pointer;
    transition: color 0.15s, background-color 0.15s;
}

/* Todos os botões seguem o padrão da página: contorno azul por padrão e
   preenchimento azul com texto branco no hover/foco. */
.cm__btn--primary,
.cm__btn--outline {
    color: var(--cm-azul);
    background-color: transparent;
}

.cm__btn--primary:hover,
.cm__btn--primary:focus-visible,
.cm__btn--outline:hover,
.cm__btn--outline:focus-visible {
    color: #fff;
    border-color: var(--cm-hover);
    background-color: var(--cm-hover);
}

.cm__forgot {
    margin: 1rem 0 0;
}

.cm__forgot a {
    font-size: 12px;
    line-height: 20px;
    color: #171c66;
    text-decoration: none;
}

.cm__forgot a:hover {
    text-decoration: underline;
}

/* ---- Responsivo ---- */
@media (max-width: 768px) {
    .cm__cols {
        gap: 2.5rem;
    }

    .cm__form {
        max-width: none;
    }
}
