/* =========================================================
   CONFIGURACIÓN GENERAL
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            #06152e 0%,
            #0b2d5c 50%,
            #071a35 100%
        );

    color: #ffffff;
}


/* =========================================================
   CONTENEDOR PRINCIPAL
========================================================= */

.container {
    width: 100%;
    min-height: 100vh;

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 25px;
}


/* =========================================================
   CONTENIDO PRINCIPAL
========================================================= */

.hero {
    width: 100%;
    max-width: 560px;

    text-align: center;
}


/* =========================================================
   ICONO DE SEGURIDAD
========================================================= */

.security-icon {
    width: 80px;
    height: 80px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.12);

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    font-size: 38px;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.20);
}


/* =========================================================
   ETIQUETA SUPERIOR
========================================================= */

.badge {
    display: inline-block;

    padding: 9px 17px;

    border-radius: 30px;

    background:
        rgba(255, 255, 255, 0.12);

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 0.8px;

    margin-bottom: 20px;
}


/* =========================================================
   TÍTULO
========================================================= */

h1 {
    font-size: 36px;

    line-height: 1.2;

    margin-bottom: 15px;
}


/* =========================================================
   SUBTÍTULO
========================================================= */

.subtitle {
    font-size: 17px;

    line-height: 1.6;

    opacity: 0.88;

    margin-bottom: 30px;
}


/* =========================================================
   TARJETA
========================================================= */

.card {
    width: 100%;

    background: #ffffff;

    color: #12233d;

    border-radius: 24px;

    padding: 35px 30px;

    box-shadow:
        0 25px 60px
        rgba(0, 0, 0, 0.35);
}


/* =========================================================
   ICONO DE LA TARJETA
========================================================= */

.card-icon {
    font-size: 42px;

    margin-bottom: 15px;
}


/* =========================================================
   TÍTULO DE TARJETA
========================================================= */

.card h2 {
    font-size: 24px;

    line-height: 1.3;

    margin-bottom: 12px;

    color: #12233d;
}


/* =========================================================
   TEXTO DE TARJETA
========================================================= */

.card p {
    color: #667085;

    font-size: 16px;

    line-height: 1.6;

    margin-bottom: 25px;
}


/* =========================================================
   BOTÓN PRINCIPAL
========================================================= */

.primary-button {
    width: 100%;

    border: none;

    padding: 17px 20px;

    border-radius: 12px;

    background:
        #0b63ce;

    color: #ffffff;

    font-weight: bold;

    font-size: 15px;

    letter-spacing: 0.3px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        box-shadow 0.2s ease;
}


/* Hover */

.primary-button:hover {

    transform:
        translateY(-2px);

    opacity: 0.95;

    box-shadow:
        0 8px 20px
        rgba(11, 99, 206, 0.30);
}


/* Click */

.primary-button:active {

    transform:
        translateY(0);

}


/* Botón deshabilitado */

.primary-button:disabled {

    opacity: 0.60;

    cursor: wait;

    transform: none;

    box-shadow: none;
}


/* =========================================================
   OCULTAR ELEMENTOS
========================================================= */

.hidden {
    display: none !important;
}


/* =========================================================
   TÍTULO DEL CÓDIGO
========================================================= */

.code-title {

    font-size: 13px;

    font-weight: bold;

    color: #667085;

    text-align: left;

    margin-top: 20px;

    margin-bottom: 8px;
}


/* =========================================================
   CÓDIGO DE REGISTRO
========================================================= */

.registration-code {

    width: 100%;

    background:
        #101828;

    color:
        #ffffff;

    padding:
        18px;

    border-radius:
        12px;

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size:
        18px;

    font-weight:
        bold;

    letter-spacing:
        1px;

    line-height:
        1.4;

    word-break:
        break-word;

    margin-bottom:
        20px;

    text-align:
        center;

    box-shadow:
        inset 0 0 0 1px
        rgba(255, 255, 255, 0.08);
}


/* =========================================================
   INSTRUCCIONES
========================================================= */

.instruction {

    width: 100%;

    background:
        #f2f7ff;

    border-left:
        4px solid
        #0b63ce;

    padding:
        16px;

    border-radius:
        10px;

    margin:
        20px 0;

    text-align:
        left;

    color:
        #344054;

    font-size:
        15px;

    line-height:
        1.6;
}


/* =========================================================
   CAMPO DE CÓDIGO
========================================================= */

input {

    width: 100%;

    padding:
        16px;

    border-radius:
        10px;

    border:
        1px solid
        #d0d5dd;

    margin-top:
        5px;

    margin-bottom:
        15px;

    font-size:
        16px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color:
        #101828;

    background:
        #ffffff;

    outline:
        none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* Campo seleccionado */

input:focus {

    border-color:
        #0b63ce;

    box-shadow:
        0 0 0 3px
        rgba(11, 99, 206, 0.12);
}


/* Placeholder */

input::placeholder {

    color:
        #98a2b3;

}


/* =========================================================
   MENSAJE DE ERROR
========================================================= */

.message.error {

    margin-top:
        18px;

    padding:
        15px;

    border-radius:
        10px;

    background:
        #fff1f0;

    color:
        #b42318;

    font-size:
        14px;

    line-height:
        1.5;

}


/* =========================================================
   MENSAJE DE ÉXITO
========================================================= */

.message.success {

    margin-top:
        20px;

    padding:
        25px;

    border-radius:
        14px;

    background:
        #ecfdf3;

    color:
        #027a48;

    line-height:
        1.6;

}


/* =========================================================
   ICONO DE ÉXITO
========================================================= */

.success-icon {

    width:
        58px;

    height:
        58px;

    margin:
        0 auto 15px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        #d1fadf;

    color:
        #027a48;

    font-size:
        32px;

    font-weight:
        bold;
}


/* =========================================================
   TÍTULO DEL MENSAJE DE ÉXITO
========================================================= */

.message.success h2 {

    color:
        #027a48;

    margin-bottom:
        12px;
}


/* =========================================================
   TEXTO DEL MENSAJE DE ÉXITO
========================================================= */

.message.success p {

    color:
        #344054;

    margin-bottom:
        10px;
}


/* =========================================================
   PIE DE PÁGINA
========================================================= */

.footer-text {

    margin-top:
        25px;

    font-size:
        12px;

    opacity:
        0.65;

    line-height:
        1.5;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 700px) {

    .container {

        padding:
            20px;

    }

    .hero {

        max-width:
            520px;

    }

    h1 {

        font-size:
            32px;

    }

}


/* =========================================================
   RESPONSIVE - CELULAR
========================================================= */

@media (max-width: 500px) {

    .container {

        padding:
            16px;

        align-items:
            center;

    }

    .hero {

        width:
            100%;

    }

    .security-icon {

        width:
            70px;

        height:
            70px;

        font-size:
            34px;

        margin-bottom:
            16px;

    }

    .badge {

        font-size:
            11px;

        padding:
            8px 13px;

        margin-bottom:
            16px;

    }

    h1 {

        font-size:
            28px;

    }

    .subtitle {

        font-size:
            15px;

        margin-bottom:
            24px;

    }

    .card {

        padding:
            28px 20px;

        border-radius:
            20px;

    }

    .card-icon {

        font-size:
            36px;

    }

    .card h2 {

        font-size:
            21px;

    }

    .card p {

        font-size:
            15px;

    }

    .registration-code {

        font-size:
            14px;

        padding:
            16px 10px;

        letter-spacing:
            0.5px;

    }

    .instruction {

        font-size:
            14px;

        padding:
            14px;

    }

    input {

        font-size:
            16px;

        padding:
            15px;

    }

    .primary-button {

        padding:
            16px;

    }

}


/* =========================================================
   CELULARES MUY PEQUEÑOS
========================================================= */

@media (max-width: 360px) {

    h1 {

        font-size:
            25px;

    }

    .card {

        padding:
            24px 16px;

    }

    .registration-code {

        font-size:
            13px;

    }

}