/* ==========================================================================
   Documentos (suscriptor 43 / compania 11841 = Restaunsa, representante del
   portal e-documentos) - login micrologin
   Clon de css/43/styles.css con la paleta de Documentos:
     primario  #2ea1be  rgb(46,161,190) (teal)
     hover     #1f7d96  (teal mas oscuro)
     acento    #014ea0  rgb(1,78,160) (azul)
   Solo cambian colores e imagen de fondo respecto al 43 base.
   ========================================================================== */
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    background: url("/jakarta.faces.resource/resources/img/bg/43_11841.png.jsf") no-repeat center center/cover;
    position: relative;
}
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #11182766;
    z-index: 0;
}

.container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
    padding-left: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 350px;
    border-top: 5px solid #2ea1be;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 1.0s forwards;
    margin-left: 10%;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo img {
    max-width: 45%;
    margin-bottom: 15px;
}

.input-group {
    margin-bottom: 15px;
}

button {
    width: 100%;
    font-weight: bold;
}

footer {
    background-color: rgba(46, 161, 190, 0.85);
    color: white;
    text-align: center;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    position: relative;
    z-index: 2;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 900px;
    width: 100%;
}

.footer-section {
    margin: 10px;
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.links {
    margin-top: 12px;
    text-align: center;
}

.link {
    color: #2ea1be !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
    font-size: 14px !important;
}

.link:hover {
    color: #1f7d96 !important;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    color: #555;
    text-decoration: none;
    font-size: 13px;
}

.help-icon img {
    width: 40px;
    height: 40px;
}

.form-actions {
    width: 100%;
    margin-top: 6px;
}

.form-actions .ui-button-seed {
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        justify-content: center;
        padding-left: 0;
    }

    .login-box {
        width: 280px;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .login-box {
        width: 75%;
        margin-left: 0;
    }
}

/*custom boton primefaces*/
body .ui-button.ui-button-seed, body .ui-splitbutton.ui-button-seed > .ui-button {
    background: #2ea1be;
    color: #ffffff;
    border: 1px solid #2ea1be;
}

body .ui-button.ui-button-seed.ui-state-hover, body .ui-splitbutton.ui-button-seed > .ui-button.ui-state-hover {
    background: #1f7d96;
    color: #ffffff;
    border-color: #1f7d96;
}

body .ui-button.ui-button-seed.ui-state-focus, body .ui-splitbutton.ui-button-seed > .ui-button.ui-state-focus, body .ui-menubutton.ui-button-seed > .ui-button.ui-state-focus {
    box-shadow: 0 0 0 .2rem rgba(46, 161, 190, 0.9)
}

/*custom inputfiled primefaces*/
body .ui-inputfield.ui-inputfield-seed.ui-state-hover {
    border-color: #014ea0
}

body .ui-inputfield.ui-inputfield-seed.ui-state-focus {
    border-color: #2ea1be;
    outline: 0 none;
    box-shadow: 0 0 0 .2em rgba(46, 161, 190, 0.29)
}

a {
    color: #2ea1be;
    text-decoration: none;
}

/* Leyenda de privacidad */
.privacy-notice {
    margin: 12px 0;
    text-align: left;
}

.privacy-text {
    font-size: 11px;
    color: #555;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.privacy-label {
    font-size: 12px;
    color: #333;
    cursor: pointer;
}

/* Layout del formulario reordenado (mockup) */
.forgot-link {
    font-size: 15px !important;
}

.help-row {
    text-align: center;
    margin-top: 14px;
}

.help-text {
    color: #555;
}

/* Unifica la tipografia de TODO el formulario: evita la mezcla Verdana (inline) / tema PrimeFaces */
.login-box, .login-box * {
    font-family: Arial, sans-serif !important;
}

.download-link {
    margin-top: 16px;
}
