
html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    /*background: #0d1b2a url('/Content/img/login-background.jpg') center center / cover no-repeat;*/
    color: #1f2933;
    font-family: Raleway, Arial, sans-serif;
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
   /* background:
        linear-gradient(135deg, rgba(14, 52, 86, 0.34), rgba(34, 184, 198, 0.18)),
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.28), transparent 32%),
        radial-gradient(circle at 82% 78%, rgba(253, 172, 2, 0.12), transparent 36%);*/
    pointer-events: none;
}

form {
    display: flex;
    min-height: 100vh;
}

.background-cover,
.background-custom-cover,
.videoFondo {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center center;
}

.videoFondo video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    padding: 32px;
    user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
}

.alert-warning {
    position: absolute;
    z-index: 10;
    left: 0;
    top: 0;
    right: 0;
    border-radius: 0;
}

.panel-login {
    width: min(100%, 520px);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.50);
    box-shadow: 0 24px 70px rgba(6, 20, 35, 0.32);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.panel-login-flex {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 42px 40px 38px;
}

.logo-login {
    display: block;
    max-width: 250px;
    max-height: 88px;
    margin: 0 auto 10px;
    object-fit: contain;
}

.login-subtitle {
    margin: 0 0 24px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.login-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 6px;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.22));
}

.panel-login h4 {
    margin: 12px 0 24px;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

.lock-profile-image {
    display: block;
    width: 84px;
    height: 84px;
    margin: 0 auto 14px;
    border: 4px solid rgba(255, 255, 255, 0.84);
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.lock-user-name {
    margin: 0 0 18px;
    color: #334155;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.form-control {
    position: relative;
    height: auto;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.88);
    color: #1f2933;
    font-size: 16px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control:focus {
    border-color: rgba(255, 255, 255, 0.92);
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 0 0 4px rgba(253, 172, 2, 0.28);
}

input[type="text"],
input[type="password"] {
    margin-bottom: 14px;
    border-radius: 12px;
}

input[type="submit"] {
    margin-top: 14px;
}

.btn-primary {
    border: 0;
    border-radius: 12px;
    background: #FDAC02;
    color: #1f2933;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(253, 172, 2, 0.28);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #e49a00;
    color: #1f2933;
    box-shadow: 0 16px 32px rgba(253, 172, 2, 0.34);
    transform: translateY(-1px);
}

.login-checkbox-ssl {
    display: inline-flex;
    align-items: center;
    margin: 0 0 6px;
    color: #334155;
    font-size: 13px;
}

.login-checkbox-ssl input {
    margin: 0 7px 0 0;
}

    .login-checkbox-ssl label {
        margin: 0;
    }

.text-danger {
    display: block;
    margin-bottom: 6px;
    color: #b42318;
    font-weight: 700;
}

.panel-mensaje-contenido {
    color: #0f172a;
}

.panel-mensaje-contenido h4 {
    text-align: center;
}

.panel-mensaje-contenido .btn {
    display: block;
    width: 100%;
    margin-top: 15px;
}

.copyright {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.display-block {
    display: block;
}

.panel-info-update {
    margin-top: 25px;
    text-align: center;
}

.login-video-toggle-link {
    display: inline-block;
    margin-top: 20px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    opacity: 0.72;
    transition: color 0.18s ease, opacity 0.18s ease;
}

    .login-video-toggle-link:hover,
    .login-video-toggle-link:focus {
        color: #0f172a;
        opacity: 1;
        text-decoration: underline;
    }

@media screen and (max-width: 770px) {
    .videoFondo {
        display: none;
    }

    .wrapper {
        padding: 24px 18px;
    }

    .panel-login {
        border-radius: 20px;
    }

    .panel-login-flex {
        padding: 34px 24px 30px;
    }

    .logo-login {
        max-width: 190px;
    }

    .panel-login h4 {
        font-size: 26px;
    }
}

@media screen and (max-width: 420px) {
    .wrapper {
        padding: 16px;
    }

    .panel-login-flex {
        padding: 30px 18px 26px;
    }

    .form-control {
        padding: 13px 14px;
    }
}


.digitos-otp {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 12px;
    margin: 8px 0 26px;
}

    .digitos-otp > .form-group {
        flex: 0 0 58px;
        width: 58px;
        margin: 0;
        padding: 0;
    }

    .digitos-otp input[type="text"] {
        width: 58px;
        height: 70px;
        margin: 0;
        padding: 0;
        border-radius: 14px;
        font-family: Arial, sans-serif, Helvetica;
        font-size: 2.25rem;
        font-weight: 500;
        line-height: 70px;
        text-align: center;
    }

    .digitos-otp .text-danger {
        position: absolute;
        margin-top: 2px;
    }

@media screen and (max-width: 560px) {
    .digitos-otp {
        gap: 8px;
    }

        .digitos-otp > .form-group,
        .digitos-otp input[type="text"] {
            width: 46px;
            flex-basis: 46px;
        }

        .digitos-otp input[type="text"] {
            height: 60px;
            font-size: 1.9rem;
            line-height: 60px;
        }
}
