﻿#IniciarSesion .log-err,
#RegistroLogin .log-err {
    background: #fdecea;
    border: 1px solid #f5c2c0;
    border-left: 4px solid #E84118;
    border-radius: 4px;
    color: #b3261e;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 12px;
    margin-bottom: 12px;
}

/*=========================================
    CAMPOS CON ETIQUETA VISIBLE (login y registro)
    Etiqueta arriba, ícono dentro del campo y ayuda debajo. No se usa .input-group:
    index.css lo apila en columna en móvil y dejaba los campos de 28px de ancho.
=========================================*/
#IniciarSesion .campo,
#RegistroLogin .campo {
    margin-bottom: 18px;
}

#RegistroLogin .campo-fila {
    column-gap: 0;
}

@media (min-width: 768px) {
    #RegistroLogin .campo-fila > .campo:first-child {
        padding-right: 8px;
    }

    #RegistroLogin .campo-fila > .campo:last-child {
        padding-left: 8px;
    }
}

#IniciarSesion .campo-label,
#RegistroLogin .campo-label {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2a44;
}

#IniciarSesion .campo-req,
#RegistroLogin .campo-req {
    color: #E84118;
    font-weight: 700;
}

#IniciarSesion .campo-control,
#RegistroLogin .campo-control {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

#IniciarSesion .campo-icono,
#RegistroLogin .campo-icono {
    position: absolute;
    left: 14px;
    font-size: 18px;
    color: #6B7280;
    pointer-events: none;
}

/* !important: index.css y style.css fijan altura/padding de .form-control con !important en móvil */
#IniciarSesion .campo-input,
#RegistroLogin .campo-input {
    width: 100% !important;
    height: 48px !important;
    padding: 10px 14px 10px 44px !important;
    font-size: 16px !important; /* 16px: iOS no hace zoom al enfocar */
    border: 1px solid #D1D5DB;
    border-radius: 10px !important;
    background: #fff;
    color: #111827;
    transition: border-color .2s, box-shadow .2s;
}

    #IniciarSesion .campo-input::placeholder,
    #RegistroLogin .campo-input::placeholder {
        color: #9CA3AF;
        font-size: 15px !important;
    }

    #IniciarSesion .campo-input:focus,
    #RegistroLogin .campo-input:focus {
        border-color: #0F3D5E;
        box-shadow: 0 0 0 3px rgba(15, 61, 94, .15);
        outline: none;
    }

/* Campos con botón del ojo: espacio a la derecha para que el texto no quede debajo */
#IniciarSesion .campo-control:has(.campo-ver-clave) .campo-input,
#RegistroLogin .campo-control:has(.campo-ver-clave) .campo-input {
    padding-right: 48px !important;
}

#IniciarSesion .campo-ver-clave,
#RegistroLogin .campo-ver-clave {
    position: absolute;
    right: 2px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #6B7280;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
}

    #IniciarSesion .campo-ver-clave:hover,
    #IniciarSesion .campo-ver-clave:focus-visible,
    #RegistroLogin .campo-ver-clave:hover,
    #RegistroLogin .campo-ver-clave:focus-visible {
        color: #0F3D5E;
        background: rgba(15, 61, 94, .08);
    }

#IniciarSesion .campo-ayuda,
#RegistroLogin .campo-ayuda {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
    color: #6B7280;
}

#RegistroLogin .campo-nota {
    margin: -4px 0 14px;
    font-size: 13px;
    color: #6B7280;
}

/* Casillas (ofertas / términos): casilla y texto en la misma línea, área táctil cómoda */
#RegistroLogin .check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    #RegistroLogin .check > input[type=checkbox] {
        flex-shrink: 0;
        width: 20px;
        height: 20px;
        margin: 2px 0 0;
        accent-color: #0F3D5E;
        cursor: pointer;
    }

    #RegistroLogin .check > label {
        margin: 0;
        font-size: 14.5px !important;
        font-weight: 500 !important;
        line-height: 1.45 !important;
        color: #374151;
        cursor: pointer;
    }

/* Botones principales (Ingresar / Crear Cuenta): .btn-login no tenía estilos, "Crear Cuenta" se veía como texto
   y "Ingresar" tomaba el azul genérico de Bootstrap del skin. Mismo estilo corporativo en ambos. */
#ucRegistrarse_btnIngresarSistema,
#ucRegistrarse_lnkRegister {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 26px;
    border: 0;
    border-radius: 10px;
    background: #0F3D5E;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, box-shadow .2s;
}

    #ucRegistrarse_btnIngresarSistema:hover,
    #ucRegistrarse_btnIngresarSistema:focus-visible,
    #ucRegistrarse_lnkRegister:hover,
    #ucRegistrarse_lnkRegister:focus-visible {
        background: #1a4d6d;
        color: #fff;
        box-shadow: 0 6px 16px rgba(15, 61, 94, .25);
    }

@media (max-width: 767.98px) {
    #ucRegistrarse_btnIngresarSistema,
    #ucRegistrarse_lnkRegister {
        width: 100%;
    }
}
