/* =========================================
   LOGIN SAGEST — Variante B institucional
   Paleta: #004C79 (logo) / #032740 / #2f7fb8
========================================= */

.ep-login {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 500px at 80% -10%, rgba(47, 127, 184, .35), transparent 60%),
        linear-gradient(170deg, #043a5e 0%, #032740 60%, #021c2e 100%);
}

.ep-hex {
    position: absolute;
    stroke: #3a6c92;
    fill: none;
    stroke-width: 1.5;
    opacity: .5;
    pointer-events: none;
}

.ep-logo-top {
    width: 230px;
    max-width: 60vw;
    height: auto;
    margin-bottom: 30px;
    position: relative;
}

.ep-card {
    position: relative;
    width: 420px;
    max-width: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 40px 42px 30px;
    box-sizing: border-box;
    box-shadow: 0 30px 70px rgba(1, 15, 26, .5);
}

.ep-stripe {
    position: absolute;
    top: 0;
    left: 42px;
    right: 42px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, #004C79, #2f7fb8);
}

.ep-title {
    font-size: 24px;
    font-weight: 700;
    color: #0d2f47;
    margin: 0 0 6px;
}

.ep-sub {
    font-size: 14.5px;
    color: #5c7689;
    margin: 0 0 26px;
}

.ep-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #33506a;
    margin: 0 0 7px;
}

.ep-field {
    position: relative;
    margin-bottom: 18px;
}

.ep-field .ep-ico {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6d8aa0;
    font-size: 15px;
    pointer-events: none;
}

.ep-input {
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    border-radius: 10px;
    padding: 0 44px;
    font-size: 15px;
    color: #12283a;
    background: #f2f6f9;
    border: 1.5px solid #f2f6f9;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.ep-input:focus {
    background: #fff;
    border-color: #2f7fb8;
    box-shadow: 0 0 0 3px rgba(47, 127, 184, .18);
}

.ep-eye {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6d8aa0;
    font-size: 15px;
    cursor: pointer;
}

.ep-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 48px;
    border-radius: 10px;
    border: 0;
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    color: #fff !important;
    background: #004C79;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}

.ep-btn:hover {
    background: #043a5e;
    color: #fff;
}

.ep-linkrow {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.ep-link {
    font-size: 13.5px;
    font-weight: 600;
    color: #2f7fb8;
    text-decoration: none;
    cursor: pointer;
}

.ep-link:hover {
    color: #004C79;
    text-decoration: underline;
}

.ep-foot {
    font-size: 12px;
    text-align: center;
    color: #7f97a8;
    margin: 26px 0 0;
}

.ep-below {
    position: relative;
    color: #6f93ab;
    font-size: 12.5px;
    margin-top: 26px;
    max-width: 52ch;
    text-align: center;
}

.ep-error {
    display: none;
    background: #fdecea;
    color: #a94442;
    border-radius: 8px;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 18px;
}

/* ---- Modal Restaurar Contraseña ---- */
#modalRestaurar .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(1, 15, 26, .5);
}

#modalRestaurar .modal-header {
    position: relative;
    border: 0;
    padding: 30px 32px 0;
    display: block;
}

#modalRestaurar .modal-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 32px;
    right: 32px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, #004C79, #2f7fb8);
}

#modalRestaurar .modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #0d2f47;
}

#modalRestaurar .ep-modal-sub {
    font-size: 13.5px;
    color: #5c7689;
    margin: 6px 0 0;
}

#modalRestaurar .close {
    position: absolute;
    top: 16px;
    right: 20px;
    border: 0;
    background: none;
    font-size: 22px;
    line-height: 1;
    color: #6d8aa0;
    cursor: pointer;
    opacity: 1;
}

#modalRestaurar .close:hover {
    color: #0d2f47;
}

#modalRestaurar .modal-body {
    padding: 22px 32px 4px;
}

#modalRestaurar .modal-footer {
    border: 0;
    padding: 4px 32px 28px;
    display: block;
}

@media (max-width: 480px) {
    .ep-card {
        padding: 32px 24px 24px;
    }

    .ep-stripe {
        left: 24px;
        right: 24px;
    }

    #modalRestaurar .modal-header,
    #modalRestaurar .modal-body {
        padding-left: 22px;
        padding-right: 22px;
    }

    #modalRestaurar .modal-footer {
        padding: 4px 22px 24px;
    }

    #modalRestaurar .modal-header::before {
        left: 22px;
        right: 22px;
    }
}
