/* CONTENEDOR */
#main.site-main {
    padding: 40px 15px 60px;
    background: #f5f7fb;
}

.cuenta-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    color: #243247;
    font-family: inherit;
}

/* LOGIN */
.login-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 950px;
    margin: 15px auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(28, 48, 75, .08);
}

.login-lateral {
    position: relative;
    padding: 45px 35px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #172c4d, #28628c);
}

.login-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.login-logo i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: #21476d;
    background: #fff;
    border-radius: 13px;
    font-size: 20px;
}

.login-lateral h1 {
    margin: 75px 0 20px;
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
}

.login-lateral p {
    color: #d6e5f4;
    font-size: 14px;
    line-height: 1.9;
}

.login-beneficio {
    margin-top: 18px;
    color: #f0f7ff;
    font-size: 13px;
}

.login-beneficio i {
    margin-right: 9px;
    color: #8ee0b5;
}

.login-lateral:after {
    position: absolute;
    right: -90px;
    bottom: -150px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    content: "";
}

.login-formulario {
    padding: 45px 38px;
    align-self: center;
}

.login-titulo {
    margin-bottom: 30px;
    text-align: center;
}

.login-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    color: #245687;
    background: #edf5ff;
    border-radius: 18px;
    font-size: 24px;
}

.login-titulo h2 {
    margin: 0 0 10px;
    color: #1c2c43;
    font-size: 27px;
    font-weight: 800;
}

.login-titulo p {
    color: #8995a5;
    font-size: 13px;
}

.login-campo {
    margin-bottom: 22px;
}

.login-campo label {
    display: block;
    margin-bottom: 9px;
    color: #344156;
    font-size: 13px;
    font-weight: 700;
}

.login-input {
    position: relative;
}

.login-input > i {
    position: absolute;
    top: 18px;
    left: 16px;
    color: #8796a9;
}

.login-input input {
    width: 100%;
    height: 52px;
    padding: 0 45px;
    background: #f8fafc;
    border: 1px solid #e1e8f0;
    border-radius: 10px;
    outline: none;
    box-shadow: none;
    transition: .25s;
}

.login-input input:focus {
    background: #fff;
    border-color: #3978b8;
    box-shadow: 0 0 0 4px rgba(57,120,184,.10);
}

.login-ver-password {
    position: absolute;
    top: 0;
    right: 0;
    width: 45px;
    height: 52px;
    color: #8995a5;
    background: transparent;
    border: 0;
}

.login-boton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    margin-top: 10px;
    color: #fff;
    background: linear-gradient(135deg, #214e7d, #3276b4);
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    transition: .25s;
}

.login-boton:hover {
    background: #193c63;
    transform: translateY(-2px);
}

.login-boton:disabled {
    opacity: .7;
    cursor: wait;
}

.login-seguridad {
    margin-top: 22px;
    color: #929eac;
    font-size: 11px;
    text-align: center;
}

.login-mensaje {
    display: none;
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.6;
}

.login-error {
    color: #a52834;
    background: #fff0f1;
    border-color: #f4c9ce;
}

.login-exito {
    color: #176b42;
    background: #ecf9f1;
    border-color: #c4ead3;
}

/* MI CUENTA */
.mi-cuenta-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
    padding: 28px;
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 16px;
}

.mi-cuenta-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    color: #245687;
    background: #edf5ff;
    border-radius: 18px;
    font-size: 26px;
}

.mi-cuenta-header h1 {
    margin: 5px 0 8px;
    color: #1c2c43;
    font-size: 27px;
    font-weight: 800;
}

.mi-cuenta-header p {
    margin: 0;
    color: #8491a2;
    font-size: 13px;
}

.mi-cuenta-etiqueta {
    color: #377bb6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.mi-cuenta-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 22px;
}

.mi-cuenta-card {
    min-width: 0;
    padding: 25px;
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(28,48,75,.03);
}

.mi-cuenta-titulo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.mi-cuenta-titulo i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: #245687;
    background: #edf5ff;
    border-radius: 13px;
    font-size: 18px;
}

.mi-cuenta-titulo h2 {
    margin: 0 0 5px;
    color: #23344b;
    font-size: 17px;
    font-weight: 800;
}

.mi-cuenta-titulo p {
    margin: 0;
    color: #8995a5;
    font-size: 12px;
}

.mi-cuenta-dato {
    padding: 14px 0;
    border-bottom: 1px solid #edf0f5;
}

.mi-cuenta-dato span {
    display: block;
    margin-bottom: 6px;
    color: #8995a5;
    font-size: 11px;
}

.mi-cuenta-dato strong {
    display: block;
    color: #29394f;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.cuenta-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin-top: 22px;
    padding: 12px 16px;
    color: #245687;
    background: #edf5ff;
    border: 1px solid #dbe9fa;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: .2s;
}

.cuenta-boton:hover {
    color: #fff;
    background: #245687;
}

/* COMPRAS */
.compras-tabla-contenedor {
    width: 100%;
    overflow-x: auto;
}

.compras-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.compras-tabla th {
    padding: 13px 12px;
    color: #7d8b9e;
    background: #f7f9fc;
    border-bottom: 1px solid #e9eef5;
    text-align: left;
    white-space: nowrap;
}

.compras-tabla td {
    padding: 17px 12px;
    color: #627086;
    border-bottom: 1px solid #edf0f5;
    white-space: nowrap;
}

.compras-tabla tbody tr {
    transition: background .2s;
}

.compras-tabla tbody tr:hover {
    background: #f8fbff;
}

.compras-tabla td strong {
    color: #263a54;
}

.compras-total {
    color: #213f62 !important;
    font-weight: 800;
}

.compras-estado {
    display: inline-block;
    padding: 6px 10px;
    color: #23744e;
    background: #eaf8f0;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.compras-estado.pendiente {
    color: #986515;
    background: #fff5dc;
}

.compras-estado.enviado {
    color: #245687;
    background: #edf5ff;
}

@media (max-width: 767px) {
    #main.site-main {
        padding: 22px 12px 35px;
    }

    .login-card {
        grid-template-columns: 1fr;
        max-width: 470px;
    }

    .login-lateral {
        padding: 28px 24px;
    }

    .login-lateral h1 {
        margin-top: 32px;
        font-size: 27px;
    }

    .login-formulario {
        padding: 32px 23px;
    }

    .mi-cuenta-header {
        flex-wrap: wrap;
        padding: 20px;
    }

    .mi-cuenta-header h1 {
        font-size: 22px;
    }

    .mi-cuenta-grid {
        grid-template-columns: 1fr;
    }

    .mi-cuenta-card {
        padding: 21px 16px;
    }
}
</style>