/* m-login-completo.css */
:root {
    --gris-border: #D2D5DB;
    --gris-oscuro: #2f2f2f;
    --gris-medio: #888888;

    --azul-accent: #336CB4;
    --azul-accent-alfa: #336CB422;
    --azul-bg: #336CB417;
    --azul-grisaceo: #f0f0f0;

    --white-cc: #FFFFFFcc;
    --white-77: #FFFFFF77;

    --red: #D65E53;
    --red-alfa: #D65E5333;

    --shadow: rgba(0, 0, 0, 0.1);
    ---box-shadow: 0 0 8px 0 var(--shadow);
}

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

body {
    font-family: Helvetica, Arial, sans-serif;
    background-color: var(--azul-bg);
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

p {
    line-height: 1.5;
}

.card {
    /* layout */
    width: 460px;
    margin: 80px 0 20px 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* style */
    background-color: white;
    border-radius: 16px;
    box-shadow: var(---box-shadow);
}

.div-gray {
    background-color: var(--azul-grisaceo);
    padding: 10px 12px 10px 12px;
    border-radius: 8px;
}

/* form ============================*/

.campo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-size: 18px;
    font-weight: bold;
    color: var(--gris-oscuro);
}

input {
    padding-left: 12px;
    margin-bottom: 6px;
    height: 40px;
    font-size: 16px;
    border: 1px solid var(--gris-border);
    border-radius: 8px;
}


input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;

    width: 24px;
    height: 24px;
    border: 1px solid var(--gris-border);
    border-radius: 4px;

    cursor: pointer;
    position: relative;
    vertical-align: middle;
    margin-right: 8px;
}

input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;

    /* Posición y tamaño del check */
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;

    /* Color y forma del check */
    border: solid var(--azul-accent);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Botones button a ================*/
a {
    font-size: 16px;
    font-weight: bold;
    color: var(--azul-accent);
    word-break: break-all;
}

.like-button,
button {
    width: 100%;
    height: 40px;
    /* text */
    line-height: 40px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    /* style */
    color: white;
    background-color: var(--azul-accent);
    cursor: pointer;
    border: none;
    border-radius: 8px;
}

.like-button:hover,
button:hover {
    color: var(--white-cc);
}

.like-button:active,
button:active {
    color: var(--white-77);
}

/* Usar tras like-button (like-button btn-secondary) */
.btn-secondary {
    background-color: var(--gris-medio);
}

/* Mensajes ====================*/
.msg {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 12px;
    background-color: var(--azul-accent-alfa);
    border-left: 6px solid var(--azul-accent);
    border-radius: 8px;
}

/* Usar tras msg (msg msg-red) */
.msg-red {
    color: var(--red);
    background-color: var(--red-alfa);
    border-left: 6px solid var(--red);
}

.msg-red li {
    font-size: 15px;
    margin: 4px 6px 4px 8px; 
}

.msg div p {
    font-size: 14px;
    line-height: 1.2;
    color: var(--gris-medio);
}
