@charset "utf-8";

/* ============================================================
   PANDORA MODERN CSS (PUCP)
   Integrated Styles from legacy CAS 6 (style.css, mobile.css, mediano.css)
   ============================================================ */

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

:focus {
    outline: 0;
}

ul,
li {
    list-style-type: none;
}

a {
    color: #415C6C;
    text-decoration: none;
}

a:hover {
    color: #415C6C;
    text-decoration: underline;
}

a img {
    border: none;
}

/**** ESTILOS GENERALES ****/
body {
    font-size: 12px;
    color: #415C6C;
    font-family: 'Arial', sans-serif;
    background-color: #E9E9E9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

#cuerpo {
    flex: 1;
    max-width: 960px;
    width: 100%;
    margin: 0px auto;
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

.u-pull-left {
    float: left;
    position: relative;
}

.u-pull-right {
    float: right;
    position: relative;
}

.u-clear {
    clear: both;
}

/*** CONTENIDO ***/

#header {
    padding: 20px 0px;
    background: #042354;
}

.head-content {
    max-width: 960px;
    width: 100%;
    margin: 0px auto;
    padding-left: 20px;
}

.logo2021 {
    width: auto;
    height: 57px;

}

.logueo-cabecera {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 20px;
}

/* Logueo Box */
.h1-logueo {
    padding: 20px 0 10px;
}

.h1-logueo h1 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.login-box-container {
    background-color: #e9e9e9;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: 15px 10px 15px 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.login-box-container .logueo-cuerpo {
    margin-bottom: 0;
}

.logueo-cuerpo {
    background-color: #A4DDDE;
    padding: 32px 0px;
    border-radius: 0px;
    margin-bottom: 20px;
}

.formulario {
    width: 385px;
    margin: 0 auto;
}

.formulario .label {
    width: 80px;
    font-weight: bold;
    text-align: right;
    padding-top: 4px;
    padding-bottom: 26px;
    font-size: 13px;
}

.formulario .input {
    width: 270px;
    padding: 5px 10px;
    color: #415C6C;
    border: 1px solid #75C4D5;
    box-sizing: content-box;
}

.formulario .enviar {
    width: 290px;
}

.formulario .enviar .submit {
    display: block;
    height: 40px;
    width: 145px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    border: 0 none;
    position: relative;
    background-color: #041b3a;
    /* Fallback for tools */
    background: #041b3a url('/pucp/themes/pucp-theme/images/fondo_submit-360462d016f7070b78c54868a07b3ab5.gif') repeat-x left top;
    cursor: pointer;
}

.formulario .enviar a.olvido {
    color: #124359;
    text-decoration: underline;
    display: inline-block;
    margin: 10px 0 0 10px;
}

.logueo-pie {
    padding: 10px 15px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logueo-pie .warning-azul {
    background: #e9e9e9 url('/pucp/themes/pucp-theme/images/warning_azul-3923fd37d83e86bf2a37195c30ead689.gif') no-repeat left top;
    background-size: 36px auto;
    background-color: #e9e9e9;
    /* Added fallback color for accessibility contrast tools */
    flex: 1;
    min-height: 36px;
    padding-left: 48px !important;
    line-height: 1.4em;
    color: #415C6C;
    max-width: 390px;
}

.logueo-pie .warning-azul span,
.logueo-pie .warning-azul a {
    background-color: #e9e9e9;
    /* Explicit for tools */
}

.logueo-pie .warning-azul a {
    text-decoration: underline;
    color: #042354;
    /* PUCP Dark Blue for visual consistency and high contrast */
}

.logueo-pie .back-link {
    background: url('/pucp/themes/pucp-theme/images/anti_bullet-0c128eab0b374a46c2c61165345c78da.gif') no-repeat left top;
    background-size: auto 16px;
    height: 20px;
    min-width: 160px;
    padding-left: 25px;
    text-align: right;
    position: relative;
    flex-shrink: 0;
    align-self: normal;
}

.logueo-pie .back-link a {
    color: #124359;
    text-decoration: underline;
    font-size: 12px;
    background-color: #e9e9e9;
    /* Fallback for tools */
}


/* Generic Error Pages (4xx, 5xx, Delegated Authn) */
.pucp-error-box {
    border-radius: 4px;

    padding: 30px;
    margin: 40px auto;
    max-width: 600px;
    text-align: left;
}

.pucp-error-header {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-bottom: 25px;
}

.pucp-error-header .error-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #E1572F;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 15px;
}

.pucp-error-header h1 {
    font-size: 22px;
    color: #042354;
    margin-bottom: 10px;
}

.pucp-error-header p {
    font-size: 14px;
    color: #415C6C;
    line-height: 1.5;
}

.pucp-error-body {
    background-color: #f8f9fa;
    border-left: 4px solid #75C4D5;
    
    margin-bottom: 25px;
    text-align: left!important;
}

.pucp-error-body pre {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #333;
}

.pucp-error-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.pucp-error-footer a {
    color: #042354;
    text-decoration: underline;
    font-weight: bold;
}

.pucp-error-footer a:hover {
    color: #124359;
}

/* Idioma */
.idioma {
    width: 210px;
    padding: 20px 19px 0 0;
    font-size: 11px;
    box-sizing: content-box;
}

.cambiar {
    width: 115px;
    text-align: right;
    padding-top: 9px;
}

.bandera-ingles {
    background: url(/pucp/themes/pucp-theme/images/bandera-ingles-8098cb15e5ec05285e87a55957d4cab2.png) no-repeat;
    width: 90px;
    height: 32px;
}

.bandera-ingles:hover {
    background: url(/pucp/themes/pucp-theme/images/bandera-ingles-on-3d35b95fabad3fc3142b2ce5ad95b4ba.png) no-repeat;
}

.bandera-ingles a,
a[href="javascript:void(0)"] {
    display: block;
    padding: 9px 0 9px 38px;
    text-decoration: underline;
    color: #042354;
}

.bandera-espanol {
    background: url(/pucp/themes/pucp-theme/images/bandera-espanol-8edd3ebc2eb749e33a785df1e18c93e2.png) no-repeat;
    width: 90px;
    height: 32px;
}

.bandera-espanol:hover {
    background: url(/pucp/themes/pucp-theme/images/bandera-espanol-on-76b71a181ffece9a6840d0674a0c9894.png) no-repeat;
}

.bandera-espanol a {
    display: block;
    padding: 9px 0 9px 38px;
    text-decoration: underline;
    color: #042354;
}


/* Feedback messages */
.incorrecto {
    background: url('/pucp/themes/pucp-theme/images/fondo_incorrecto-d5068d38cab4dc28056933b70b57732d.gif') repeat left top;
    color: #fff;
    text-align: center;
    font-weight: bold;
    border: 2px solid #E1572F;
    padding: 7px 0px;
    margin-top: 10px;
    margin-bottom: 25px;
}

.deshabilitado {
    background: url('/pucp/themes/pucp-theme/images/incorrecto-eded76c44ece6188bf5fae077ad68fc2.gif') no-repeat left top;
    padding-left: 75px;
    margin-left: 15px;
    min-height: 75px;
}

.deshabilitado h1 {
    font-size: 18px;
    margin-bottom: 10px;
}

.success-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    margin: 40px auto;
    max-width: 500px;
}

.success-icon {
    font-size: 64px;
    color: #7DB344;
    margin-bottom: 20px;
}

.success-title {
    color: #042345;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.cierre-correcto {
    background: url('/pucp/themes/pucp-theme/images/correcto-382e774f26f39407aebb7c4d0f477ba0.gif') no-repeat left center;
    padding-left: 90px;
    margin-left: 15px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.cierre-correcto h1 {
    font-size: 16px;
    color: #021a3f;
    padding-bottom: 5px;
    font-weight: bold;
    margin: 0;
}

.cierre-correcto p {
    font-size: 12px;
    line-height: 1.4em;
    color: #415C6C;
    margin: 0;
}

.regresar {
    display: block;
    margin: 0 auto;
    width: 145px;
    padding: 10px 0 9px;
    text-align: center;
    font-weight: bold;
    color: #fff !important;
    font-size: 16px;
    text-transform: uppercase;
    border: 0 none;
    background: url('/pucp/themes/pucp-theme/images/fondo_submit-360462d016f7070b78c54868a07b3ab5.gif') repeat-x left top;
}

.pie-centrado {
    margin-top: 25px;
    padding: 15px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    width: 100%;
}

#pucp-footer {
    width: 100%;
    clear: both;
    text-align: center;
    padding: 30px 0px;
    color: #fff;
    background-color: #042354;
    /* Fallback for tools */
    background: #042354 url('/pucp/themes/pucp-theme/images/trama2-bfdc79fac4ab1daea5262232eea0a114.gif') repeat left top;
    margin-top: auto;
}

.footer-copyright,
.footer-copyright span,
#pucp-footer .head-content>p,
#pucp-footer p>span {
    color: #ffffff;
}

.footer-copyright {
    padding-bottom: 5px;
    font-size: 12px !important;
    /* Increased for readability */
    font-weight: bold;
    color: #ffffff;
    /* Explicit for contrast compliance */
}

#pucp-footer p {
    font-size: 12px !important;
    /* Increased for readability */
    color: #ffffff;
    /* Explicit for contrast compliance */
}

/* ============================================================
   RESPONSIVE DESIGN (Based on Pandora's Adapt.js Logic)
   ============================================================ */

/* --- MEDIUM SCREENS (760px to 980px) --- */
@media (min-width: 760px) and (max-width: 980px) {

    #cuerpo,
    .head-content {
        width: 100%;
    }

    #cuerpo,
    .head-content img {
        margin-right: 12px;
    }

    .logo2021 {
        height: 57px;

    }
}

/* --- MOBILE SCREENS (0 to 760px) --- */
@media (max-width: 760px) {

    #cuerpo,
    .head-content {
        width: 100%;
        padding: 0 20px;
        /* Increased horizontal padding to 20px for mobile */
        box-sizing: border-box;
    }

    #cuerpo {
        padding: 0;
    }

    #cuerpo,
    .head-content img {
        margin-right: 0px;
    }

    .logueo-cabecera {
        flex-direction: column-reverse;
        align-items: center;
        padding: 0 20px;
    }

    .idioma {
        padding: 10px 0;
        width: 100%;
        display: flex;
        justify-content: right;
    }

    .idioma .cambiar {
        width: auto;
        padding-right: 10px;
    }

    .h1-logueo {
        text-align: center;
        padding-top: 10px;
        margin-top: 0;
    }

    .h1-logueo h1 {
        font-size: 17px;
    }

    .login-box-container {
        margin: 15px 0 20px !important;
        /* Center using the parent's padding */
        width: 100%;
    }

    .formulario {
        width: 85%;
        margin: 0 auto;
    }

    .formulario .label {
        width: 100%;
        text-align: left;
        padding: 5px 0;
    }

    .formulario .input {
        width: 100%;
        float: none;
        padding: 5px 2%;
        margin-bottom: 15px;
    }

    .formulario .enviar {
        width: 100%;
        margin: 20px auto 0 auto;
        float: none;
        position: relative;
        display: flex;
        flex-direction: column-reverse;
        /* Inverteix el ordre: Olvido (Top), Submit (Bottom) */
        align-items: center;
    }

    .formulario .enviar .submit {
        float: none;
        position: relative;
    }

    .formulario .enviar a.olvido {
        margin: 0 0 15px 0;
        /* Espai a sota per separar-lo del botó */
        text-align: center;
    }

    .logueo-cuerpo {
        min-height: 210px;
        width: 100%;
        padding-right: 15px;
    }

    .logueo-pie {
        position: relative;
        min-height: 95px;
        flex-direction: column-reverse;
        /* Swap: Back-link top, Warning bottom */
        align-items: center;
        padding: 10px;
    }

    .logueo-pie .warning-azul {
        width: 100%;
        padding-left: 45px !important;
        margin-top: 20px;
    }

    .logueo-pie .back-link {
        margin-top: 0;
        margin-bottom: 15px;
        background-position: left center;
        display: flex;
        justify-content: flex-end;
        align-self: flex-end;

        text-align: right;
    }

    #pucp-footer {
        font-size: 11px;
        padding: 20px 12px;
    }

    .logo2021 {
        height: 45px;

    }
}