/* =========================================
   CLICK Y COMPRA - REGISTRO
   ========================================= */

body {
    background-color: #f5f5f5;
}


/* =========================================
   CONTENEDOR PRINCIPAL
   ========================================= */

.cyc-register-wrapper {
    position: relative;
    min-height: calc(100vh - 70px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px 20px;

    background: #f4f5f9;

    overflow: hidden;
}


/* Fondo decorativo */

.cyc-register-wrapper::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image: url("../img/fondo-login.jpg");
    background-repeat: repeat;
    background-size: 120px auto;

    opacity: 0.08;

    pointer-events: none;
}


/* =========================================
   TARJETA
   ========================================= */

.cyc-register-card {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 1100px;

    display: grid;
    grid-template-columns: 40% 60%;

    background: #ffffff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 15px 45px rgba(13, 17, 76, 0.15);
}


/* =========================================
   LADO IZQUIERDO
   ========================================= */

.cyc-register-brand {
    min-height: 650px;

    padding: 50px 45px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    background: #0d114c;
}


/* Logo */

.cyc-register-logo {
    width: 230px;
    height: 230px;

    margin-bottom: 25px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.cyc-register-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}


/* Título */

.cyc-register-brand h1 {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: 30px;
    font-weight: 800;
}


/* Línea amarilla */

.cyc-register-line {
    width: 65px;
    height: 4px;

    margin: 10px 0 20px;

    background: #ffc107;

    border-radius: 10px;
}


/* Descripción */

.cyc-register-brand p {
    max-width: 350px;

    margin: 0;

    color: #ffffff;

    font-size: 15px;

    line-height: 1.6;
}


/* Texto inferior */

.cyc-register-brand-text {
    margin-top: 20px;

    color: #ffc107;

    font-size: 14px;

    font-weight: 700;
}


/* =========================================
   FORMULARIO
   ========================================= */

.cyc-register-form {
    padding: 50px 55px;

    display: flex;
    flex-direction: column;

    justify-content: center;

    background: #ffffff;
}


/* =========================================
   ENCABEZADO
   ========================================= */

.cyc-register-heading {
    margin-bottom: 25px;
}

.cyc-register-icon {
    width: 48px;
    height: 48px;

    margin-bottom: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(13, 17, 76, 0.08);

    color: #0d114c;

    font-size: 22px;
}

.cyc-register-heading h2 {
    margin: 0 0 8px;

    color: #0d114c;

    font-size: 30px;

    font-weight: 800;
}

.cyc-register-heading p {
    margin: 0;

    color: #777;

    font-size: 15px;
}


/* =========================================
   CAMPOS
   ========================================= */

.cyc-register-fields {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}


.cyc-register-field {
    margin-bottom: 2px;
}


.cyc-register-field label {
    display: block;

    margin-bottom: 7px;

    color: #222;

    font-size: 14px;

    font-weight: 700;
}


/* =========================================
   INPUTS
   ========================================= */

.cyc-register-input {
    position: relative;

    width: 100%;
}


.cyc-register-input > i {
    position: absolute;

    top: 50%;
    left: 15px;

    transform: translateY(-50%);

    color: #777;

    font-size: 17px;

    z-index: 2;

    pointer-events: none;
}


.cyc-register-input input {
    width: 100%;
    height: 48px;

    box-sizing: border-box;

    padding: 0 15px 0 45px;

    border: 1px solid #dcdcdc;

    border-radius: 9px;

    background: #fafafa;

    color: #222;

    font-size: 14px;

    outline: none;

    transition: 0.2s ease;
}


.cyc-register-input input:focus {
    border-color: #1f2dd6;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(31, 45, 214, 0.12);
}


/* =========================================
   BOTÓN
   ========================================= */

.cyc-register-button {
    width: 100%;
    height: 50px;

    margin-top: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border: none;

    border-radius: 9px;

    background: #0d114c;

    color: #ffffff;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition: all 0.2s ease;
}


.cyc-register-button:hover {
    background: #1f2dd6;

    transform: translateY(-1px);

    box-shadow:
        0 6px 15px rgba(13, 17, 76, 0.22);
}


/* =========================================
   MENSAJE DE ERROR
   ========================================= */

.cyc-register-error {
    display: flex;

    gap: 10px;

    padding: 12px 14px;

    margin-bottom: 20px;

    border: 1px solid #fecdd3;

    border-radius: 9px;

    background: #fff1f2;

    color: #9f1239;

    font-size: 13px;
}


/* =========================================
   MENSAJE DE ÉXITO
   ========================================= */

.cyc-register-success {
    display: flex;

    gap: 10px;

    padding: 12px 14px;

    margin-bottom: 20px;

    border: 1px solid #bbf7d0;

    border-radius: 9px;

    background: #f0fdf4;

    color: #166534;

    font-size: 13px;
}


/* =========================================
   ENLACE LOGIN
   ========================================= */

.cyc-register-login {
    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #eeeeee;

    text-align: center;

    color: #777;

    font-size: 14px;
}


.cyc-register-login a {
    display: block;

    margin-top: 6px;

    color: #0d114c;

    font-weight: 700;

    text-decoration: none;
}


.cyc-register-login a:hover {
    color: #1f2dd6;

    text-decoration: underline;
}


/* =========================================
   REGRESAR
   ========================================= */

.cyc-register-back {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 18px;

    color: #777;

    font-size: 13px;

    text-decoration: none;
}


.cyc-register-back:hover {
    color: #0d114c;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 900px) {

    .cyc-register-card {
        grid-template-columns: 1fr;

        max-width: 650px;
    }

    .cyc-register-brand {
        min-height: auto;

        padding: 40px 30px;
    }

    .cyc-register-logo {
        width: 180px;
        height: 180px;
    }

    .cyc-register-form {
        padding: 40px;
    }
}


@media (max-width: 576px) {

    .cyc-register-wrapper {
        padding: 25px 15px;
    }

    .cyc-register-brand {
        padding: 30px 20px;
    }

    .cyc-register-logo {
        width: 150px;
        height: 150px;
    }

    .cyc-register-brand h1 {
        font-size: 24px;
    }

    .cyc-register-form {
        padding: 30px 22px;
    }

    .cyc-register-heading h2 {
        font-size: 27px;
    }

    .cyc-register-fields {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .cyc-register-field {
        margin-bottom: 18px;
    }
}