body {
    margin: 0;
    background: #0c5c68;
}

.sis-login {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: #0c5c68;
    color: #1d1d1f;
    font-family: "Source Sans Pro", sans-serif;
}

.sis-login-card {
    display: flex;
    width: min(680px, 100%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.sis-login-form {
    flex: 1 1 auto;
    min-width: 0;
    padding: 32px 28px 24px;
}

.sis-login-form h1 {
    margin: 0 0 20px;
    color: #1d1d1f;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.sis-login-lead {
    margin: -8px 0 16px;
    color: #6e6e73;
    font-size: 13px;
    font-weight: 500;
}

.sis-login-empresa {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: -4px 0 18px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f5f5f7;
}

.sis-login-empresa strong {
    color: #1d1d1f;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.sis-login-empresa span {
    color: #6e6e73;
    font-size: 12px;
    font-weight: 600;
}

.sis-login-k {
    display: block;
    margin: 0 0 6px;
    color: #86868b;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sis-login-aviso {
    margin: 0 0 12px;
    color: #6e6e73;
    font-size: 13px;
}

.sis-login-aviso a {
    color: #00788a;
    font-weight: 600;
}

.sis-login .alert {
    margin-bottom: 12px;
    border: 0;
    border-radius: 12px;
    font-size: 13px;
}

body:has(.sis-login) > .row {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 40;
    width: auto;
    max-width: min(480px, calc(100% - 36px));
    margin: 0;
    pointer-events: none;
    transform: translateX(-50%);
}

body:has(.sis-login) > .row > [class*="col-"] {
    float: none;
    width: auto;
    max-width: 100%;
    padding: 0;
}

body:has(.sis-login) > .row > [class*="col-"] > .alert {
    position: relative;
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: min(480px, calc(100vw - 80px));
    margin: 0 !important;
    pointer-events: auto;
    padding: 10px 34px 10px 12px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: #1d1d1f !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16), 0 0 1px rgba(0, 0, 0, 0.16);
    font-size: 14px;
}

body:has(.sis-login) > .row > [class*="col-"] > .alert > h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

body:has(.sis-login) > .row > [class*="col-"] > .alert > h4 > .fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #248a3d;
    color: #fff;
    font-size: 11px;
}

body:has(.sis-login) > .row > [class*="col-"] > .alert-danger > h4 > .fa {
    background: #ff3b30;
}

body:has(.sis-login) > .row > [class*="col-"] > .alert-danger > h4 > .fa:before {
    content: "\f00d";
}

body:has(.sis-login) > .row > [class*="col-"] > .alert-warning > h4 > .fa {
    background: #ff9f0a;
}

body:has(.sis-login) > .row > [class*="col-"] > .alert .close {
    position: absolute;
    top: 8px;
    right: 8px;
    float: none;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    color: #6e6e73;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-shadow: none;
    opacity: 1;
}

body:has(.sis-login) > .row > [class*="col-"] > .alert .close:hover,
body:has(.sis-login) > .row > [class*="col-"] > .alert .close:focus {
    background: rgba(0, 0, 0, 0.06);
    color: #1d1d1f;
    opacity: 1;
}

.sis-login-field {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    margin: 0 0 10px;
    padding: 0 12px;
    border: 1px solid rgba(60, 60, 67, 0.16);
    border-radius: 12px;
    background: #fff;
}

.sis-login-field:focus-within {
    border-color: #00788a;
}

.sis-login-field .fa {
    width: 16px;
    color: #86868b;
    text-align: center;
}

.sis-login-field input,
.sis-login-field .form-control {
    flex: 1 1 auto;
    width: 100%;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: #1d1d1f;
    font-size: 14px;
}

.sis-login-field .form-control[readonly] {
    background: transparent;
    color: #1d1d1f;
}

.sis-login-nota {
    margin: 2px 0 14px;
    color: #6e6e73;
    font-size: 13px;
    line-height: 1.4;
}

.sis-login-field input:-webkit-autofill,
.sis-login-field input:-webkit-autofill:hover,
.sis-login-field input:-webkit-autofill:focus,
.sis-login-field input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #1d1d1f;
    caret-color: #1d1d1f;
    transition: background-color 9999s ease-out;
}

.sis-login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    margin-top: 6px;
    border: 0;
    border-radius: 980px;
    background: #00788a;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.sis-login-submit:hover,
.sis-login-submit:focus {
    background: #006274;
    color: #fff;
}

.sis-login-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    font-size: 13px;
}

.sis-login-links a {
    color: #00788a;
    font-weight: 600;
    text-decoration: none;
}

.sis-login-links a:hover {
    text-decoration: underline;
}

.sis-login-links .is-derecha {
    margin-left: auto;
}

.sis-login-links.is-centro {
    justify-content: center;
}

.sis-login-marca {
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 20px;
    background: #f5f5f7;
    text-align: center;
}

.sis-login-marca img {
    width: 132px;
    height: 132px;
    object-fit: contain;
}

.sis-login-marca p {
    margin: 0;
    color: #6e6e73;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.sis-login-soporte {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.sis-login-soporte a {
    color: inherit;
    text-decoration: none;
}

.sis-login-soporte a:hover {
    text-decoration: underline;
}

@media (max-width: 680px) {
    .sis-login-card {
        flex-direction: column;
    }

    .sis-login-marca {
        flex: none;
        padding: 20px 16px 8px;
        background: #fff;
    }

    .sis-login-marca img {
        width: 84px;
        height: 84px;
    }

    .sis-login-form {
        padding-top: 8px;
    }
}
