/* =========================================================
   VIVACAN · Login
   ========================================================= */

#com-users-login__form .vivacan-login-help {
    margin-top: 8px;
    color: #667788;
    font-size: 14px;
    line-height: 1.45;
}

#com-users-login__form .vivacan-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 28px;
    background: #004F8A !important;
    background-image: none !important;
    border: 1px solid #004F8A !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    text-transform: none !important;
    box-shadow: none !important;
    cursor: pointer;
}

#com-users-login__form .vivacan-login-btn:hover,
#com-users-login__form .vivacan-login-btn:focus {
    background: #0077C8 !important;
    border-color: #0077C8 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
#com-users-login__form .vivacan-login-help {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f4f8fb;
    border-left: 3px solid #0077C8;
    border-radius: 4px;
    color: #3f5668;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
}
/* =========================================================
   VIVACAN · Login centrado sin imagen de fondo
   ========================================================= */

body.com-users.view-login #sp-main-body {
    background-image: none !important;
    padding: 70px 0 100px !important;
}

/* Centrar completamente el formulario */
body.com-users.view-login .login > .row {
    display: flex !important;
    justify-content: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.com-users.view-login .login > .row > .col-md-6 {
    float: none !important;
    flex: 0 0 560px !important;
    width: 560px !important;
    max-width: 560px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Móvil */
@media (max-width: 767px) {
    body.com-users.view-login #sp-main-body {
        padding: 45px 20px 70px !important;
    }

    body.com-users.view-login .login > .row > .col-md-6 {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}
/* VIVACAN · Campos de acceso homogéneos */
body.com-users.view-login #com-users-login__form input[type="text"],
body.com-users.view-login #com-users-login__form input[type="password"] {
    background-color: #eaf2fd !important;
    padding: 10px 12px !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-bottom: 1px solid #000 !important;
}
body.com-users.view-login #com-users-login__form input:-webkit-autofill,
body.com-users.view-login #com-users-login__form input:-webkit-autofill:hover,
body.com-users.view-login #com-users-login__form input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #eaf2fd inset !important;
    -webkit-text-fill-color: #000 !important;
}
body.com-users.view-login #sp-main-body {
    background-image: none !important;
    padding: 70px 0 100px !important;
}

body.com-users.view-login .login .col-lg-5 {
    max-width: 560px;
}
/* =========================================================
   VIVACAN - PÁGINAS DE ERROR 403 / 404
   Plantilla: Celestia / Helix Ultimate
   Joomla 6.2.0
   ========================================================= */

/* Página completa */
html.error-page,
html.error-page body {
    min-height: 100vh !important;
}

html.error-page body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 40px 20px !important;

    text-align: center !important;
}

/* Contenedor */
html.error-page body > .container {
    width: 100% !important;
    max-width: 760px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* Logotipo */
html.error-page img.error-logo {
    display: block !important;

    width: auto !important;
    max-width: 210px !important;
    max-height: 115px !important;
    height: auto !important;

    margin: 0 auto 25px !important;
    object-fit: contain !important;
}

/* Número 403 / 404 */
html.error-page .error-code {
    font-size: clamp(90px, 14vw, 160px) !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    color: #FFFFFF !important;

    margin: 0 0 20px !important;
    padding: 0 !important;
}

/* Mensaje del error */
html.error-page .error-message {
    font-size: clamp(18px, 2vw, 23px) !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;

    color: #FFFFFF !important;

    margin: 0 auto 35px !important;
    max-width: 650px !important;
}

/* Botón volver al inicio */
html.error-page a.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;

    padding: 14px 30px !important;

    background: #004F8A !important;
    border: 1px solid #FFFFFF !important;
    border-radius: 8px !important;

    color: #FFFFFF !important;

    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    text-decoration: none !important;

    transition: all 0.2s ease !important;
}

/* Hover */
html.error-page a.btn:hover,
html.error-page a.btn:focus {
    background: #0077C8 !important;
    border-color: #0077C8 !important;
    color: #FFFFFF !important;
    border-radius: 10px !important;
}

/* Móvil */
@media (max-width: 767px) {

    html.error-page body {
        padding: 30px 18px !important;
    }

    html.error-page img.error-logo {
        max-width: 160px !important;
        max-height: 90px !important;
        margin-bottom: 25px !important;
    }

    html.error-page .error-code {
        font-size: 95px !important;
    }

    html.error-page .error-message {
        font-size: 17px !important;
        margin-bottom: 25px !important;
    }

    html.error-page a.btn {
        padding: 12px 22px !important;
        font-size: 14px !important;
    }
}
/* =========================================================
   VIVACAN - AJUSTES FINALES PÁGINAS 403 / 404
   ========================================================= */

/* Mejorar ligeramente la visibilidad del logotipo */
html.error-page img.error-logo {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.25)) !important;
}

/* Eliminar bordes y sombras adicionales del botón */
html.error-page a.btn {
    outline: none !important;
    box-shadow: none !important;
}

html.error-page a.btn::before,
html.error-page a.btn::after {
    box-shadow: none !important;
}
/* =========================================================
   VIVACAN - ELIMINAR DOBLE BORDE DEL BOTÓN 403 / 404
   ========================================================= */

html.error-page a.btn.btn-with-border::before,
html.error-page a.btn.btn-with-border::after {
    content: none !important;
    display: none !important;
}

html.error-page a.btn.btn-with-border {
    border: 1px solid #FFFFFF !important;
    outline: 0 !important;
    box-shadow: none !important;
}
