/* =========================================================
   CLICK Y COMPRA
   LOGIN - NUEVO ESTILO
========================================================= */


/* =========================================================
   FONDO GENERAL
========================================================= */

body {
    background-color: #f5f5f5;

    background-image: url("../img/fondo-login-ahorasi.png");
    background-repeat: repeat;
    background-size: 150px 150px;
    background-position: top left;
}


/* =========================================================
   CONTENEDOR PRINCIPAL DEL LOGIN
========================================================= */

.cyc-login-wrapper {
    min-height: calc(100vh - 70px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px 20px;

    /* Importante:
       permite ver el fondo del body */
    background: transparent;
}


/* =========================================================
   TARJETA PRINCIPAL
========================================================= */

.cyc-login-card {
    width: 100%;
    max-width: 1050px;

    display: grid;
    grid-template-columns: 45% 55%;

    background: #ffffff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow: 0 15px 45px rgba(13, 17, 76, 0.15);
}


/* =========================================================
   LADO IZQUIERDO
========================================================= */

.cyc-login-brand {
    background: #0d114c;

    min-height: 620px;

    padding: 50px 45px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;
}


/* =========================================================
   LOGO
========================================================= */

.cyc-brand-logo {
    width: 260px;
    height: 260px;

    margin-bottom: 25px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.cyc-brand-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}


/* =========================================================
   TEXTO DEL LADO IZQUIERDO
========================================================= */

.cyc-login-brand h1 {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: 30px;
    font-weight: 800;
}

.cyc-login-brand p {
    max-width: 350px;

    margin: 0;

    color: #ffffff;

    font-size: 15px;
    line-height: 1.6;
}

.cyc-brand-line {
    width: 65px;
    height: 4px;

    margin: 25px 0 15px;

    background: #ffc107;

    border-radius: 10px;
}

.cyc-brand-text {
    color: #ffc107;

    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   LADO DERECHO
========================================================= */

.cyc-login-form {
    padding: 55px 65px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: #ffffff;
}


/* =========================================================
   ENCABEZADO DEL LOGIN
========================================================= */

.cyc-login-heading {
    margin-bottom: 30px;
}

.cyc-login-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    border-radius: 12px;

    background: rgba(13, 17, 76, 0.08);

    color: #0d114c;

    font-size: 22px;
}

.cyc-login-heading h2 {
    margin: 0 0 8px;

    color: #0d114c;

    font-size: 32px;
    font-weight: 800;
}

.cyc-login-heading p {
    margin: 0;

    color: #777;

    font-size: 15px;
}


/* =========================================================
   CAMPOS
========================================================= */

.cyc-field {
    margin-bottom: 20px;
}

.cyc-field label {
    display: block;

    margin-bottom: 8px;

    color: #222;

    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   CONTENEDOR DE INPUT
========================================================= */

.cyc-input-wrapper {
    position: relative;

    width: 100%;
}


/* =========================================================
   ICONOS DE INPUT
========================================================= */

.cyc-input-wrapper > i {
    position: absolute;

    top: 50%;
    left: 15px;

    transform: translateY(-50%);

    color: #777;

    font-size: 17px;

    z-index: 2;

    pointer-events: none;
}


/* =========================================================
   INPUTS Y SELECT
========================================================= */

.cyc-input-wrapper input,
.cyc-input-wrapper select {
    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: all 0.2s ease;
}


/* =========================================================
   SELECT
========================================================= */

.cyc-input-wrapper select {
    cursor: pointer;
}


/* =========================================================
   FOCUS
========================================================= */

.cyc-input-wrapper input:focus,
.cyc-input-wrapper select:focus {
    border-color: #1f2dd6;

    background: #ffffff;

    box-shadow: 0 0 0 3px rgba(31, 45, 214, 0.12);
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.cyc-input-wrapper input::placeholder {
    color: #999;
}


/* =========================================================
   OLVIDÉ CONTRASEÑA
========================================================= */

.cyc-forgot-row {
    display: flex;

    justify-content: flex-end;

    margin-top: -5px;
    margin-bottom: 20px;
}

.cyc-forgot-row a {
    color: #0d114c;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}

.cyc-forgot-row a:hover {
    color: #1f2dd6;

    text-decoration: underline;
}


/* =========================================================
   BOTÓN INICIAR SESIÓN
========================================================= */

.cyc-login-button {
    width: 100%;
    height: 50px;

    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-login-button:hover {
    background: #1f2dd6;

    transform: translateY(-1px);

    box-shadow: 0 6px 15px rgba(13, 17, 76, 0.22);
}


/* =========================================================
   REGISTRO
========================================================= */

.cyc-register {
    margin-top: 25px;

    padding-top: 22px;

    border-top: 1px solid #eeeeee;

    text-align: center;

    color: #777;

    font-size: 14px;
}

.cyc-register a {
    display: block;

    margin-top: 6px;

    color: #0d114c;

    font-weight: 700;

    text-decoration: none;
}

.cyc-register a:hover {
    color: #1f2dd6;

    text-decoration: underline;
}


/* =========================================================
   REGRESAR
========================================================= */

.cyc-back {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 20px;

    color: #777;

    font-size: 13px;

    text-decoration: none;

    transition: color 0.2s ease;
}

.cyc-back:hover {
    color: #0d114c;
}


/* =========================================================
   ERROR
========================================================= */

.cyc-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-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;
}

.cyc-success span {
    display: block;

    margin-top: 2px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .cyc-login-card {
        grid-template-columns: 1fr;

        max-width: 600px;
    }

    .cyc-login-brand {
        min-height: auto;

        padding: 40px 30px;
    }

    .cyc-brand-logo {
        width: 190px;
        height: 190px;
    }

    .cyc-login-form {
        padding: 40px;
    }
}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 576px) {

    .cyc-login-wrapper {
        padding: 25px 15px;
    }

    .cyc-login-brand {
        padding: 30px 20px;
    }

    .cyc-brand-logo {
        width: 150px;
        height: 150px;
    }

    .cyc-login-brand h1 {
        font-size: 24px;
    }

    .cyc-login-form {
        padding: 30px 22px;
    }

    .cyc-login-heading h2 {
        font-size: 27px;
    }

    .cyc-login-heading p {
        font-size: 14px;
    }
}