html {
    height: 100%;
    font-size: 100%;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    height: 100%;
    line-height: 1.5em;
    margin: 0;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Fondo de pantalla con overlay claro - MODO LIGHT */
/* Ahora gestionado por holdtech.css - clase .hst-login-bg */
#brickwall {
    background-image: url(../logo.php?backdrop);
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#brickwall::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(248, 249, 250, 0.5);
}

#background-compat {
    display: none;
}

#background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-image: url(../logo.php?backdrop);
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

#blur {
    display: none;
}

body,
input {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Card del login - MODO LIGHT: fondo blanco, borde gris, border-radius 4px */
/* Ahora gestionado por holdtech.css - clase .hst-login-card */
#loginBox {
    width: 420px;
    padding: 2.5rem 2rem;
    text-align: center;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: fixed;
    left: 50%;
    top: 50%;
    margin-left: -210px;
    margin-top: -250px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    background-color: #ffffff;
    z-index: 1;
}

#loginBox:after {
    display: none;
}

/* IE 9-10 */
@media screen\0 {
    #loginBox {
        background-color: #ffffff;
    }
}

h1 {
    margin: 0 0 1.5rem 0;
}

/* Logo centrado de 150px */
#logo a {
    display: block;
    text-decoration: none;
    height: auto;
    margin-bottom: 1rem;
}

#logo a img {
    width: 150px;
    height: 150px;
    max-width: 150px;
    max-height: 150px;
    vertical-align: middle;
    outline: none;
    border: none;
}

.valign-helper {
    display: none;
}

/* Título "Se requiere autenticación" - MODO LIGHT */
/* Ahora gestionado por holdtech.css - clase .hst-login-title */
h3 {
    margin: 0 0 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #dc2626;
    letter-spacing: 0.025em;
}

form {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

/* Inputs con estilo moderno - MODO LIGHT */
/* Ahora gestionado por holdtech.css - clase .hst-form-input */
fieldset input[type="text"],
fieldset input[type="password"] {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    background: #ffffff;
    padding: 0.75rem 1rem;
    width: 100%;
    box-sizing: border-box;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #111827;
    transition: all 0.2s ease;
}

fieldset input[type="text"]:focus,
fieldset input[type="password"]:focus {
    border: 1px solid #005ea9;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 94, 169, 0.1);
}

input::placeholder,
:-webkit-input-placeholder {
    color: #9ca3af;
    font-style: normal;
}

:-moz-placeholder {
    color: #9ca3af;
    font-style: normal;
}

/* Enlaces "Olvidé mi contraseña" - MODO LIGHT */
/* Ahora gestionado por holdtech.css - clase .hst-login-link */
#reset-link {
    color: #005ea9;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

#reset-link:hover {
    color: #003d6b;
    text-decoration: underline;
}

hr {
    margin: 20px 0;
    border: none;
    height: 1px;
    background: #dee2e6;
}

div.banner {
    color: #6b7280;
    line-height: 1.4em;
    font-size: 0.85rem;
}

div.banner:not(:empty) {
    margin-bottom: 1.5em;
}

* {
    box-sizing: border-box;
}

/* Botones con estilo moderno - MODO LIGHT con colores institucionales */
/* Ahora gestionado por holdtech.css - clase .hst-btn-primary */
input[type="submit"],
input[type="reset"],
input[type="button"],
button[type="submit"],
.action-button,
.button {
    cursor: pointer;
    display: inline-block;
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 1.5rem;
    border: 1px solid #005ea9;
    border-radius: 4px;
    background: #005ea9;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button[type="submit"]:hover,
.action-button:hover,
.button:hover {
    background: #003d6b;
    border-color: #003d6b;
    text-decoration: none;
}

input[type="submit"]:active,
button[type="submit"]:active {
    background: #003d6b;
}

input[type="submit"]:focus,
button[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 94, 169, 0.3);
}

input[type="submit"] i,
input[type="reset"] i,
input[type="button"] i,
.action-button i,
.button i {
    margin-right: 0.5em;
}

.pull-right {
    float: none;
}

/* Ocultar footer */
#poweredBy {
    display: none;
}

#company {
    display: none;
}

/* Loading dialog - MODO LIGHT */
#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 2rem 3rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#loading h1 {
    color: #111827;
    font-size: 1.1rem;
    font-weight: 500;
}

.dialog {
    color: #111827;
}

/* External auth - MODO LIGHT */
.external-auth {
    display: inline-block;
    margin-bottom: 8px;
    width: 100%;
}

.external-auth + .external-auth {
    margin-top: 8px;
}

a.external-sign-in {
    text-decoration: none;
    display: block;
}

.external-auth-box {
    vertical-align: middle;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    background: #ffffff;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.external-auth-box:hover {
    background: #f8f9fa;
    border-color: #005ea9;
}

.external-auth-icon {
    display: inline-block;
    color: #111827;
    width: 30px;
    padding: 10px;
    border-right: 1px solid #dee2e6;
}

.external-auth-name {
    color: #111827;
    flex: 1;
    padding: 10px 15px;
    line-height: 30px;
    font-size: 0.9rem;
}

img.sign-in-image {
    border: none;
    max-height: 40px;
    max-width: 200px;
    width: auto;
    height: auto;
}

.hidden {
    display: none;
}

.or {
    margin: 1.5rem 0;
}

/* Responsive */
@media (max-width: 480px) {
    #loginBox {
        width: 90%;
        margin-left: -45%;
        padding: 2rem 1.5rem;
    }

    #logo a img {
        width: 120px;
        height: 120px;
        max-width: 120px;
        max-height: 120px;
    }
}