body {
    /*  background:url(/wbs/images/f1.jpg);*/
    /*  animation: chbg 30s infinite alternate;*/
    /*  background-size:cover;*/
}

/*Media Query*/
@font-face {
    font-family: 'HelveticaNowText-Regular';
    src: url('HelveticaNowText-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'HelveticaNowText-Light';
    src: url('HelveticaNowText-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'HelveticaNowText-Bold';
    src: url('HelveticaNowText-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/*Slide img*/
body, html {
    transition: 3s;
    height: 100%;
    width: 100%;
    overflow: hidden;
}
html body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
    -ms-flex-direction: column-reverse;
    flex-direction: column-reverse;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 100%;
    background-color:transparent !important;
}

div.jumbotron {
    margin-bottom: 30px;
    color: inherit;
    background-color: #fff;
    padding: 30px 30px;
}

html body .blankpage-form-field {
    width: 320px
}

html body .blankpage-form-field .card {
    margin: 0;
    padding: 13.5px 50px 15.5px;
    -webkit-box-shadow: 0 2px 10px rgba(0,0,0,.2);
    box-shadow: 0 2px 10px rgba(0,0,0,.2)
}

html body .blankpage-form-field .blankpage-btn {
    font-size: 1rem;
    font-weight: 400;
    padding: 10px 15px;
    margin: 10px 0 5px
}

html body .blankpage-footer {
    padding: 10px 0;
    font-size: .75rem;
    color: #73579d
}

html body .login-footer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: rgba(255,255,255,.9);
    font-size: .6875rem;
    text-align: center
}

html body .blankpage-form-field {
    width: 345px;
    background-color:#fff;
    border-radius: 6px;
    padding-bottom: 33px;
}
#loginForm{
    text-align:left;
}
.labelForm{
    font-family: HelveticaNowText-Light;
    font-weight: 100;
}
.page-logo-link{
    font-family: HelveticaNowText-Light;
    font-weight: 100;
    font-size: 16px !important;
}
.form-control:focus{
    border: 1px solid #000;
    box-shadow:none;
    background-color:#fff !important;
}
.form-control .input:-internal-autofill-selected {
    appearance: menulist-button;
    background-image: none !important;
    background-color: #fff !important;
    color: -internal-light-dark(black, white) !important;
}

.card{
    -webkit-box-shadow:none !important;
    background-color: #ffffff !important;
}
.textOlvido a{
    font-family: HelveticaNowText-Regular;
    text-decoration: underline;
    color: #4d4a4a !important;
}
#rc{
    position:absolute;
    top:30px;
    right:-24px;
    cursor:pointer;
}
div.blankpage-form-field {
  padding: 30px 15px;
  margin-bottom: 30px;
  color: inherit;
  background-color: #ffffff !important;
}

/* ==========================================================================
   CONFIGURACIONES ESPECÍFICAS DE ENTORNO (FINSA / FORESA / XILONOR)
   ========================================================================== */

/* --- VALORES POR DEFECTO / FINSA THEME --- */
div.logo {
    content: url('logofinsa.png');
    max-width: 30%;
    height: auto;
    display: inline-block !important;
    vertical-align: middle;
}
.entorno {
    color: #fff !important;
    font-family: HelveticaNowText-Bold;
    font-size: 2rem;
    background-color: #CE1428 !important;
}

.finsa-theme div.logo {
    content: url('logofinsa.png') !important;
    max-width: 30% !important;
    height: auto;
    display: inline-block !important;
    vertical-align: middle;
}
.finsa-theme .entorno {
    color: #fff !important;
    font-family: HelveticaNowText-Bold;
    font-size: 2rem;
    background-color: #CE1428 !important;
}

/* --- FORESA THEME --- */
.foresa-theme div.logo {
    content: url('logoforesa.png') !important;
    max-width: 70% !important;
    height: auto;
    display: inline-block !important;
    vertical-align: middle;
}
.foresa-theme .entorno {
    color: #fff !important;
    font-family: HelveticaNowText-Bold;
    font-size: 2rem;
    background-color: #7fb928 !important;
}

/* --- XILONOR THEME --- */
.xilonor-theme div.logo {
    content: url('logoxilonor.png') !important;
    max-width: 50% !important;
    height: auto;
    display: inline-block !important;
    vertical-align: middle;
}
.xilonor-theme .entorno {
    color: #fff !important;
    font-family: HelveticaNowText-Bold;
    font-size: 2rem;
    background-color: #00c8b8 !important; 
}

/* ==========================================================================
   CLASES DE UTILIDAD PARA COMPATIBILIDAD CON CSP ESTRICTO (SIN ESTILOS INLINE)
   ========================================================================== */

.page-logo-container {
    text-align: center;
    margin: 0;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.form-group-relative {
    position: relative;
}

.forgot-password-wrapper {
    padding-top: 20px;
    padding-bottom: 20px;
}

.btn-full-width {
    width: 100%;
}

.btn-oidc {
    width: 100%;
    margin-top: 15px;
}

.logo-hidden {
    display: none !important;
}

.text-arial {
    font-family: Arial, sans-serif !important;
}

.img-logout {
    width: 90px;
    margin: 0 auto;
    display: block;
}

.custom-alert {
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    background-color: #f8d7da;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.d-none { 
    display: none !important; 
}

/* Slide backgrounds for CSP compliance (no inline styles allowed by default-src 'self') */
.bg-slide-1 { background-image: url('f1.jpg'); background-size: cover; background-position: center; background-attachment: fixed; }
.bg-slide-2 { background-image: url('f2.jpg'); background-size: cover; background-position: center; background-attachment: fixed; }
.bg-slide-3 { background-image: url('f3.jpg'); background-size: cover; background-position: center; background-attachment: fixed; }
.bg-slide-4 { background-image: url('f4.jpg'); background-size: cover; background-position: center; background-attachment: fixed; }
.bg-slide-5 { background-image: url('f5.jpg'); background-size: cover; background-position: center; background-attachment: fixed; }

/* Foresa Slide Backgrounds */
.foresa-theme.bg-slide-1 { background-image: url('f1_foresa.jpg'); }
.foresa-theme.bg-slide-2 { background-image: url('f2_foresa.jpg'); }
.foresa-theme.bg-slide-3 { background-image: url('f3_foresa.jpg'); }
.foresa-theme.bg-slide-4 { background-image: url('f4_foresa.jpg'); }
.foresa-theme.bg-slide-5 { background-image: url('f5_foresa.jpg'); }

/* Xilonor Slide Backgrounds */
.xilonor-theme.bg-slide-1 { background-image: url('f1_xilonor.jpg'); }
.xilonor-theme.bg-slide-2 { background-image: url('f2_xilonor.jpg'); }
.xilonor-theme.bg-slide-3 { background-image: url('f3_xilonor.jpg'); }
.xilonor-theme.bg-slide-4 { background-image: url('f4_xilonor.jpg'); }
.xilonor-theme.bg-slide-5 { background-image: url('f5_xilonor.jpg'); }