:root {
    --mepso-green: #26a08b;
    --mepso-green-dark: #087f72;
    --mepso-blue: #18587c;
    --mepso-orange: #ee7a26;
    --mepso-surface: #f8f8f8;
    --mepso-text: #555555;
}

body.login-page {
    display: block;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    background: #075e58;
    color: var(--mepso-text);
    font-family: "Open Sans", sans-serif;
}

.nps-access,
.nps-access *,
.nps-access *::before,
.nps-access *::after {
    box-sizing: border-box;
}

.nps-access {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vw, 42px);
    background:
        radial-gradient(circle at 12% 12%, rgba(8, 255, 214, 0.12), transparent 28%),
        radial-gradient(circle at 88% 90%, rgba(43, 136, 156, 0.2), transparent 30%),
        linear-gradient(145deg, #064c49 0%, #087f72 48%, #18587c 100%);
}

.nps-access__shell {
    width: min(100%, 1040px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 26px;
    background: var(--mepso-surface);
    box-shadow: 0 28px 70px rgba(0, 39, 53, 0.3);
}

.nps-access__hero {
    position: relative;
    min-height: 270px;
    overflow: hidden;
    padding: clamp(28px, 4vw, 48px) clamp(24px, 6vw, 68px) 88px;
    background: linear-gradient(120deg, rgba(4, 75, 71, 0.98), rgba(8, 127, 114, 0.96) 58%, rgba(24, 88, 124, 0.94));
    color: #fff;
}

.nps-access__hero::after {
    position: absolute;
    right: -7%;
    bottom: -108px;
    width: 58%;
    height: 180px;
    border-radius: 50% 0 0;
    background: rgba(255, 255, 255, 0.08);
    content: "";
    transform: rotate(-5deg);
}

.nps-access__logo {
    position: relative;
    z-index: 2;
    display: block;
    width: clamp(180px, 26vw, 280px);
    max-height: 82px;
    object-fit: contain;
    object-position: left center;
}

.nps-access__intro {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin-top: 24px;
}

.nps-access__eyebrow {
    margin: 0 0 8px;
    color: #9ff6e5;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nps-access__intro h1 {
    margin: 0;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.65rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.16;
}

.nps-access__intro > p:last-child {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.92rem, 2vw, 1.08rem);
}

.nps-access__shape {
    position: absolute;
    z-index: 1;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
}

.nps-access__shape--one {
    top: -85px;
    right: 8%;
    width: 250px;
    height: 250px;
}

.nps-access__shape--two {
    right: -55px;
    bottom: -25px;
    width: 190px;
    height: 190px;
    background: rgba(8, 255, 214, 0.07);
}

.nps-access__panel {
    position: relative;
    z-index: 3;
    width: calc(100% - clamp(28px, 6vw, 84px));
    margin: -58px auto 0;
    padding: 54px clamp(20px, 5vw, 58px) 32px;
    border-radius: 20px 20px 0 0;
    background: #fff;
    box-shadow: 0 -12px 34px rgba(6, 76, 73, 0.12);
}

.nps-access__pin {
    position: absolute;
    top: -31px;
    left: 50%;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border: 7px solid #fff;
    border-radius: 50%;
    background: #dff6ef;
    color: var(--mepso-green-dark);
    font-size: 1.25rem;
    transform: translateX(-50%);
}

.nps-access__heading {
    margin-bottom: 26px;
    text-align: center;
}

.nps-access__heading h2 {
    margin: 0;
    color: #134f56;
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    line-height: 1.3;
}

.nps-access__heading p {
    margin: 7px 0 0;
    color: #68757a;
    font-size: 0.95rem;
}

.nps-access__fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.nps-access__sites {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.nps-site-option {
    position: relative;
    min-width: 0;
}

.nps-site-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.nps-site-option label {
    display: flex;
    min-height: 94px;
    align-items: center;
    gap: 15px;
    padding: 16px 18px;
    margin: 0;
    border: 1px solid #c8dde3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(24, 88, 124, 0.06);
    color: #164f5a;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nps-site-option label:hover {
    border-color: var(--mepso-green);
    box-shadow: 0 10px 24px rgba(38, 160, 139, 0.14);
    transform: translateY(-1px);
}

.nps-site-option input:focus-visible + label {
    outline: 3px solid rgba(238, 122, 38, 0.45);
    outline-offset: 3px;
}

.nps-site-option input:checked + label {
    border-color: var(--mepso-green-dark);
    background: linear-gradient(135deg, #e5f8f2, #f4fcf9);
    box-shadow: 0 0 0 2px rgba(38, 160, 139, 0.18), 0 10px 24px rgba(38, 160, 139, 0.13);
}

.nps-site-option__icon {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: #e5f8f2;
    color: var(--mepso-green-dark);
    font-size: 1.05rem;
}

.nps-site-option input:checked + label .nps-site-option__icon {
    background: var(--mepso-green-dark);
    color: #fff;
}

.nps-site-option__text {
    min-width: 0;
    flex: 1 1 auto;
}

.nps-site-option__text strong,
.nps-site-option__text small {
    display: block;
}

.nps-site-option__text strong {
    color: #124b58;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.nps-site-option__text small {
    margin-top: 4px;
    overflow: hidden;
    color: #68757a;
    font-size: 0.78rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nps-site-option__check {
    flex: 0 0 auto;
    color: var(--mepso-green-dark);
    font-size: 1.1rem;
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 150ms ease, transform 150ms ease;
}

.nps-site-option input:checked + label .nps-site-option__check {
    opacity: 1;
    transform: scale(1);
}

.nps-access__submit {
    display: flex;
    width: min(100%, 610px);
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    margin: 24px auto 0;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(100deg, var(--mepso-green-dark), var(--mepso-green));
    box-shadow: 0 10px 24px rgba(8, 127, 114, 0.22);
    color: #fff;
    font-family: "Open Sans", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    transition: box-shadow 160ms ease, filter 160ms ease, transform 160ms ease;
}

.nps-access__submit:not(:disabled):hover {
    box-shadow: 0 13px 28px rgba(8, 127, 114, 0.3);
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.nps-access__submit:focus-visible {
    outline: 3px solid rgba(238, 122, 38, 0.5);
    outline-offset: 3px;
}

.nps-access__submit:disabled {
    box-shadow: none;
    cursor: not-allowed;
    filter: grayscale(0.35);
    opacity: 0.55;
}

.nps-access__assurances {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 6vw, 62px);
    margin-top: 24px;
    color: #5f7075;
    font-size: 0.82rem;
}

.nps-access__assurances span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nps-access__assurances i {
    color: var(--mepso-green-dark);
    font-size: 1rem;
}

.custom-file-label::after {
    content: "Seleccionar" !important;
}

@media (max-width: 700px) {
    .nps-access {
        align-items: flex-start;
        padding: 0;
        background: #fff;
    }

    .nps-access__shell {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .nps-access__hero {
        min-height: 238px;
        padding: 26px 22px 78px;
    }

    .nps-access__logo {
        width: min(62vw, 230px);
        max-height: 67px;
    }

    .nps-access__intro {
        margin-top: 18px;
    }

    .nps-access__panel {
        width: calc(100% - 24px);
        padding: 48px 10px 28px;
        margin-top: -46px;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -9px 26px rgba(6, 76, 73, 0.1);
    }

    .nps-access__heading {
        padding: 0 8px;
        margin-bottom: 20px;
    }

    .nps-access__sites {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .nps-site-option label {
        min-height: 76px;
        padding: 12px 14px;
        border-radius: 12px;
    }

    .nps-site-option__icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .nps-site-option__text small {
        white-space: normal;
    }

    .nps-access__submit {
        min-height: 52px;
        margin-top: 18px;
    }

    .nps-access__assurances {
        flex-direction: column;
        gap: 9px;
        margin-top: 19px;
    }
}

@media (max-width: 380px) {
    .nps-access__hero {
        min-height: 222px;
    }

    .nps-access__intro h1 {
        font-size: 1.48rem;
    }

    .nps-access__heading h2 {
        font-size: 1.13rem;
    }

    .nps-site-option__text strong {
        font-size: 0.94rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nps-site-option label,
    .nps-site-option__check,
    .nps-access__submit {
        transition: none;
    }
}
