*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body.login-page {
    height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    width: 100%;
    overflow: hidden;
    font-family: "Source Sans Pro", sans-serif;
    background: #f4f6f9;
    background-image: linear-gradient(rgba(9, 18, 28, 0.02), rgba(9, 18, 28, 0.02)), url('/image/img_controlec.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-shell {
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    overflow: hidden;
}

.login-box {
    width: 100%;
    max-width: 470px;
    margin: 0;
}

.login-card {
    border-radius: 16px;
    border: 4px solid rgba(96, 99, 104, 0.7);
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.login-logo {
    margin: 0;
    padding: 18px 18px 6px;
    text-align: center;
}

.login-logo img {
    width: min(100%, 420px);
    height: auto;
    opacity: 0.95;
}

.login-card .card-body {
    background: transparent;
    padding: 8px 28px 22px;
}

.login-card-body {
    color: #212529;
}

.login-title {
    margin: 6px 0 16px;
    font-size: 40px;
    line-height: 1.05;
    font-weight: 300;
    text-align: center;
    color: #101215;
    letter-spacing: 0.2px;
}

.login-form-ec {
    margin-top: 2px;
}

.login-info-alert {
    margin-bottom: 12px;
    border-radius: 10px;
    font-size: 0.94rem;
}

.validation-summary {
    font-size: 0.92rem;
}

.field-wrap .text-danger {
    display: block;
    margin-top: 4px;
    font-size: 0.86rem;
}

.login-input-group {
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 7px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.34);
}

.login-input-icon {
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-right: 1px solid rgba(196, 206, 221, 0.95);
    background: rgba(255, 255, 255, 0.58);
    color: #6f757d;
    padding: 0;
}

.login-input {
    border: none;
    box-shadow: none;
    height: 42px;
    font-size: 1.05rem;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.18);
    color: #1d2126;
}

.login-input::placeholder {
    color: #2a2f35;
    opacity: 0.92;
    font-weight: 400;
}

.login-input:focus {
    background: rgba(255, 255, 255, 0.26);
    box-shadow: none;
}

.forgot-wrap {
    text-align: right;
    margin: 2px 0 14px;
}

.forgot-link {
    color: #2f6f99;
    font-size: 1rem;
    text-decoration: none;
}

.forgot-link:hover,
.forgot-link:focus {
    color: #265d81;
    text-decoration: underline;
}

.submit-wrap {
    margin: 0;
}

.login-submit-btn {
    border: none;
    border-radius: 6px;
    height: 48px;
    font-size: 1.06rem;
    font-weight: 500;
    background: linear-gradient(90deg, #2688d8, #1d6eb6);
    box-shadow: 0 6px 14px rgba(35, 114, 178, 0.28);
}

.login-submit-btn:hover,
.login-submit-btn:focus {
    background: linear-gradient(90deg, #237fc9, #1a649f);
}

@media (min-width: 992px) {
    body.login-page {
        background-attachment: fixed;
    }
}

@media (max-width: 991.98px) {
    body.login-page {
        background-attachment: scroll;
        background-color: #f4f6f9;
        background-image: linear-gradient(rgba(9, 18, 28, 0.02), rgba(9, 18, 28, 0.02)), url('/image/imagen_controlec_mo.jpeg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}
