/* ============================================================
   DIGITALIZANDO MX
   EMAIL VERIFICATION
============================================================ */

.dmxVerifyPage {
    padding: 28px;
}

.dmxVerifyLayout {
    grid-template-columns:
        minmax(410px, 1fr)
        minmax(480px, 0.92fr);
    min-height: min(850px, calc(100vh - 56px));
    max-width: 1340px;
}


/* ============================================================
   LEFT SIDE
============================================================ */

.dmxVerifyAside {
    padding:
        48px
        clamp(40px, 4.5vw, 62px)
        38px;
}

.dmxVerifyHero {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    width: min(590px, 100%);
    padding: 42px 0 32px;
}

.dmxVerifyHero h1 {
    max-width: 590px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(43px, 4.3vw, 66px);
    font-weight: 760;
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.dmxVerifyHero h1 span {
    display: block;
    color: transparent;
    background:
        linear-gradient(
            100deg,
            #a5a7ff 0%,
            #72e5cf 100%
        );
    background-clip: text;
    -webkit-background-clip: text;
}

.dmxVerifyHero h2 {
    max-width: 550px;
    margin: 24px 0 0;
    color: rgba(236, 240, 251, 0.68);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.72;
    letter-spacing: -0.01em;
}


/* ============================================================
   VERIFICATION PROGRESS
============================================================ */

.dmxVerifyVisual {
    position: relative;
    display: grid;
    gap: 8px;
    width: min(490px, 100%);
    margin-top: 38px;
}

.dmxVerifyVisualLine {
    position: absolute;
    top: 31px;
    bottom: 31px;
    left: 26px;
    width: 1px;
    background:
        linear-gradient(
            to bottom,
            var(--dmx-secondary) 0%,
            var(--dmx-primary-light) 52%,
            rgba(255, 255, 255, 0.1) 100%
        );
}

.dmxVerifyVisualStep {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    padding: 9px 13px 9px 0;
    border: 1px solid transparent;
    border-radius: 16px;
    transition:
        background 220ms ease,
        border-color 220ms ease,
        transform 220ms ease;
}

.dmxVerifyVisualStep:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.07);
    transform: translateX(4px);
}

.dmxVerifyVisualIcon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: rgba(212, 219, 235, 0.48);
    background: #17223a;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 15px;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.16);
}

.dmxVerifyVisualIcon svg {
    width: 24px;
    height: 24px;
}

.dmxVerifyVisualStep.isComplete .dmxVerifyVisualIcon {
    color: var(--dmx-secondary);
    background: rgba(23, 201, 164, 0.12);
    border-color: rgba(23, 201, 164, 0.2);
}

.dmxVerifyVisualStep.isActive .dmxVerifyVisualIcon {
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            var(--dmx-primary-dark),
            var(--dmx-primary-light)
        );
    border-color: rgba(154, 156, 255, 0.35);
    box-shadow:
        0 10px 24px rgba(91, 92, 240, 0.27),
        0 0 0 6px rgba(91, 92, 240, 0.07);
    animation:
        dmxVerifyActivePulse 2.4s ease-in-out infinite;
}

.dmxVerifyVisualStep > div:last-child {
    display: grid;
    gap: 4px;
}

.dmxVerifyVisualStep strong {
    color: rgba(255, 255, 255, 0.93);
    font-size: 13px;
    font-weight: 700;
}

.dmxVerifyVisualStep span {
    color: rgba(219, 225, 240, 0.5);
    font-size: 11px;
    line-height: 1.45;
}


/* ============================================================
   LEFT SECURITY MESSAGE
============================================================ */

.dmxVerifySecurity {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    width: min(490px, 100%);
    margin-top: 27px;
    padding: 14px 16px;
    color: rgba(218, 225, 240, 0.58);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 14px;
}

.dmxVerifySecurity svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: var(--dmx-secondary);
}

.dmxVerifySecurity p {
    margin: 0;
    font-size: 10px;
    line-height: 1.65;
}


/* ============================================================
   RIGHT SIDE
============================================================ */

.dmxVerifyContent {
    padding:
        48px
        clamp(45px, 5vw, 78px)
        28px;
}

.dmxVerifyPanel {
    width: min(470px, 100%);
    margin: auto;
    animation:
        dmxPanelEntrance 750ms 150ms ease both;
}


/* ============================================================
   VERIFICATION HEADER
============================================================ */

.dmxVerifyHeader {
    margin-bottom: 29px;
}

.dmxVerifyHeaderTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.dmxVerifyIcon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: var(--dmx-primary);
    background:
        linear-gradient(
            145deg,
            rgba(91, 92, 240, 0.13),
            rgba(23, 201, 164, 0.04)
        );
    border: 1px solid rgba(91, 92, 240, 0.13);
    border-radius: 16px;
}

.dmxVerifyIcon svg {
    width: 28px;
    height: 28px;
}

.dmxVerifyStep {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px 7px 7px;
    color: #757e91;
    background: #f7f8fb;
    border: 1px solid #e7eaf0;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.dmxVerifyStep > span {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--dmx-primary-dark),
            var(--dmx-primary-light)
        );
    border-radius: 50%;
    box-shadow:
        0 5px 12px rgba(91, 92, 240, 0.25);
}

.dmxVerifyHeader h3 {
    margin: 0;
    color: var(--dmx-text);
    font-size: clamp(30px, 3.2vw, 39px);
    font-weight: 760;
    line-height: 1.13;
    letter-spacing: -0.045em;
}


/* ============================================================
   DESTINATION EMAIL
============================================================ */

.dmxVerifyEmail {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin-top: 14px;
    padding: 10px 14px 10px 10px;
    color: #414a5e;
    background:
        linear-gradient(
            135deg,
            rgba(91, 92, 240, 0.07),
            rgba(23, 201, 164, 0.035)
        );
    border: 1px solid rgba(91, 92, 240, 0.12);
    border-radius: 12px;
}

.dmxVerifyEmailIcon {
    display: grid;
    flex: 0 0 31px;
    width: 31px;
    height: 31px;
    place-items: center;
    color: var(--dmx-primary);
    background: #ffffff;
    border: 1px solid rgba(91, 92, 240, 0.11);
    border-radius: 9px;
}

.dmxVerifyEmailIcon svg {
    width: 17px;
    height: 17px;
}

.dmxVerifyEmail strong {
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ============================================================
   FORM
============================================================ */

.dmxVerifyForm {
    display: grid;
    gap: 21px;
}

.dmxVerifyForm .contenedorInputRegistro {
    display: grid;
    gap: 8px;
}

.dmxVerifyForm .contenedorInputRegistro label {
    color: #343c4f;
    font-size: 11px;
    font-weight: 720;
}

.dmxVerifyForm .inptutLogin {
    height: 54px;
    background: #f9fafc;
}

.dmxVerifyForm .inptutLogin:hover {
    border-color: #cad0dd;
}

.dmxVerifyForm .inptutLogin:focus {
    background: #ffffff;
    border-color: var(--dmx-primary);
    box-shadow:
        0 0 0 4px rgba(91, 92, 240, 0.08);
}

.dmxCodeInput {
    padding-right: 18px;
    font-size: 17px !important;
    font-weight: 750;
    letter-spacing: 0.32em;
}

.dmxCodeInput::placeholder {
    color: #c2c8d3;
    font-weight: 500;
    letter-spacing: 0.28em;
}

.dmxDateInput {
    padding-right: 16px;
    color: #5e687b;
}

.dmxDateInput::-webkit-calendar-picker-indicator {
    padding: 8px;
    opacity: 0.55;
    cursor: pointer;
}

.dmxDateInput::-webkit-calendar-picker-indicator:hover {
    opacity: 0.85;
}

.dmxInputHelp {
    display: block;
    padding-left: 3px;
    color: #929aab;
    font-size: 9px;
    line-height: 1.55;
}


/* ============================================================
   SUBMIT BUTTON
============================================================ */

.dmxVerifySubmit {
    min-height: 55px;
    margin-top: 2px;
}

.dmxVerifySubmit:disabled {
    background: #b7bdca;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.dmxVerifySubmit:disabled::before {
    display: none;
}


/* ============================================================
   RESEND CODE
============================================================ */

.dmxVerifyResend {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding: 14px 16px;
    background: #f8f9fc;
    border: 1px solid #e7eaf1;
    border-radius: 14px;
}

.dmxVerifyResendIcon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--dmx-primary);
    background: rgba(91, 92, 240, 0.08);
    border-radius: 11px;
}

.dmxVerifyResendIcon svg {
    width: 20px;
    height: 20px;
}

.dmxVerifyResendContent {
    display: grid;
    gap: 3px;
}

.dmxVerifyResendContent > span {
    color: #81899a;
    font-size: 9px;
}

.dmxResendButton {
    width: fit-content;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.dmxVerifyResendContent .linkRecuperaPass {
    color: var(--dmx-primary);
    font-size: 11px;
    font-weight: 720;
}


/* ============================================================
   AJAX RESPONSE
============================================================ */

.dmxVerifyAjaxResponse {
    display: none;
    margin-top: 12px;
    padding: 12px 14px;
    color: #526075;
    background: rgba(23, 201, 164, 0.07);
    border: 1px solid rgba(23, 201, 164, 0.16);
    border-radius: 11px;
    font-size: 10px;
    line-height: 1.55;
}

.dmxVerifyAjaxResponse:not(:empty) {
    display: block;
    animation:
        dmxVerifyResponseEntrance 260ms ease both;
}


/* ============================================================
   HELP
============================================================ */

.dmxVerifyHelp {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 15px;
    padding: 0 3px;
    color: #929aab;
}

.dmxVerifyHelp svg {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    color: #9da5b5;
}

.dmxVerifyHelp p {
    margin: 0;
    font-size: 9px;
    line-height: 1.55;
}


/* ============================================================
   ANIMATIONS
============================================================ */

@keyframes dmxVerifyActivePulse {

    0%,
    100% {
        box-shadow:
            0 10px 24px rgba(91, 92, 240, 0.27),
            0 0 0 5px rgba(91, 92, 240, 0.06);
    }

    50% {
        box-shadow:
            0 12px 29px rgba(91, 92, 240, 0.35),
            0 0 0 9px rgba(91, 92, 240, 0.025);
    }

}

@keyframes dmxVerifyResponseEntrance {

    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* ============================================================
   LAPTOP
============================================================ */

@media (max-width: 1180px) {

    .dmxVerifyPage {
        padding: 19px;
    }

    .dmxVerifyLayout {
        grid-template-columns:
            minmax(365px, 0.9fr)
            minmax(440px, 1.1fr);
        min-height: calc(100vh - 38px);
    }

    .dmxVerifyAside {
        padding:
            40px
            35px
            31px;
    }

    .dmxVerifyHero h1 {
        font-size: clamp(40px, 4.5vw, 56px);
    }

    .dmxVerifyContent {
        padding-right: 44px;
        padding-left: 44px;
    }

}


/* ============================================================
   SHORT LAPTOPS
============================================================ */

@media (min-width: 901px) and (max-height: 820px) {

    .dmxVerifyPage {
        padding: 14px;
    }

    .dmxVerifyLayout {
        min-height: calc(100vh - 28px);
    }

    .dmxVerifyAside {
        padding-top: 30px;
        padding-bottom: 25px;
    }

    .dmxVerifyHero {
        padding-top: 24px;
        padding-bottom: 20px;
    }

    .dmxVerifyHero h1 {
        font-size: clamp(38px, 3.8vw, 52px);
    }

    .dmxVerifyHero h2 {
        margin-top: 16px;
        font-size: 13px;
    }

    .dmxVerifyVisual {
        gap: 3px;
        margin-top: 22px;
    }

    .dmxVerifyVisualStep {
        min-height: 55px;
    }

    .dmxVerifyVisualIcon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .dmxVerifyVisualLine {
        top: 28px;
        bottom: 28px;
        left: 22px;
    }

    .dmxVerifySecurity {
        margin-top: 17px;
    }

    .dmxVerifyContent {
        padding-top: 28px;
        padding-bottom: 16px;
    }

    .dmxVerifyHeader {
        margin-bottom: 21px;
    }

    .dmxVerifyHeaderTop {
        margin-bottom: 14px;
    }

    .dmxVerifyIcon {
        width: 45px;
        height: 45px;
    }

    .dmxVerifyHeader h3 {
        font-size: 31px;
    }

    .dmxVerifyForm {
        gap: 16px;
    }

    .dmxVerifyForm .inptutLogin {
        height: 48px;
    }

    .dmxVerifySubmit {
        min-height: 49px;
    }

    .dmxVerifyResend {
        margin-top: 17px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .dmxVerifyHelp {
        margin-top: 10px;
    }

    .dmxVerifyContent .dmxLanguageSelector {
        margin-top: 10px;
    }

    .dmxVerifyContent .contenedorPie {
        margin-top: 15px;
    }

}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 900px) {

    .dmxVerifyPage {
        padding: 0;
    }

    .dmxVerifyLayout {
        display: block;
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
    }

    .dmxVerifyAside {
        display: none;
    }

    .dmxVerifyContent {
        min-height: 100vh;
        padding:
            max(31px, env(safe-area-inset-top))
            30px
            max(24px, env(safe-area-inset-bottom));
        overflow: visible;
    }

    .dmxVerifyPanel {
        width: min(490px, 100%);
    }

    .dmxVerifyMobileBrand {
        display: flex;
        margin-bottom: 37px;
    }

    .dmxVerifyContent .contenedorPie {
        width: min(490px, 100%);
    }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 560px) {

    .dmxVerifyContent {
        justify-content: flex-start;
        padding:
            max(25px, env(safe-area-inset-top))
            20px
            max(20px, env(safe-area-inset-bottom));
    }

    .dmxVerifyMobileBrand {
        margin-bottom: 30px;
    }

    .dmxVerifyMobileBrand img {
        max-width: 180px;
        max-height: 58px;
    }

    .dmxVerifyHeader {
        margin-bottom: 25px;
    }

    .dmxVerifyHeaderTop {
        margin-bottom: 18px;
    }

    .dmxVerifyIcon {
        width: 47px;
        height: 47px;
        border-radius: 14px;
    }

    .dmxVerifyIcon svg {
        width: 25px;
        height: 25px;
    }

    .dmxVerifyStep {
        padding-right: 10px;
        font-size: 9px;
    }

    .dmxVerifyHeader h3 {
        font-size: 30px;
    }

    .dmxVerifyEmail {
        width: 100%;
    }

    .dmxVerifyEmail strong {
        font-size: 10px;
    }

    .dmxVerifyForm {
        gap: 19px;
    }

    .dmxVerifyForm .inptutLogin {
        height: 52px;
    }

    .dmxVerifyResend {
        align-items: flex-start;
    }

}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 380px) {

    .dmxVerifyContent {
        padding-right: 15px;
        padding-left: 15px;
    }

    .dmxVerifyHeader h3 {
        font-size: 27px;
    }

    .dmxVerifyStep {
        gap: 6px;
    }

    .dmxVerifyStep > span {
        width: 22px;
        height: 22px;
    }

    .dmxCodeInput {
        font-size: 15px !important;
        letter-spacing: 0.24em;
    }

}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    .dmxVerifyVisualStep.isActive .dmxVerifyVisualIcon,
    .dmxVerifyAjaxResponse {
        animation: none;
    }

}